Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
SoHalfScreenStereo Class Reference

VSG extension Class for half-screen stereo support. More...

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

+ Inheritance diagram for SoHalfScreenStereo:

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

Detailed Description

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

SEE ALSO

SoStereoViewer, SoBaseStereo, SoWinViewer SoXtViewer

Definition at line 49 of file SoHalfScreenStereo.h.

Member Enumeration Documentation

◆ HalfScreenMode

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.

Constructor & Destructor Documentation

◆ SoHalfScreenStereo()

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

Constructor.

◆ ~SoHalfScreenStereo()

SoHalfScreenStereo::~SoHalfScreenStereo ( )

Destructor.

Member Function Documentation

◆ getHalfScreenMode()

HalfScreenMode SoHalfScreenStereo::getHalfScreenMode ( )

Queries half-screen mode.

◆ getStereoViewType()

virtual StereoViewType SoHalfScreenStereo::getStereoViewType ( )
virtual

Always returns SoBaseStereo::HALF_SCREEN_STEREO.

Implements SoBaseStereo.

◆ renderStereoView()

virtual void SoHalfScreenStereo::renderStereoView ( )
virtual

Renders the stereo view.

Reimplemented from SoBaseStereo.

◆ setHalfScreenMode()

void SoHalfScreenStereo::setHalfScreenMode ( HalfScreenMode  mode)

Sets half-screen mode.

Default is OVERUNDER_FILL.


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