| 1 |
NAME SoXtWalkViewer SoXtWalkVwr "" { |
| 2 |
viewer component which moves the camera in a plane |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE Xt/viewers/SoXtWalkViewer.h |
| 6 |
|
| 7 |
BEGIN C |
| 8 |
DEFINE { SoXtWalkVwrCreateStd(parent, name) |
| 9 |
SoXtWalkVwrCreate(parent, name, TRUE, SO_XT_FULL_VWR_BUILD_ALL, SO_XT_VWR_BROWSER) |
| 10 |
} |
| 11 |
END |
| 12 |
|
| 13 |
DESC { |
| 14 |
The paradigm for this viewer is a walkthrough of an architectural model. |
| 15 |
Its primary behavior is forward, backward, and left/right turning motion |
| 16 |
while maintaining a constant "eye level". It is also possible to stop and |
| 17 |
look around at the scene. The eye level plane can be disabled, allowing the |
| 18 |
viewer to proceed in the "look at" direction, as if on an escalator. The |
| 19 |
eye level plane can also be translated up and down \(em similar to an |
| 20 |
elevator. |
| 21 |
} |
| 22 |
|
| 23 |
METHOD "" SoXtWalkViewer( |
| 24 |
Widget parent = NULL, |
| 25 |
const char *name = NULL, |
| 26 |
SbBool buildInsideParent = TRUE, |
| 27 |
SoXtFullViewer::BuildFlag flag = BUILD_ALL, |
| 28 |
SoXtViewer::Type type = BROWSER) {} |
| 29 |
METHOD "" ~SoXtWalkViewer() |
| 30 |
{ |
| 31 |
Constructor and destructor which specifies the viewer type. |
| 32 |
Please refer to the |
| 33 |
\cSoXtViewer\. |
| 34 |
man pages for a description of the viewer types. |
| 35 |
\-For a constructor short cut look at the \mSoXtWalkVwrCreateStd\. #define.\. |
| 36 |
} |
| 37 |
|
| 38 |
MISC RESOURCES { |
| 39 |
\b |
| 40 |
*SoXtWalkViewer.decoration: on (on | off) |
| 41 |
*SoXtWalkViewer.seekAnimationTime: 2.0 (float) |
| 42 |
*SoXtWalkViewer.seekTo: point (point | object) |
| 43 |
*SoXtWalkViewer.seekDistanceUsage: percentage (percentage | absolute) |
| 44 |
*SoXtWalkViewer.zoomMin: 1.0 (float) |
| 45 |
*SoXtWalkViewer.zoomMax: 179.0 (float) |
| 46 |
*SoXtWalkViewer.autoClipping: on (on | off) |
| 47 |
*SoXtWalkViewer.nearDistance: 2.4 (float, when autoClipping is off) |
| 48 |
*SoXtWalkViewer.farDistance: 2.8 (float, when autoClipping is off) |
| 49 |
*SoXtWalkViewer*BackgroundColor: black (color name or hex value) |
| 50 |
\. |
| 51 |
} |
| 52 |
|
| 53 |
MISC USAGE { |
| 54 |
|
| 55 |
\vLeft Mouse:\. walk mode. Click down and move up/down for fowards/backwards |
| 56 |
motion. Move right and left for turning. Speed increases exponentially |
| 57 |
with the distance from the mouse-down origin. |
| 58 |
|
| 59 |
\p\vMiddle Mouse\. - or |
| 60 |
\p\vCtrl + Left Mouse:\. Translate up, down, left and right. |
| 61 |
|
| 62 |
\p\vCtrl + Middle Mouse:\. tilt the camera up/down and right/left. This |
| 63 |
allows you to look around while stopped. |
| 64 |
|
| 65 |
\p\v<s> + click:\. Alternative to the Seek button. Press (but do not |
| 66 |
hold down) the <s> key, then click on a target object. |
| 67 |
|
| 68 |
\p\v<u> + click:\. Press (but do not hold down) the <u> key, then |
| 69 |
click on a target object to set the "up" direction to the surface normal. |
| 70 |
By default +y is the "up" direction. |
| 71 |
|
| 72 |
\p\vRight Mouse:\. Open the popup menu. |
| 73 |
} |
| 74 |
|
| 75 |
ALSO { SoXtFullViewer, SoXtViewer, SoXtComponent, SoXtRenderArea, SoXtPlaneViewer, |
| 76 |
SoXtExaminerViewer, SoXtFlyViewer } |