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 Classes

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

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 setDisplaySettings(const DisplaySettings& vs)
[more]void merge(const DisplaySettings& vs)
[more]void setDefaults()
[more]void readEnvironmentalVariables()
read the environmental variables
[more]void readCommandLine(ArgumentParser& arguments)
read the commandline arguments
[more]void setDisplayType(DisplayType type)
[more]DisplayType getDisplayType() const
[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 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 setScreenWidth(float width)
[more]float getScreenWidth() const
[more]void setScreenHeight(float height)
[more]float getScreenHeight() const
[more]void setScreenDistance(float distance)
[more]float getScreenDistance() 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

Protected Fields

[more]DisplayType _displayType
[more]bool _stereo
[more]StereoMode _stereoMode
[more]float _eyeSeparation
[more]float _screenWidth
[more]float _screenHeight
[more]float _screenDistance
[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()


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 OpenThreads::Mutex _refMutex
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 setDisplaySettings(const DisplaySettings& vs)

ovoid merge(const DisplaySettings& vs)

ovoid setDefaults()

ovoid readEnvironmentalVariables()
read the environmental variables

ovoid readCommandLine(ArgumentParser& arguments)
read the commandline arguments

oenum DisplayType

o MONITOR

o POWERWALL

o REALITY_CENTER

o HEAD_MOUNTED_DISPLAY

ovoid setDisplayType(DisplayType type)

oDisplayType getDisplayType() const

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

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 setScreenWidth(float width)

ofloat getScreenWidth() const

ovoid setScreenHeight(float height)

ofloat getScreenHeight() const

ovoid setScreenDistance(float distance)

ofloat getScreenDistance() 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()

oDisplayType _displayType

obool _stereo

oStereoMode _stereoMode

ofloat _eyeSeparation

ofloat _screenWidth

ofloat _screenHeight

ofloat _screenDistance

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++.