SoAnaglyphStereo Class Reference
[Stereo]

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

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

Inheritance diagram for SoAnaglyphStereo:
SoBaseStereo

List of all members.

Public Types

enum  ColorFilter {
  RED_CYAN,
  GREEN_MAGENTA,
  BLUE_YELLOW
}

Public Member Functions

 SoAnaglyphStereo (SoStereoViewer *stereoVwr=NULL, SoGuiViewer *guiViewer=NULL)
 ~SoAnaglyphStereo ()
StereoViewType getStereoViewType ()
void setColorFilter (ColorFilter filter)
ColorFilter getColorFilter ()

Detailed Description

VSG extension Class for anaglyph stereo support.

This type is similar to the raw stereo type (SoRawStereo). But it adds a color filter for each view rendered. The default is Red/Cyan. There are three kinds of filters (ColorFilter). You can reverse the left and rights views, making three new kinds of filters (CYAN_RED, etc.). The Alpha channel is used in both views.

SEE ALSO

SoStereoViewer, SoBaseStereo, SoWinViewer SoXtViewer

See related examples:

RedCyanStereo


Member Enumeration Documentation

Color Filter.

There is 3 types of filters. Note that you can reverse the view, making 3 new types of filters (CYAN_RED,etc.). Note also that this types are able to deal with two-colors glasses (rather than 3 colors) : RED_CYAN is also adpated for red/green glasses, and so on. Note that the Alpha channel is kept in both views.

Enumerator:
RED_CYAN 

Default value.

GREEN_MAGENTA 
BLUE_YELLOW 

Constructor & Destructor Documentation

SoAnaglyphStereo::SoAnaglyphStereo ( SoStereoViewer stereoVwr = NULL,
SoGuiViewer guiViewer = NULL 
) [inline]

Constructor.

SoAnaglyphStereo::~SoAnaglyphStereo (  )  [inline]

Destructor.


Member Function Documentation

ColorFilter SoAnaglyphStereo::getColorFilter (  )  [inline]

Queries the filter type.

StereoViewType SoAnaglyphStereo::getStereoViewType (  )  [inline, virtual]

Always returns SoBaseStereo::ANAGLYPH_STEREO.

Implements SoBaseStereo.

void SoAnaglyphStereo::setColorFilter ( ColorFilter  filter  )  [inline]

Sets the filter type.


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

Open Inventor Toolkit reference manual, generated on 28 Oct 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/