56#ifndef _SO_XT_PLANE_VIEWER_
57#define _SO_XT_PLANE_VIEWER_
176 const char* name = NULL,
178 SoXtFullViewer::BuildFlag flag = SoXtFullViewer::BUILD_ALL,
179 SoXtViewer::Type type = SoXtViewer::BROWSER );
206 SoXtFullViewer::BuildFlag flag,
207 SoXtViewer::Type type,
215 virtual SbString getDefaultWidgetName()
const;
216 virtual SbString getDefaultTitle()
const;
217 virtual SbString getDefaultIconTitle()
const;
220 virtual void processEvent(
XAnyEvent* anyevent );
221 virtual void actualRedraw();
224 virtual void bottomWheelMotion(
float newVal );
225 virtual void leftWheelMotion(
float newVal );
226 virtual void rightWheelMotion(
float newVal );
229 virtual void createPrefSheet();
232 virtual void createViewerButtons(
SoWidget parent );
235 virtual void openViewerHelpCard();
238 virtual void computeSeekFinalOrientation();
240 virtual void updateCursor();
244 Cursor transCursor, dollyCursor, seekCursor;
248 static void pushButtonCB(
SoWidget w,
int id,
void* data );
250 void updateViewerMode(
unsigned int state );
251 void switchMode(
int newMode );
252 void defineCursors();
255 void constructorCommon(
SbBool buildNow );
#define TRUE
Possible value of SbBool.
Class for smart character strings.
Abstract base class for camera nodes.
Base viewer class which adds a decoration around the rendering area.
Viewer component which moves the camera in a plane.
void setPlane(const SbVec3f &newNormal, const SbVec3f &newRight)
Moves the camera to be aligned with the given plane.
virtual void setViewing(SbBool onOrOff)
Sets whether the viewer is turned on or off.
SoXtPlaneViewer(SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE, SoXtFullViewer::BuildFlag flag=SoXtFullViewer::BUILD_ALL, SoXtViewer::Type type=SoXtViewer::BROWSER)
Constructor which specifies the viewer type.
~SoXtPlaneViewer()
Destructor.
virtual void setCamera(SoCamera *cam)
Sets the edited camera.
virtual void setCursorEnabled(SbBool onOrOff)
Sets whether the viewer is allowed to change the cursor over the renderArea window.
virtual void setSeekMode(SbBool onOrOff)
Externally set the viewer into/out off seek mode (default OFF).