Class for anaglyph stereo support. More...
#include <Inventor/components/stereo/SoAnaglyphStereo.h>
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 () |
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.
SoStereoViewer, SoBaseStereo, SoWinViewer SoXtViewer
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.
SoAnaglyphStereo::SoAnaglyphStereo | ( | SoStereoViewer * | stereoVwr = NULL , |
|
SoGuiViewer * | guiViewer = NULL | |||
) | [inline] |
Constructor.
SoAnaglyphStereo::~SoAnaglyphStereo | ( | ) | [inline] |
Destructor.
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.