class SG_EXPORT osg::DisplaySettings

DisplaySettings class for encapsulating what visuals are required and have been set up, and the status of stereo viewing

Inheritance:


Public Methods

[more]static DisplaySettings* instance()
Maintain a DisplaySettings singleton for objects to querry at runtime
[more] DisplaySettings()
[more] DisplaySettings(std::vector<std::string>& commandLine)
[more] DisplaySettings(const DisplaySettings& vs)
[more]virtual ~DisplaySettings()
[more]DisplaySettings& operator = (const DisplaySettings& vs)
[more]void merge(const DisplaySettings& vs)
[more]void setDefaults()
[more]void readEnvironmentalVariables()
[more]void readCommandLine(std::vector<std::string>& commandLine)
read the command line string list, removing any matched control sequences
[more]void setStereo(const bool on)
[more]const bool getStereo() const
[more]void setStereoMode(const StereoMode mode)
[more]const StereoMode getStereoMode() const
[more]void setEyeSeperation(const float eyeSeperation)
[more]const float getEyeSeperation() const
[more]void setScreenDistance(const float distance)
[more]const float getScreenDistance() const
[more]void setSplitStereoHorizontalEyeMapping(SplitStereoHorizontalEyeMapping m)
[more]SplitStereoHorizontalEyeMapping getSplitStereoHorizontalEyeMapping() const
[more]void setSplitStereoHorizontalSeperation(const int s)
[more]const int getSplitStereoHorizontalSeperation() const
[more]void setSplitStereoVerticalEyeMapping(SplitStereoVerticalEyeMapping m)
[more]SplitStereoVerticalEyeMapping getSplitStereoVerticalEyeMapping() const
[more]void setSplitStereoVerticalSeperation(const int s)
[more]const int getSplitStereoVerticalSeperation() const
[more]void setScreenHeight(const float height)
[more]const float getScreenHeight() const
[more]void setDoubleBuffer(const bool flag)
[more]const bool getDoubleBuffer() const
[more]void setRGB(const bool flag)
[more]const bool getRGB() const
[more]void setDepthBuffer(const bool flag)
[more]const bool getDepthBuffer() const
[more]void setMinimumNumAlphaBits(const unsigned int bits)
[more]const unsigned int getMinimumNumAlphaBits() const
[more]const bool getAlphaBuffer() const
[more]void setMinimumNumStencilBits(const unsigned int bits)
[more]const unsigned int getMinimumNumStencilBits() const
[more]const bool getStencilBuffer() const
[more]void setMaxNumberOfGraphicsContexts(const int num)
[more]const int getMaxNumberOfGraphicsContexts() const

Public Members

[more]enum StereoMode
[more]enum SplitStereoHorizontalEyeMapping
[more]enum SplitStereoVerticalEyeMapping

Protected Fields

[more]bool _stereo
[more]StereoMode _stereoMode
[more]float _eyeSeperation
[more]float _screenDistance
[more]float _screenHeight
[more]SplitStereoHorizontalEyeMapping _splitStereoHorizontalEyeMapping
[more]int _splitStereoHorizontalSeperation
[more]SplitStereoVerticalEyeMapping _splitStereoVerticalEyeMapping
[more]int _splitStereoVerticalSeperation
[more]bool _doubleBuffer
[more]bool _RGB
[more]bool _depthBuffer
[more]unsigned int _minimumNumberAlphaBits
[more]unsigned int _minimumNumberStencilBits
[more]int _maxNumOfGraphicsContexts

Protected Methods

[more]void copy(const DisplaySettings& vs)


Inherited from Referenced:

Public Methods

oinline void ref() const
oinline void unref() const
oinline void unref_nodelete() const
oinline const int referenceCount() const

Protected Fields

omutable int _refCount


Documentation

DisplaySettings class for encapsulating what visuals are required and have been set up, and the status of stereo viewing
ostatic DisplaySettings* instance()
Maintain a DisplaySettings singleton for objects to querry at runtime

o DisplaySettings()

o DisplaySettings(std::vector<std::string>& commandLine)

o DisplaySettings(const DisplaySettings& vs)

ovirtual ~DisplaySettings()

oDisplaySettings& operator = (const DisplaySettings& vs)

ovoid merge(const DisplaySettings& vs)

ovoid setDefaults()

ovoid readEnvironmentalVariables()

ovoid readCommandLine(std::vector<std::string>& commandLine)
read the command line string list, removing any matched control sequences

ovoid setStereo(const bool on)

oconst bool getStereo() const

oenum StereoMode

o QUAD_BUFFER

o ANAGLYPHIC

o HORIZONTAL_SPLIT

o VERTICAL_SPLIT

ovoid setStereoMode(const StereoMode mode)

oconst StereoMode getStereoMode() const

ovoid setEyeSeperation(const float eyeSeperation)

oconst float getEyeSeperation() const

ovoid setScreenDistance(const float distance)

oconst float getScreenDistance() const

oenum SplitStereoHorizontalEyeMapping

o LEFT_EYE_LEFT_VIEWPORT

o LEFT_EYE_RIGHT_VIEWPORT

ovoid setSplitStereoHorizontalEyeMapping(SplitStereoHorizontalEyeMapping m)

oSplitStereoHorizontalEyeMapping getSplitStereoHorizontalEyeMapping() const

ovoid setSplitStereoHorizontalSeperation(const int s)

oconst int getSplitStereoHorizontalSeperation() const

oenum SplitStereoVerticalEyeMapping

o LEFT_EYE_TOP_VIEWPORT

o LEFT_EYE_BOTTOM_VIEWPORT

ovoid setSplitStereoVerticalEyeMapping(SplitStereoVerticalEyeMapping m)

oSplitStereoVerticalEyeMapping getSplitStereoVerticalEyeMapping() const

ovoid setSplitStereoVerticalSeperation(const int s)

oconst int getSplitStereoVerticalSeperation() const

ovoid setScreenHeight(const float height)

oconst float getScreenHeight() const

ovoid setDoubleBuffer(const bool flag)

oconst bool getDoubleBuffer() const

ovoid setRGB(const bool flag)

oconst bool getRGB() const

ovoid setDepthBuffer(const bool flag)

oconst bool getDepthBuffer() const

ovoid setMinimumNumAlphaBits(const unsigned int bits)

oconst unsigned int getMinimumNumAlphaBits() const

oconst bool getAlphaBuffer() const

ovoid setMinimumNumStencilBits(const unsigned int bits)

oconst unsigned int getMinimumNumStencilBits() const

oconst bool getStencilBuffer() const

ovoid setMaxNumberOfGraphicsContexts(const int num)

oconst int getMaxNumberOfGraphicsContexts() const

ovoid copy(const DisplaySettings& vs)

obool _stereo

oStereoMode _stereoMode

ofloat _eyeSeperation

ofloat _screenDistance

ofloat _screenHeight

oSplitStereoHorizontalEyeMapping _splitStereoHorizontalEyeMapping

oint _splitStereoHorizontalSeperation

oSplitStereoVerticalEyeMapping _splitStereoVerticalEyeMapping

oint _splitStereoVerticalSeperation

obool _doubleBuffer

obool _RGB

obool _depthBuffer

ounsigned int _minimumNumberAlphaBits

ounsigned int _minimumNumberStencilBits

oint _maxNumOfGraphicsContexts


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.