| 1 |
NAME SoXtConstrainedViewer SoXtConstrVwr "" { |
| 2 |
base viewer class which adds camera constraints given a world up direction |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE Xt/viewers/SoXtConstrainedViewer.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This is a base class for the \cSoXtWalkViewer\. and \cSoXtFlyViewer\. |
| 9 |
component viewers. This class adds methods and convenience routines |
| 10 |
available to subclasses to constrain the camera given a world up direction. |
| 11 |
This prevents the camera from looking upside down. By default the +Y |
| 12 |
direction is used. |
| 13 |
} |
| 14 |
|
| 15 |
METHOD setUpDir void setUpDirection(const SbVec3f &newUpDirection) {} |
| 16 |
METHOD getUpDir SbVec3f getUpDirection() |
| 17 |
{ |
| 18 |
Specifies the upward direction of the viewer. This up direction is |
| 19 |
used by the viewers to constrain the camera when tilting up/down, and |
| 20 |
also used when rotating the camera right/left. |
| 21 |
The default is the +Y (0,1,0) direction. |
| 22 |
} |
| 23 |
|
| 24 |
ALSO { SoXtFullViewer, SoXtViewer, SoXtComponent, SoXtRenderArea, |
| 25 |
SoXtWalkViewer, SoXtFlyViewer } |