56#ifndef _SO_XT_FULL_VIEWER_
57#define _SO_XT_FULL_VIEWER_
297 virtual void setDrawStyle( SoXtViewer::DrawType type, SoXtViewer::DrawStyle style );
317 float rightWheelVal, leftWheelVal, bottomWheelVal;
324 SoXtFullViewer::BuildFlag flag,
325 SoXtViewer::Type type,
333 SoXtFullViewer::BuildFlag flag,
334 SoXtViewer::Type type,
342 SoWidget leftTrimForm, bottomTrimForm, rightTrimForm;
345 SoWidget rightWheel, bottomWheel, leftWheel;
346 char* rightWheelStr, *bottomWheelStr, *leftWheelStr;
347 SoWidget rightWheelLabel, bottomWheelLabel, leftWheelLabel;
354 SoWidget getButtonWidget()
const {
return appButtonForm; }
357 SoWidget popupWidget, *popupToggleWidgets;
358 SoWidget* drawStyleWidgets, *bufferStyleWidgets;
365 void buildLeftWheel(
SoWidget parent );
367 virtual void buildDecoration(
SoWidget parent );
373 virtual void createViewerButtons(
SoWidget parent );
378 virtual void buildPopupMenu();
379 virtual void destroyPopupMenu();
380 void setPopupMenuString(
const char* name );
387 void setPrefSheetString(
const char* name );
388 virtual void createPrefSheet();
390 void createDefaultPrefSheetParts(
SoWidget widgetList[],
int& num,
SoWidget form );
404 virtual void rightWheelMotion(
float newVal );
405 virtual void bottomWheelMotion(
float newVal );
406 virtual void leftWheelMotion(
float newVal );
411 virtual void rightWheelStart();
412 virtual void bottomWheelStart();
413 virtual void leftWheelStart();
414 virtual void rightWheelFinish();
415 virtual void bottomWheelFinish();
416 virtual void leftWheelFinish();
421 void setBottomWheelString(
const char* name );
422 void setLeftWheelString(
const char* name );
423 void setRightWheelString(
const char* name );
429 virtual void openViewerHelpCard();
433 static void drawStyleMenuPick(
SoWidget w,
int id,
void* data );
434 static void bufferStyleMenuPick(
SoWidget w,
int id,
void* data );
437 virtual void setSeekButton(
SbBool onOff );
441 void constructorCommon( SoXtFullViewer::BuildFlag buildFlag,
SbBool buildNow );
451 void doAppButtonLayout(
int start );
458 static void pushButtonCB(
SoWidget w,
int id,
void* data );
468 static void seekPrefSheetToggle1CB(
SoWidget tog1,
SoWidget tog2,
void* data );
469 static void seekPrefSheetToggle2CB(
SoWidget tog1,
SoWidget tog2,
void* data );
474 void setCameraZoom(
float zoom );
475 float getCameraZoom();
476 void setZoomSliderPosition(
float zoom );
477 void setZoomFieldString(
float zoom );
484 int seekDistWheelVal;
488 static void seekDistPercPrefSheetToggleCB(
SoWidget tog1,
SoWidget tog2,
void* data );
489 static void seekDistAbsPrefSheetToggleCB(
SoWidget tog1,
SoWidget tog2,
void* data );
493 int clipNearWheelVal, clipFarWheelVal;
494 SoWidget clipNearField, clipFarField;
495 static void clipPrefSheetToggleCB(
SoWidget toggle,
SoWidget parent,
void* data );
501 SoWidget stereoWheelForm, stereoField, stereoLabel;
503 static void stereoPrefSheetToggleCB(
SoWidget toggle,
SoWidget parent,
void* data );
509 static void recordingPrefSheetToggleCB(
SoWidget toggle,
SoWidget parent,
void* data );
513 static void fsaaPrefSheetToggleCB(
SoWidget toggle,
SoWidget parent,
void* data );
524 SbBool seekDistAsPercentage;
#define TRUE
Possible value of SbBool.
#define XmAnyCallbackStruct
List of generic (void *) pointers.
int find(const void *ptr) const
Returns index of given pointer in list, or -1 if not found.
int getLength() const
Returns number of pointers in list.
Abstract base class for camera nodes.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component that l...
Base viewer class which adds a decoration around the rendering area.
virtual void setBufferingType(SoXtViewer::BufferType type)
Sets the current buffering type in the main view (default SoXtViewer::BUFFER_DOUBLE).
virtual void setDrawStyle(SoXtViewer::DrawType type, SoXtViewer::DrawStyle style)
Sets the current drawing style in the main view.
BuildFlag
This specifies what should be build by default in the constructor
@ BUILD_DECORATION
Build the decoration only.
@ BUILD_ALL
Build everything by default.
@ BUILD_POPUP
Build the popup menu only.
@ BUILD_NONE
Doesn't build anything extra.
SoWidget getAppPushButtonParent() const
Returns the parent widget, which is needed when creating new buttons.
virtual void setHeadlight(SbBool onOrOff)
Turns the headlight on/off (default on).
virtual void hide()
This hides the component.
void addAppPushButton(SoWidget newButton)
Adds application push button, which will be placed in the left hand side decoration trim.
int lengthAppPushButton()
Returns number of application push buttons.
SoStereoDialog * getStereoDialog()
SbBool isDecoration()
Returns whether the viewer component trim is on or off.
void insertAppPushButton(SoWidget newButton, int index)
Adds application push button, which will be placed in the left hand side decoration trim.
SoStereoDialog * m_stereoDialogBox
Pointer to the stereo dialog.
void setDecoration(SbBool onOrOff)
Shows/hides the viewer component trim (default on).
void setPopupMenuEnabled(SbBool trueOrFalse)
Enables/disables the viewer popup menu (default enabled).
SoWidget getRenderAreaWidget()
Returns the render area widget.
SbBool isPopupMenuEnabled()
Returns whether the viewer popup menu is enabled or disabled.
void setStereoDialog(SoStereoDialog *newDialog)
void removeAppPushButton(SoWidget oldButton)
Removes specified application push button.
virtual void setViewing(SbBool onOrOff)
Sets whether the viewer is turned on or off.
int findAppPushButton(SoWidget oldButton)
Returns index of specified push button.
virtual void setCamera(SoCamera *cam)
Sets the edited camera.
Used to retrieve X resources for SoXt components and widgets .
Viewer component lowest base class.