gramods
|
An implementation of anaglyphs stereoscopic multiplexing that is based on linear operations. More...
#include <LinearAnaglyphsMultiplexer.hh>
Classes | |
struct | Impl |
Public Member Functions | |
void | setLeftColor (gmCore::float3 c) |
Sets the color of the left eye filter, in RGB 0-1. More... | |
void | setRightColor (gmCore::float3 c) |
Sets the color of the right eye filter, in RGB 0-1. More... | |
void | setSaturation (float s) |
Sets the saturation of color to use in the final image, in the range 0-1. More... | |
void | setLeftSaturation (float s) |
Sets the saturation of color to use for the left eye, in the range 0-1. More... | |
void | setRightSaturation (float s) |
Sets the saturation of color to use for the right eye, in the range 0-1. More... | |
size_t | getEyeCount () |
Returns the number of eyes that should be rendered for the multiplexer. More... | |
void | prepare () override |
Prepares the multiplexer for rendering to the two eyes. More... | |
void | setupRendering (size_t eye) override |
Sets up rendering for one eye at a time. More... | |
void | finalize () override |
Finalizes the multiplexing. More... | |
![]() | |
virtual std::string | getDefaultKey () override |
Returns the default key, in Configuration, for the Object. More... | |
![]() | |
Object () | |
Initializes internal data. More... | |
virtual | ~Object () |
Cleaning up internal data. More... | |
virtual void | initialize () |
Called to initialize the Object. More... | |
virtual void | accept (Visitor *visitor) |
Calls the visitors apply method with this as argument. More... | |
virtual void | traverse (Visitor *visitor) |
Calls the child Object's accept method, if such exist. More... | |
bool | isInitialized () |
Returns true if the Object is initialized. More... | |
Static Public Attributes | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
An implementation of anaglyphs stereoscopic multiplexing that is based on linear operations.
|
overridevirtual |
Finalizes the multiplexing.
Implements gramods::gmGraphics::MultiscopicMultiplexer.
|
inlinevirtual |
Returns the number of eyes that should be rendered for the multiplexer.
Returns the value two (2).
Implements gramods::gmGraphics::MultiscopicMultiplexer.
|
overridevirtual |
Prepares the multiplexer for rendering to the two eyes.
Implements gramods::gmGraphics::MultiscopicMultiplexer.
void gramods::gmGraphics::LinearAnaglyphsMultiplexer::setLeftColor | ( | gmCore::float3 | c | ) |
Sets the color of the left eye filter, in RGB 0-1.
Default is red (1, 0, 0).
XML-attribute: leftColor
void gramods::gmGraphics::LinearAnaglyphsMultiplexer::setLeftSaturation | ( | float | s | ) |
Sets the saturation of color to use for the left eye, in the range 0-1.
Removing some saturation reduces the problem that an object with the same color as the eye filter becomes invisible for that eye. Default is 0.8.
XML-attribute: leftSaturation
void gramods::gmGraphics::LinearAnaglyphsMultiplexer::setRightColor | ( | gmCore::float3 | c | ) |
Sets the color of the right eye filter, in RGB 0-1.
Default is cyan (0, 1, 1).
XML-attribute: rightColor
void gramods::gmGraphics::LinearAnaglyphsMultiplexer::setRightSaturation | ( | float | s | ) |
Sets the saturation of color to use for the right eye, in the range 0-1.
Removing some saturation reduces the problem that an object with the same color as the eye filter becomes invisible for that eye. Default is 0.8.
XML-attribute: rightSaturation
void gramods::gmGraphics::LinearAnaglyphsMultiplexer::setSaturation | ( | float | s | ) |
Sets the saturation of color to use in the final image, in the range 0-1.
Removing some saturation reduces the problem that an object with the same color as the eye filter becomes invisible for that eye. Default is 0.8.
XML-attribute: saturation
|
overridevirtual |
Sets up rendering for one eye at a time.
Implements gramods::gmGraphics::MultiscopicMultiplexer.