Class for interlaced stereo support. More...
#include <Inventor/components/stereo/SoInterlacedStereo.h>
Public Types | |
enum | InterlacedMode { HORIZONTAL = 0 , VERTICAL } |
Interlaced 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 | |
SoInterlacedStereo (SoStereoViewer *stereoVwr=NULL, SoGuiViewer *guiViewer=NULL) | |
Constructor. | |
~SoInterlacedStereo () | |
void | setInterlacedMode (InterlacedMode mode) |
Sets interlaced mode. | |
InterlacedMode | getInterlacedMode () const |
Queries interlaced mode. | |
void | setScreenInterlacing (SbBool screen) |
Sets screen interlacing. | |
SbBool | isScreenInterlacing () const |
Queries screen interlacing. | |
void | setFastInterlacing (SbBool fast=TRUE) |
Sets fast interlacing mode. | |
SbBool | isFastInterlacing () const |
Queries fast interlacing mode. | |
virtual StereoViewType | getStereoViewType () |
Always returns SoBaseStereo::INTERLACED_STEREO. | |
void | enableGreenShift (SbBool enable) |
Enable image adjustment specific to Sharp LCD displays. | |
SbBool | isGreenShiftEnabled () const |
Query green shift setting. | |
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 void | renderStereoView () |
Renders the stereo view. | |
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 interlaced stereo support.
This class implements the interlaced stereo type. Using the interlaced mode, the stereo effect is achieved using special devices (projectors,...) that translate an interlaced image into a stereoscopic view. Alternating scan lines display images for the left and right eyes.
The interlaced mode can work in two modes: fast or best. This is simply a matter of quality. Due to the interlacing, lines close to horizontal can appear as dotted lines. In best mode, those parts of the model are drawn as if they were thicker. By default, the mode is fast.
SoStereoViewer, SoBaseStereo, SoWinViewer
Definition at line 54 of file SoInterlacedStereo.h.
Interlaced modes.
Enumerator | |
---|---|
HORIZONTAL | Horizontal (default) |
VERTICAL | Vertical. |
Definition at line 58 of file SoInterlacedStereo.h.
SoInterlacedStereo::SoInterlacedStereo | ( | SoStereoViewer * | stereoVwr = NULL , |
SoGuiViewer * | guiViewer = NULL |
||
) |
Constructor.
SoInterlacedStereo::~SoInterlacedStereo | ( | ) |
|
inline |
Enable image adjustment specific to Sharp LCD displays.
Definition at line 115 of file SoInterlacedStereo.h.
|
inline |
Queries interlaced mode.
Definition at line 81 of file SoInterlacedStereo.h.
|
inlinevirtual |
Always returns SoBaseStereo::INTERLACED_STEREO.
Implements SoBaseStereo.
Definition at line 110 of file SoInterlacedStereo.h.
|
inline |
Queries fast interlacing mode.
Definition at line 105 of file SoInterlacedStereo.h.
|
inline |
Query green shift setting.
Definition at line 120 of file SoInterlacedStereo.h.
|
inline |
Queries screen interlacing.
Definition at line 95 of file SoInterlacedStereo.h.
|
inline |
|
inline |
Sets screen interlacing.
If screen is TRUE (default), the line interlacing is done according to the screen (if the window is moving, the first line might be either an even or an odd line). Otherwise, do the interlacing according to the window itself (first line is always even).
Definition at line 90 of file SoInterlacedStereo.h.