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(ArgumentParser& arguments)
[more] DisplaySettings(const DisplaySettings& vs)
[more]DisplaySettings& operator = (const DisplaySettings& vs)
[more]void merge(const DisplaySettings& vs)
[more]void setDefaults()
[more]void readEnvironmentalVariables()
[more]void readCommandLine(ArgumentParser& arguments)
read the commandline arguments
[more]void setStereo(bool on)
[more]bool getStereo() const
[more]void setStereoMode(StereoMode mode)
[more]StereoMode getStereoMode() const
[more]void setEyeSeparation(float eyeSeparation)
[more]float getEyeSeparation() const
[more]void setScreenDistance(float distance)
[more]float getScreenDistance() const
[more]void setSplitStereoHorizontalEyeMapping(SplitStereoHorizontalEyeMapping m)
[more]SplitStereoHorizontalEyeMapping getSplitStereoHorizontalEyeMapping() const
[more]void setSplitStereoHorizontalSeparation(int s)
[more]int getSplitStereoHorizontalSeparation() const
[more]void setSplitStereoVerticalEyeMapping(SplitStereoVerticalEyeMapping m)
[more]SplitStereoVerticalEyeMapping getSplitStereoVerticalEyeMapping() const
[more]void setSplitStereoVerticalSeparation(int s)
[more]int getSplitStereoVerticalSeparation() const
[more]void setSplitStereoAutoAjustAspectRatio(bool flag)
[more]bool getSplitStereoAutoAjustAspectRatio() const
[more]void setScreenHeight(float height)
[more]float getScreenHeight() const
[more]void setDoubleBuffer(bool flag)
[more]bool getDoubleBuffer() const
[more]void setRGB(bool flag)
[more]bool getRGB() const
[more]void setDepthBuffer(bool flag)
[more]bool getDepthBuffer() const
[more]void setMinimumNumAlphaBits(unsigned int bits)
[more]unsigned int getMinimumNumAlphaBits() const
[more]bool getAlphaBuffer() const
[more]void setMinimumNumStencilBits(unsigned int bits)
[more]unsigned int getMinimumNumStencilBits() const
[more]bool getStencilBuffer() const
[more]void setMaxNumberOfGraphicsContexts(unsigned int num)
[more]unsigned int getMaxNumberOfGraphicsContexts() const

Public Members

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

Protected Fields

[more]bool _stereo
[more]StereoMode _stereoMode
[more]float _eyeSeparation
[more]float _screenDistance
[more]float _screenHeight
[more]SplitStereoHorizontalEyeMapping _splitStereoHorizontalEyeMapping
[more]int _splitStereoHorizontalSeparation
[more]SplitStereoVerticalEyeMapping _splitStereoVerticalEyeMapping
[more]int _splitStereoVerticalSeparation
[more]bool _splitStereoAutoAdjustAspectRatio
[more]bool _doubleBuffer
[more]bool _RGB
[more]bool _depthBuffer
[more]unsigned int _minimumNumberAlphaBits
[more]unsigned int _minimumNumberStencilBits
[more]unsigned int _maxNumOfGraphicsContexts

Protected Methods

[more]virtual ~DisplaySettings()
[more]void copy(const DisplaySettings& vs)


Inherited from Referenced:

Public Methods

ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() 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(ArgumentParser& arguments)

o DisplaySettings(const DisplaySettings& vs)

oDisplaySettings& operator = (const DisplaySettings& vs)

ovoid merge(const DisplaySettings& vs)

ovoid setDefaults()

ovoid readEnvironmentalVariables()

ovoid readCommandLine(ArgumentParser& arguments)
read the commandline arguments

ovoid setStereo(bool on)

obool getStereo() const

oenum StereoMode

o QUAD_BUFFER

o ANAGLYPHIC

o HORIZONTAL_SPLIT

o VERTICAL_SPLIT

o LEFT_EYE

o RIGHT_EYE

ovoid setStereoMode(StereoMode mode)

oStereoMode getStereoMode() const

ovoid setEyeSeparation(float eyeSeparation)

ofloat getEyeSeparation() const

ovoid setScreenDistance(float distance)

ofloat getScreenDistance() const

oenum SplitStereoHorizontalEyeMapping

o LEFT_EYE_LEFT_VIEWPORT

o LEFT_EYE_RIGHT_VIEWPORT

ovoid setSplitStereoHorizontalEyeMapping(SplitStereoHorizontalEyeMapping m)

oSplitStereoHorizontalEyeMapping getSplitStereoHorizontalEyeMapping() const

ovoid setSplitStereoHorizontalSeparation(int s)

oint getSplitStereoHorizontalSeparation() const

oenum SplitStereoVerticalEyeMapping

o LEFT_EYE_TOP_VIEWPORT

o LEFT_EYE_BOTTOM_VIEWPORT

ovoid setSplitStereoVerticalEyeMapping(SplitStereoVerticalEyeMapping m)

oSplitStereoVerticalEyeMapping getSplitStereoVerticalEyeMapping() const

ovoid setSplitStereoVerticalSeparation(int s)

oint getSplitStereoVerticalSeparation() const

ovoid setSplitStereoAutoAjustAspectRatio(bool flag)

obool getSplitStereoAutoAjustAspectRatio() const

ovoid setScreenHeight(float height)

ofloat getScreenHeight() const

ovoid setDoubleBuffer(bool flag)

obool getDoubleBuffer() const

ovoid setRGB(bool flag)

obool getRGB() const

ovoid setDepthBuffer(bool flag)

obool getDepthBuffer() const

ovoid setMinimumNumAlphaBits(unsigned int bits)

ounsigned int getMinimumNumAlphaBits() const

obool getAlphaBuffer() const

ovoid setMinimumNumStencilBits(unsigned int bits)

ounsigned int getMinimumNumStencilBits() const

obool getStencilBuffer() const

ovoid setMaxNumberOfGraphicsContexts(unsigned int num)

ounsigned int getMaxNumberOfGraphicsContexts() const

ovirtual ~DisplaySettings()

ovoid copy(const DisplaySettings& vs)

obool _stereo

oStereoMode _stereoMode

ofloat _eyeSeparation

ofloat _screenDistance

ofloat _screenHeight

oSplitStereoHorizontalEyeMapping _splitStereoHorizontalEyeMapping

oint _splitStereoHorizontalSeparation

oSplitStereoVerticalEyeMapping _splitStereoVerticalEyeMapping

oint _splitStereoVerticalSeparation

obool _splitStereoAutoAdjustAspectRatio

obool _doubleBuffer

obool _RGB

obool _depthBuffer

ounsigned int _minimumNumberAlphaBits

ounsigned int _minimumNumberStencilBits

ounsigned int _maxNumOfGraphicsContexts


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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