24#ifndef _SOWIN_STEREO_DIALOG_
25#define _SOWIN_STEREO_DIALOG_
28#include <Inventor/components/stereo/SoQtStereoDialog.h>
31#include <Inventor/sys/port.h>
33# include <Inventor/Win/SoWinBeginStrict.h>
36# include <Inventor/Xt/SoXtMaterialEditor.h>
39#include <Inventor/components/stereo/SoWinXt2Stereo.h>
40#include <Inventor/Xt/SoXtComponent.h>
71 const char *name = NULL,
SbBool buildInsideParent = TRUE);
89 const char *name,
SbBool buildInsideParent,
SbBool buildNow);
92 virtual SbString getDefaultWidgetName()
const;
93 virtual SbString getDefaultTitle()
const;
94 virtual SbString getDefaultIconTitle()
const;
99 static void onParallaxToggleCB(SoWidget widget,
XtPointer clientData,
void *state );
100 static void onCameraToggleCB(SoWidget widget,
XtPointer clientData,
void *state );
101 static void onButtonCB( SoWidget widget,
XtPointer clientData,
void* cbs );
102 static void onStereoToggleCB(SoWidget widget,
XtPointer clientData,
void *state );
103 static void scaleParallaxCB( SoWidget w,
XtPointer clientData,
void* callData );
104 static void scaleCameraCB( SoWidget w,
XtPointer clientData,
void* callData );
107 virtual void widgetDestroyed();
111 SoWidget m_stereoItem[14], m_rawStereoItem;
112 SoWidget m_stereoPopup;
113 SoWidget m_stereoToggle;
114 SoWidget m_adjustStereoToggle;
115 SoWidget m_scaleParallax;
116 SoWidget m_scaleCamOffset;
117 SoWidget m_cameraToggle;
118 SoWidget m_parallaxToggle;
122 SbBool m_cameraFlag, m_parallaxFlag;
125 static WBOOL CALLBACK mgrDlgProc(Hwnd hdlg, UINT message, WPARAM wParam, LPARAM lParam);
126 static void onCommand(Hwnd hdlg,
int id, Hwnd hCtrl, UINT codeNotify ) ;
129 static void sliderCallback(
void * userData,
float value) ;
131 static SoBaseStereo * getStereoViewType(
int stereoTypeListIndex=0) ;
138 SoWinSlider * sliders[2];
158 SliderData m_firstSlider;
159 SliderData m_secondSlider;
163 static void menuPick(SoWidget,
int, XmAnyCallbackStruct *);
165 static void radioButtonPick(SoWidget,
int,
XtPointer);
166 static void diamondButtonPick(SoWidget,
int,
XtPointer);
170 SoWidget buildWidget(SoWidget parent);
171 SoWidget buildControls(SoWidget parent);
172 SoWidget buildSliders(SoWidget parent);
173 void updateSliders();
178 int m_lastStereoMode;
179 bool m_isStereoActive;
180 bool m_lastStereoReversed;
183#include <Inventor/Win/SoWinEndStrict.h>
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for stereo...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component that l...
~SoStereoDialog()
Destructor.
virtual void update()
Notify the stereo dialog that the viewer state may have changed.
SoStereoDialog(SoWidget parent=NULL, SoStereoViewer *viewer=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE)
Constructor.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Pure virtual cla...
Abstract base class for all Open Inventor components.
Component which lets you edit a material interactively.