24#ifndef _SO_WIN_STEREOVIEWER
25#define _SO_WIN_STEREOVIEWER
235 short width,
short height) = 0;
242 short &width,
short &height) = 0;
259 virtual void* getViewer() = 0;
#define FALSE
Possible value of SbBool.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for stereo...
Abstract base class for camera nodes.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> OpenGL context m...
Manages scene graph rendering and event handling.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Pure virtual cla...
virtual void getViewport(short &left, short &bottom, short &width, short &height)=0
Returns viewport region with origin (lower-left corner) and size, given as pixel coordinates.
virtual SbBool isViewerDoubleBuffer()=0
Queries if viewer is double buffered.
virtual float getStereoBalance()=0
Queries the stereo balance (the position of the zero parallax plane).
virtual void setStereoOffset(float offset)=0
Sets the stereo offset (the distance of each eye from the camera position).
virtual const SbVec2s & getSize()=0
Returns the size of the OpenGL drawing window in absolute screen coordinates (not relative to parent ...
virtual const SbVec2s & getBottomRight()=0
Returns the position of the OpenGL drawing window in absolute screen coordinates (not relative to par...
virtual const SbVec2s & getTopLeft()=0
Returns the position of the OpenGL drawing window in absolute screen coordinates (not relative to par...
virtual SbBool isStereoViewReversed()=0
Queries reversal of the left and right views.
virtual void setStereoAbsoluteAdjustments(SbBool)
Specifies if stereo adjustments are absolute.
virtual SbBool isStereoBalanceNearFrac()=0
Returns TRUE when the stereo balance adjustement is defined as a fraction of the camera near distance...
virtual void actualRendering()=0
This method is called automatically when the viewer requests that its SoBaseStereo object perform ste...
virtual SoGLContext * getViewerContext()=0
Returns the current SoGLContext to render to.
virtual void setViewport(short left, short bottom, short width, short height)=0
Sets viewport region with given origin (lower-left corner) and size, given as pixel coordinates.
virtual SbBool isStereoActive()=0
Queries stereo activation.
virtual void setStereoActive(SbBool activate)=0
Sets stereo activation.
virtual SoSceneManager * getViewerSceneManager()=0
Returns the current SoSceneManager to render to.
virtual SoBaseStereo * getStereoViewType()=0
Returns the stereo view type.
virtual float getStereoOffset()=0
Queries the stereo offset.
virtual SbBool isStereoAbsoluteAdjustments() const
Queries if the stereo adjustments are absolute.
virtual void reverseStereoView(SbBool reverse)=0
Sets reversal of the left and right views.
virtual SoCamera * getViewerCamera()=0
Returning the camera allows the SoBaseStereo to manipulate it to achieve the stereo effect.
virtual void setStereoBalance(float balance, SbBool nearFrac=false)=0
Sets the stereo balance (the position of the zero parallax plane) and specifies whether the balance v...
virtual void setStereoViewType(SoBaseStereo *stereoViewType)=0
If stereoViewType is NULL, the stereo is inactivated (see setStereoActive).
virtual ~SoStereoViewer()
Destructor.