gramods
Classes | Public Member Functions | Static Public Attributes | List of all members
gramods::gmGraphics::LinearAnaglyphsMultiplexer Class Reference

An implementation of anaglyphs stereoscopic multiplexing that is based on linear operations. More...

#include <LinearAnaglyphsMultiplexer.hh>

Inheritance diagram for gramods::gmGraphics::LinearAnaglyphsMultiplexer:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::LinearAnaglyphsMultiplexer:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from gramods::gmGraphics::MultiscopicMultiplexer
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. More...
 
- Public Member Functions inherited from gramods::gmCore::Object
 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
 

Detailed Description

An implementation of anaglyphs stereoscopic multiplexing that is based on linear operations.

Member Function Documentation

◆ finalize()

void gramods::gmGraphics::LinearAnaglyphsMultiplexer::finalize ( )
overridevirtual

Finalizes the multiplexing.

Implements gramods::gmGraphics::MultiscopicMultiplexer.

◆ getEyeCount()

size_t gramods::gmGraphics::LinearAnaglyphsMultiplexer::getEyeCount ( )
inlinevirtual

Returns the number of eyes that should be rendered for the multiplexer.

Returns the value two (2).

Implements gramods::gmGraphics::MultiscopicMultiplexer.

◆ prepare()

void gramods::gmGraphics::LinearAnaglyphsMultiplexer::prepare ( )
overridevirtual

Prepares the multiplexer for rendering to the two eyes.

Implements gramods::gmGraphics::MultiscopicMultiplexer.

◆ setLeftColor()

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

◆ setLeftSaturation()

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

◆ setRightColor()

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

◆ setRightSaturation()

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

◆ setSaturation()

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

◆ setupRendering()

void gramods::gmGraphics::LinearAnaglyphsMultiplexer::setupRendering ( size_t  eye)
overridevirtual

Sets up rendering for one eye at a time.

Implements gramods::gmGraphics::MultiscopicMultiplexer.


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