Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoInterlacedStereo Class Reference

VSG extension Class for interlaced stereo support. More...

#include <Inventor/components/stereo/SoInterlacedStereo.h>

+ Inheritance diagram for SoInterlacedStereo:

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.
 
SoStereoViewergetStereoViewer ()
 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.
 

Detailed Description

VSG extension 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.

SEE ALSO

SoStereoViewer, SoBaseStereo, SoWinViewer

Definition at line 54 of file SoInterlacedStereo.h.

Member Enumeration Documentation

◆ InterlacedMode

Interlaced modes.

Enumerator
HORIZONTAL 

Horizontal (default)

VERTICAL 

Vertical.

Definition at line 58 of file SoInterlacedStereo.h.

Constructor & Destructor Documentation

◆ SoInterlacedStereo()

SoInterlacedStereo::SoInterlacedStereo ( SoStereoViewer stereoVwr = NULL,
SoGuiViewer guiViewer = NULL 
)

Constructor.

◆ ~SoInterlacedStereo()

SoInterlacedStereo::~SoInterlacedStereo ( )

Member Function Documentation

◆ enableGreenShift()

void SoInterlacedStereo::enableGreenShift ( SbBool  enable)
inline

Enable image adjustment specific to Sharp LCD displays.

Definition at line 115 of file SoInterlacedStereo.h.

◆ getInterlacedMode()

InterlacedMode SoInterlacedStereo::getInterlacedMode ( ) const
inline

Queries interlaced mode.

Definition at line 81 of file SoInterlacedStereo.h.

◆ getStereoViewType()

virtual StereoViewType SoInterlacedStereo::getStereoViewType ( )
inlinevirtual

Always returns SoBaseStereo::INTERLACED_STEREO.

Implements SoBaseStereo.

Definition at line 110 of file SoInterlacedStereo.h.

◆ isFastInterlacing()

SbBool SoInterlacedStereo::isFastInterlacing ( ) const
inline

Queries fast interlacing mode.

Definition at line 105 of file SoInterlacedStereo.h.

◆ isGreenShiftEnabled()

SbBool SoInterlacedStereo::isGreenShiftEnabled ( ) const
inline

Query green shift setting.

Definition at line 120 of file SoInterlacedStereo.h.

◆ isScreenInterlacing()

SbBool SoInterlacedStereo::isScreenInterlacing ( ) const
inline

Queries screen interlacing.

Definition at line 95 of file SoInterlacedStereo.h.

◆ setFastInterlacing()

void SoInterlacedStereo::setFastInterlacing ( SbBool  fast = TRUE)
inline

Sets fast interlacing mode.

Default is TRUE.

Definition at line 100 of file SoInterlacedStereo.h.

◆ setInterlacedMode()

void SoInterlacedStereo::setInterlacedMode ( InterlacedMode  mode)
inline

Sets interlaced mode.

Default is HORIZONTAL.

Definition at line 76 of file SoInterlacedStereo.h.

◆ setScreenInterlacing()

void SoInterlacedStereo::setScreenInterlacing ( SbBool  screen)
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.


The documentation for this class was generated from the following file: