Class for half-screen stereo support. More...
#include <Inventor/components/stereo/SoHalfScreenStereo.h>
Public Types | |
enum | HalfScreenMode { OVERUNDER_FILL = 0 , OVERUNDER , SIDEBYSIDE_FILL , SIDEBYSIDE } |
Half screen modes. More... | |
Public Types inherited from SoBaseStereo | |
enum | StereoViewType { NO_STEREO_VIEW = 0 , INTERLACED_STEREO = 1 , HALF_SCREEN_STEREO = 2 , RAW_STEREO = 3 , OPENGL_STEREO = 3 , ANAGLYPH_STEREO = 4 , ANAGLYPH = 4 , PASSIVE_STEREO = 6 } |
Stereo view types. More... | |
Public Member Functions | |
SoHalfScreenStereo (SoStereoViewer *stereoVwr=NULL, SoGuiViewer *guiViewer=NULL) | |
Constructor. | |
~SoHalfScreenStereo () | |
Destructor. | |
void | setHalfScreenMode (HalfScreenMode mode) |
Sets half-screen mode. | |
HalfScreenMode | getHalfScreenMode () |
Queries half-screen mode. | |
virtual void | renderStereoView () |
Renders the stereo view. | |
virtual StereoViewType | getStereoViewType () |
Always returns SoBaseStereo::HALF_SCREEN_STEREO. | |
Public Member Functions inherited from SoBaseStereo | |
SoBaseStereo (SoStereoViewer *stereoViewer=NULL, SoGuiViewer *guiViewer=NULL) | |
Constructor. | |
virtual | ~SoBaseStereo () |
Destructor. | |
void | setStereoViewer (SoStereoViewer *viewer=NULL) |
Sets the stereo viewer. | |
SoStereoViewer * | getStereoViewer () |
Queries the stereo viewer. | |
virtual void | reverseStereoView (SbBool reverse) |
Sets stereo reversal. | |
virtual SbBool | isStereoViewReversed () const |
Queries stereo reversal. | |
virtual SbBool | canClearBeforeRender () const |
Queries ability to clear before rendering. | |
virtual SbBool | requireHardware () |
Returns true or false depending on the type of stereo buffering. | |
virtual void | clearStereo () |
A stereo view type may need to restore a state when it is no longer used by a stereo viewer. | |
void | setStereoElement (SoSceneManager *, SoCamera::StereoMode stereoMode) |
Apply stereo parameters to the passed SoSceneManager. | |
Class for half-screen stereo support.
This class implements the half-screen stereo type. The display area is divided into two parts, one for displaying the left eye view and one for displaying the right eye view.
SoStereoViewer, SoBaseStereo, SoWinViewer SoXtViewer
Definition at line 49 of file SoHalfScreenStereo.h.
Half screen modes.
Enumerator | |
---|---|
OVERUNDER_FILL | Overunder fill (default value) |
OVERUNDER | Overunder. |
SIDEBYSIDE_FILL | Side by side fill. |
SIDEBYSIDE | Side by side. |
Definition at line 53 of file SoHalfScreenStereo.h.
SoHalfScreenStereo::SoHalfScreenStereo | ( | SoStereoViewer * | stereoVwr = NULL , |
SoGuiViewer * | guiViewer = NULL |
||
) |
Constructor.
SoHalfScreenStereo::~SoHalfScreenStereo | ( | ) |
Destructor.
HalfScreenMode SoHalfScreenStereo::getHalfScreenMode | ( | ) |
Queries half-screen mode.
|
virtual |
Always returns SoBaseStereo::HALF_SCREEN_STEREO.
Implements SoBaseStereo.
|
virtual |
Renders the stereo view.
Reimplemented from SoBaseStereo.
void SoHalfScreenStereo::setHalfScreenMode | ( | HalfScreenMode | mode | ) |
Sets half-screen mode.
Default is OVERUNDER_FILL.