26#ifndef _SO_WIN_PLANE_VIEWER_
27#define _SO_WIN_PLANE_VIEWER_
36class SoWinBitmapButton;
142 const char* name = NULL,
183 virtual SbString getDefaultWidgetName()
const;
184 virtual SbString getDefaultTitle()
const;
185 virtual SbString getDefaultIconTitle()
const;
188 virtual void processEvent(
XAnyEvent* anyevent );
189 virtual void actualRedraw();
192 virtual void bottomWheelMotion(
float newVal );
193 virtual void leftWheelMotion(
float newVal );
194 virtual void rightWheelMotion(
float newVal );
195 virtual void mouseWheelMotion(
float newVal );
198 virtual void createPrefSheet();
201 virtual void createViewerButtons(
SoWidget parent );
204 virtual void openViewerHelpCard();
207 virtual void computeSeekFinalOrientation();
215 virtual void pushButtonCB(
SoWidget w,
int id,
void* data );
217 virtual void updateCursor();
224 SoWinBitmapButton* buttonList[10];
226 void updateViewerMode(
unsigned int state );
227 void switchMode(
int newMode );
230 void constructorCommon(
SbBool buildNow );
233 void processPopupItem(
int item );
#define TRUE
Possible value of SbBool.
Class for smart character strings.
Abstract base class for camera nodes.
<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.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Viewer component...
SoWinPlaneViewer(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.
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.
virtual void setSeekMode(SbBool onOrOff)
Externally set the viewer into/out off seek mode (default OFF).
virtual void setCursorEnabled(SbBool onOrOff)
Sets whether the viewer is allowed to change the cursor over the renderArea window.
~SoWinPlaneViewer()
Destructor.
virtual void setCamera(SoCamera *cam)
Sets the camera that will be controlled by the viewer.
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.