26#ifndef _SO_WIN_WALK_VIEWER_
27#define _SO_WIN_WALK_VIEWER_
107 const char* name = NULL,
155 virtual SbString getDefaultWidgetName()
const;
156 virtual SbString getDefaultTitle()
const;
157 virtual SbString getDefaultIconTitle()
const;
160 virtual void processEvent(
XAnyEvent* anyevent );
161 virtual void actualRedraw();
162 virtual void rightWheelMotion(
float newVal );
163 virtual void mouseWheelMotion(
float newVal );
164 virtual void dollyCamera(
float dist );
170 virtual void createPrefSheet();
173 virtual void openViewerHelpCard();
175 virtual void updateCursor();
188 void updateViewerMode(
unsigned int state );
189 void switchMode(
int newMode );
192 void constructorCommon(
SbBool buildNow );
195 void processPopupItem(
int item );
#define TRUE
Possible value of SbBool.
Class for smart character strings.
Abstract base class for camera nodes.
Sensor class that can be attached to Open Inventor fields.
Stores runtime type information.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Base viewer clas...
BuildFlag
This specifies what should be build by default in the constructor.
@ BUILD_ALL
Build everything by default.
Type
An EDITOR viewer will create a camera under the user supplied scene graph (specified in setSceneGraph...
@ BROWSER
Camera views scene, but is not added to scene.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Viewer component...
SoWinWalkViewer(SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE, SoWinFullViewer::BuildFlag flag=SoWinFullViewer::BUILD_ALL, SoWinViewer::Type type=SoWinViewer::BROWSER)
Constructor which specifies the viewer type.
~SoWinWalkViewer()
Destructor.
void setViewerSpeed(float speed)
Set viewer speed multiplier (default is 1).
virtual void setCursorEnabled(SbBool onOrOff)
Sets whether the viewer is allowed to change the cursor over the renderArea window.
virtual void setViewing(SbBool onOrOff)
Sets whether the viewer is turned on or off.
float getViewerSpeed() const
Get viewer speed multiplier.
virtual void setCameraType(SoType type)
Sets the camera type that will be created by the viewer if no cameras are found in the scene graph (s...
virtual void setCamera(SoCamera *cam)
Sets the camera that will be controlled by the viewer.
virtual void setSeekMode(SbBool onOrOff)
Externally set the viewer into/out off seek mode (default OFF).