OpenSceneGraph  3.5.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osg::DisplaySettings Class Reference

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

Inheritance diagram for osg::DisplaySettings:
Inheritance graph
[legend]

Public Types

enum  DisplayType { MONITOR, POWERWALL, REALITY_CENTER, HEAD_MOUNTED_DISPLAY }
 
enum  StereoMode {
  QUAD_BUFFER, ANAGLYPHIC, HORIZONTAL_SPLIT, VERTICAL_SPLIT,
  LEFT_EYE, RIGHT_EYE, HORIZONTAL_INTERLACE, VERTICAL_INTERLACE,
  CHECKERBOARD
}
 
enum  SplitStereoHorizontalEyeMapping { LEFT_EYE_LEFT_VIEWPORT, LEFT_EYE_RIGHT_VIEWPORT }
 
enum  SplitStereoVerticalEyeMapping { LEFT_EYE_TOP_VIEWPORT, LEFT_EYE_BOTTOM_VIEWPORT }
 
enum  ImplicitBufferAttachment { IMPLICIT_DEPTH_BUFFER_ATTACHMENT = (1 << 0), IMPLICIT_STENCIL_BUFFER_ATTACHMENT = (1 << 1), IMPLICIT_COLOR_BUFFER_ATTACHMENT = (1 << 2), DEFAULT_IMPLICIT_BUFFER_ATTACHMENT = IMPLICIT_COLOR_BUFFER_ATTACHMENT | IMPLICIT_DEPTH_BUFFER_ATTACHMENT }
 Methods used to set and get defaults for Cameras implicit buffer attachments. More...
 
enum  SwapMethod { SWAP_DEFAULT, SWAP_EXCHANGE, SWAP_COPY, SWAP_UNDEFINED }
 
enum  OSXMenubarBehavior { MENUBAR_AUTO_HIDE, MENUBAR_FORCE_HIDE, MENUBAR_FORCE_SHOW }
 
typedef int ImplicitBufferAttachmentMask
 
typedef std::vector< std::string > FileNames
 
typedef std::vector< osg::ref_ptr< osg::Object > > Objects
 

Public Member Functions

 DisplaySettings ()
 
 DisplaySettings (ArgumentParser &arguments)
 
 DisplaySettings (const DisplaySettings &vs)
 
DisplaySettingsoperator= (const DisplaySettings &vs)
 
void setDisplaySettings (const DisplaySettings &vs)
 
void merge (const DisplaySettings &vs)
 
void setDefaults ()
 
void readEnvironmentalVariables ()
 read the environmental variables. More...
 
void readCommandLine (ArgumentParser &arguments)
 read the commandline arguments. More...
 
void setDisplayType (DisplayType type)
 
DisplayType getDisplayType () const
 
void setStereo (bool on)
 
bool getStereo () const
 
void setStereoMode (StereoMode mode)
 
StereoMode getStereoMode () const
 
void setEyeSeparation (float eyeSeparation)
 
float getEyeSeparation () const
 
void setSplitStereoHorizontalEyeMapping (SplitStereoHorizontalEyeMapping m)
 
SplitStereoHorizontalEyeMapping getSplitStereoHorizontalEyeMapping () const
 
void setSplitStereoHorizontalSeparation (int s)
 
int getSplitStereoHorizontalSeparation () const
 
void setSplitStereoVerticalEyeMapping (SplitStereoVerticalEyeMapping m)
 
SplitStereoVerticalEyeMapping getSplitStereoVerticalEyeMapping () const
 
void setSplitStereoVerticalSeparation (int s)
 
int getSplitStereoVerticalSeparation () const
 
void setSplitStereoAutoAdjustAspectRatio (bool flag)
 
bool getSplitStereoAutoAdjustAspectRatio () const
 
void setScreenWidth (float width)
 
float getScreenWidth () const
 
void setScreenHeight (float height)
 
float getScreenHeight () const
 
void setScreenDistance (float distance)
 
float getScreenDistance () const
 
void setDoubleBuffer (bool flag)
 
bool getDoubleBuffer () const
 
void setRGB (bool flag)
 
bool getRGB () const
 
void setDepthBuffer (bool flag)
 
bool getDepthBuffer () const
 
void setMinimumNumAlphaBits (unsigned int bits)
 
unsigned int getMinimumNumAlphaBits () const
 
bool getAlphaBuffer () const
 
void setMinimumNumStencilBits (unsigned int bits)
 
unsigned int getMinimumNumStencilBits () const
 
bool getStencilBuffer () const
 
void setMinimumNumAccumBits (unsigned int red, unsigned int green, unsigned int blue, unsigned int alpha)
 
unsigned int getMinimumNumAccumRedBits () const
 
unsigned int getMinimumNumAccumGreenBits () const
 
unsigned int getMinimumNumAccumBlueBits () const
 
unsigned int getMinimumNumAccumAlphaBits () const
 
bool getAccumBuffer () const
 
void setMaxNumberOfGraphicsContexts (unsigned int num)
 
unsigned int getMaxNumberOfGraphicsContexts () const
 
void setNumMultiSamples (unsigned int samples)
 
unsigned int getNumMultiSamples () const
 
bool getMultiSamples () const
 
void setCompileContextsHint (bool useCompileContexts)
 
bool getCompileContextsHint () const
 
void setSerializeDrawDispatch (bool serializeDrawDispatch)
 
bool getSerializeDrawDispatch () const
 
void setUseSceneViewForStereoHint (bool hint)
 
bool getUseSceneViewForStereoHint () const
 
void setNumOfDatabaseThreadsHint (unsigned int numThreads)
 Set the hint for the total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads. More...
 
unsigned int getNumOfDatabaseThreadsHint () const
 Get the hint for total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads. More...
 
void setNumOfHttpDatabaseThreadsHint (unsigned int numThreads)
 Set the hint for number of threads in the DatbasePager to dedicate to reading http requests. More...
 
unsigned int getNumOfHttpDatabaseThreadsHint () const
 Get the hint for number of threads in the DatbasePager dedicated to reading http requests. More...
 
void setApplication (const std::string &application)
 
const std::string & getApplication ()
 
void setMaxTexturePoolSize (unsigned int size)
 
unsigned int getMaxTexturePoolSize () const
 
void setMaxBufferObjectPoolSize (unsigned int size)
 
unsigned int getMaxBufferObjectPoolSize () const
 
void setImplicitBufferAttachmentMask (ImplicitBufferAttachmentMask renderMask=DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT, ImplicitBufferAttachmentMask resolveMask=DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT)
 
void setImplicitBufferAttachmentRenderMask (ImplicitBufferAttachmentMask implicitBufferAttachmentRenderMask)
 
void setImplicitBufferAttachmentResolveMask (ImplicitBufferAttachmentMask implicitBufferAttachmentResolveMask)
 
ImplicitBufferAttachmentMask getImplicitBufferAttachmentRenderMask () const
 Get mask selecting default implicit buffer attachments for Cameras primary FBOs. More...
 
ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask () const
 Get mask selecting default implicit buffer attachments for Cameras secondary MULTISAMPLE FBOs. More...
 
void setSwapMethod (SwapMethod swapMethod)
 Select preferred swap method. More...
 
SwapMethod getSwapMethod (void)
 Get preferred swap method. More...
 
void setSyncSwapBuffers (unsigned int numFrames=0)
 Set whether Arb Sync should be used to manage the swaps buffers, 0 disables the use of the sync, greater than zero enables sync based on number of frames specified. More...
 
unsigned int getSyncSwapBuffers () const
 Set whether Arb Sync should be used to manage the swaps buffers. More...
 
void setGLContextVersion (const std::string &version)
 Set the hint of which OpenGL version to attempt to create a graphics context for. More...
 
const std::string getGLContextVersion () const
 Get the hint of which OpenGL version to attempt to create a graphics context for. More...
 
void setGLContextFlags (unsigned int flags)
 Set the hint of the flags to use in when creating graphic contexts. More...
 
unsigned int getGLContextFlags () const
 Get the hint of the flags to use in when creating graphic contexts. More...
 
void setGLContextProfileMask (unsigned int mask)
 Set the hint of the profile mask to use in when creating graphic contexts. More...
 
unsigned int getGLContextProfileMask () const
 Get the hint of the profile mask to use in when creating graphic contexts. More...
 
void setNvOptimusEnablement (int value)
 Set the NvOptimusEnablement value. More...
 
int getNvOptimusEnablement () const
 Get the NvOptimusEnablement value. More...
 
void setKeystoneHint (bool enabled)
 
bool getKeystoneHint () const
 
void setKeystoneFileNames (const FileNames &filenames)
 
FileNamesgetKeystoneFileNames ()
 
const FileNamesgetKeystoneFileNames () const
 
void setKeystones (const Objects &objects)
 
ObjectsgetKeystones ()
 
const ObjectsgetKeystones () const
 
OSXMenubarBehavior getOSXMenubarBehavior () const
 
void setOSXMenubarBehavior (OSXMenubarBehavior hint)
 
virtual osg::Matrixd computeLeftEyeProjectionImplementation (const osg::Matrixd &projection) const
 helper function for computing the left eye projection matrix. More...
 
virtual osg::Matrixd computeLeftEyeViewImplementation (const osg::Matrixd &view, double eyeSeperationScale=1.0) const
 helper function for computing the left eye view matrix. More...
 
virtual osg::Matrixd computeRightEyeProjectionImplementation (const osg::Matrixd &projection) const
 helper function for computing the right eye view matrix. More...
 
virtual osg::Matrixd computeRightEyeViewImplementation (const osg::Matrixd &view, double eyeSeperationScale=1.0) const
 helper function for computing the right eye view matrix. More...
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe. More...
 
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe. More...
 
OpenThreads::Mutex * getRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref(). More...
 
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int referenceCount () const
 Return the number of pointers currently referencing this object. More...
 
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL. More...
 
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More...
 
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted. More...
 
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object. More...
 

Static Public Member Functions

static ref_ptr< DisplaySettings > & instance ()
 Maintain a DisplaySettings singleton for objects to query at runtime. More...
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::Mutex * getGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced. More...
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 Set whether reference counting should use a mutex for thread safe reference counting. More...
 
static bool getThreadSafeReferenceCounting ()
 Get whether reference counting is active. More...
 
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. More...
 
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler. More...
 

Protected Member Functions

virtual ~DisplaySettings ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

DisplayType _displayType
 
bool _stereo
 
StereoMode _stereoMode
 
float _eyeSeparation
 
float _screenWidth
 
float _screenHeight
 
float _screenDistance
 
SplitStereoHorizontalEyeMapping _splitStereoHorizontalEyeMapping
 
int _splitStereoHorizontalSeparation
 
SplitStereoVerticalEyeMapping _splitStereoVerticalEyeMapping
 
int _splitStereoVerticalSeparation
 
bool _splitStereoAutoAdjustAspectRatio
 
bool _doubleBuffer
 
bool _RGB
 
bool _depthBuffer
 
unsigned int _minimumNumberAlphaBits
 
unsigned int _minimumNumberStencilBits
 
unsigned int _minimumNumberAccumRedBits
 
unsigned int _minimumNumberAccumGreenBits
 
unsigned int _minimumNumberAccumBlueBits
 
unsigned int _minimumNumberAccumAlphaBits
 
unsigned int _maxNumOfGraphicsContexts
 
unsigned int _numMultiSamples
 
bool _compileContextsHint
 
bool _serializeDrawDispatch
 
bool _useSceneViewForStereoHint
 
unsigned int _numDatabaseThreadsHint
 
unsigned int _numHttpDatabaseThreadsHint
 
std::string _application
 
unsigned int _maxTexturePoolSize
 
unsigned int _maxBufferObjectPoolSize
 
ImplicitBufferAttachmentMask _implicitBufferAttachmentRenderMask
 
ImplicitBufferAttachmentMask _implicitBufferAttachmentResolveMask
 
std::string _glContextVersion
 
unsigned int _glContextFlags
 
unsigned int _glContextProfileMask
 
SwapMethod _swapMethod
 
unsigned int _syncSwapBuffers
 
bool _keystoneHint
 
FileNames _keystoneFileNames
 
Objects _keystones
 
OSXMenubarBehavior _OSXMenubarBehavior
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

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

Member Typedef Documentation

typedef std::vector<std::string> osg::DisplaySettings::FileNames

Member Enumeration Documentation

Enumerator
MONITOR 
POWERWALL 
REALITY_CENTER 
HEAD_MOUNTED_DISPLAY 

Methods used to set and get defaults for Cameras implicit buffer attachments.

For more info: See description of Camera::setImplicitBufferAttachment method

DisplaySettings implicit buffer attachment selection defaults to: DEPTH and COLOR for both primary (Render) FBO and secondary Multisample (Resolve) FBO ie: IMPLICIT_DEPTH_BUFFER_ATTACHMENT | IMPLICIT_COLOR_BUFFER_ATTACHMENT

Enumerator
IMPLICIT_DEPTH_BUFFER_ATTACHMENT 
IMPLICIT_STENCIL_BUFFER_ATTACHMENT 
IMPLICIT_COLOR_BUFFER_ATTACHMENT 
DEFAULT_IMPLICIT_BUFFER_ATTACHMENT 
Enumerator
MENUBAR_AUTO_HIDE 
MENUBAR_FORCE_HIDE 
MENUBAR_FORCE_SHOW 
Enumerator
LEFT_EYE_LEFT_VIEWPORT 
LEFT_EYE_RIGHT_VIEWPORT 
Enumerator
LEFT_EYE_TOP_VIEWPORT 
LEFT_EYE_BOTTOM_VIEWPORT 
Enumerator
QUAD_BUFFER 
ANAGLYPHIC 
HORIZONTAL_SPLIT 
VERTICAL_SPLIT 
LEFT_EYE 
RIGHT_EYE 
HORIZONTAL_INTERLACE 
VERTICAL_INTERLACE 
CHECKERBOARD 
Enumerator
SWAP_DEFAULT 
SWAP_EXCHANGE 
SWAP_COPY 
SWAP_UNDEFINED 

Constructor & Destructor Documentation

osg::DisplaySettings::DisplaySettings ( )
inline
osg::DisplaySettings::DisplaySettings ( ArgumentParser arguments)
inline
osg::DisplaySettings::DisplaySettings ( const DisplaySettings vs)
virtual osg::DisplaySettings::~DisplaySettings ( )
protectedvirtual

Member Function Documentation

virtual osg::Matrixd osg::DisplaySettings::computeLeftEyeProjectionImplementation ( const osg::Matrixd projection) const
virtual

helper function for computing the left eye projection matrix.

virtual osg::Matrixd osg::DisplaySettings::computeLeftEyeViewImplementation ( const osg::Matrixd view,
double  eyeSeperationScale = 1.0 
) const
virtual

helper function for computing the left eye view matrix.

virtual osg::Matrixd osg::DisplaySettings::computeRightEyeProjectionImplementation ( const osg::Matrixd projection) const
virtual

helper function for computing the right eye view matrix.

virtual osg::Matrixd osg::DisplaySettings::computeRightEyeViewImplementation ( const osg::Matrixd view,
double  eyeSeperationScale = 1.0 
) const
virtual

helper function for computing the right eye view matrix.

bool osg::DisplaySettings::getAccumBuffer ( ) const
inline
bool osg::DisplaySettings::getAlphaBuffer ( ) const
inline
const std::string& osg::DisplaySettings::getApplication ( )
inline
bool osg::DisplaySettings::getCompileContextsHint ( ) const
inline
bool osg::DisplaySettings::getDepthBuffer ( ) const
inline
DisplayType osg::DisplaySettings::getDisplayType ( ) const
inline
bool osg::DisplaySettings::getDoubleBuffer ( ) const
inline
float osg::DisplaySettings::getEyeSeparation ( ) const
inline
unsigned int osg::DisplaySettings::getGLContextFlags ( ) const
inline

Get the hint of the flags to use in when creating graphic contexts.

unsigned int osg::DisplaySettings::getGLContextProfileMask ( ) const
inline

Get the hint of the profile mask to use in when creating graphic contexts.

const std::string osg::DisplaySettings::getGLContextVersion ( ) const
inline

Get the hint of which OpenGL version to attempt to create a graphics context for.

ImplicitBufferAttachmentMask osg::DisplaySettings::getImplicitBufferAttachmentRenderMask ( ) const
inline

Get mask selecting default implicit buffer attachments for Cameras primary FBOs.

ImplicitBufferAttachmentMask osg::DisplaySettings::getImplicitBufferAttachmentResolveMask ( ) const
inline

Get mask selecting default implicit buffer attachments for Cameras secondary MULTISAMPLE FBOs.

FileNames& osg::DisplaySettings::getKeystoneFileNames ( )
inline
const FileNames& osg::DisplaySettings::getKeystoneFileNames ( ) const
inline
bool osg::DisplaySettings::getKeystoneHint ( ) const
inline
Objects& osg::DisplaySettings::getKeystones ( )
inline
const Objects& osg::DisplaySettings::getKeystones ( ) const
inline
unsigned int osg::DisplaySettings::getMaxBufferObjectPoolSize ( ) const
inline
unsigned int osg::DisplaySettings::getMaxNumberOfGraphicsContexts ( ) const
unsigned int osg::DisplaySettings::getMaxTexturePoolSize ( ) const
inline
unsigned int osg::DisplaySettings::getMinimumNumAccumAlphaBits ( ) const
inline
unsigned int osg::DisplaySettings::getMinimumNumAccumBlueBits ( ) const
inline
unsigned int osg::DisplaySettings::getMinimumNumAccumGreenBits ( ) const
inline
unsigned int osg::DisplaySettings::getMinimumNumAccumRedBits ( ) const
inline
unsigned int osg::DisplaySettings::getMinimumNumAlphaBits ( ) const
inline
unsigned int osg::DisplaySettings::getMinimumNumStencilBits ( ) const
inline
bool osg::DisplaySettings::getMultiSamples ( ) const
inline
unsigned int osg::DisplaySettings::getNumMultiSamples ( ) const
inline
unsigned int osg::DisplaySettings::getNumOfDatabaseThreadsHint ( ) const
inline

Get the hint for total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.

unsigned int osg::DisplaySettings::getNumOfHttpDatabaseThreadsHint ( ) const
inline

Get the hint for number of threads in the DatbasePager dedicated to reading http requests.

int osg::DisplaySettings::getNvOptimusEnablement ( ) const

Get the NvOptimusEnablement value.

OSXMenubarBehavior osg::DisplaySettings::getOSXMenubarBehavior ( ) const
inline
bool osg::DisplaySettings::getRGB ( ) const
inline
float osg::DisplaySettings::getScreenDistance ( ) const
inline
float osg::DisplaySettings::getScreenHeight ( ) const
inline
float osg::DisplaySettings::getScreenWidth ( ) const
inline
bool osg::DisplaySettings::getSerializeDrawDispatch ( ) const
inline
bool osg::DisplaySettings::getSplitStereoAutoAdjustAspectRatio ( ) const
inline
SplitStereoHorizontalEyeMapping osg::DisplaySettings::getSplitStereoHorizontalEyeMapping ( ) const
inline
int osg::DisplaySettings::getSplitStereoHorizontalSeparation ( ) const
inline
SplitStereoVerticalEyeMapping osg::DisplaySettings::getSplitStereoVerticalEyeMapping ( ) const
inline
int osg::DisplaySettings::getSplitStereoVerticalSeparation ( ) const
inline
bool osg::DisplaySettings::getStencilBuffer ( ) const
inline
bool osg::DisplaySettings::getStereo ( ) const
inline
StereoMode osg::DisplaySettings::getStereoMode ( ) const
inline
SwapMethod osg::DisplaySettings::getSwapMethod ( void  )
inline

Get preferred swap method.

unsigned int osg::DisplaySettings::getSyncSwapBuffers ( ) const
inline

Set whether Arb Sync should be used to manage the swaps buffers.

bool osg::DisplaySettings::getUseSceneViewForStereoHint ( ) const
inline
static ref_ptr<DisplaySettings>& osg::DisplaySettings::instance ( )
static

Maintain a DisplaySettings singleton for objects to query at runtime.

void osg::DisplaySettings::merge ( const DisplaySettings vs)
DisplaySettings& osg::DisplaySettings::operator= ( const DisplaySettings vs)
void osg::DisplaySettings::readCommandLine ( ArgumentParser arguments)

read the commandline arguments.

void osg::DisplaySettings::readEnvironmentalVariables ( )

read the environmental variables.

void osg::DisplaySettings::setApplication ( const std::string &  application)
inline
void osg::DisplaySettings::setCompileContextsHint ( bool  useCompileContexts)
inline
void osg::DisplaySettings::setDefaults ( )
void osg::DisplaySettings::setDepthBuffer ( bool  flag)
inline
void osg::DisplaySettings::setDisplaySettings ( const DisplaySettings vs)
void osg::DisplaySettings::setDisplayType ( DisplayType  type)
inline
void osg::DisplaySettings::setDoubleBuffer ( bool  flag)
inline
void osg::DisplaySettings::setEyeSeparation ( float  eyeSeparation)
inline
void osg::DisplaySettings::setGLContextFlags ( unsigned int  flags)
inline

Set the hint of the flags to use in when creating graphic contexts.

void osg::DisplaySettings::setGLContextProfileMask ( unsigned int  mask)
inline

Set the hint of the profile mask to use in when creating graphic contexts.

void osg::DisplaySettings::setGLContextVersion ( const std::string &  version)
inline

Set the hint of which OpenGL version to attempt to create a graphics context for.

void osg::DisplaySettings::setImplicitBufferAttachmentRenderMask ( ImplicitBufferAttachmentMask  implicitBufferAttachmentRenderMask)
inline
void osg::DisplaySettings::setImplicitBufferAttachmentResolveMask ( ImplicitBufferAttachmentMask  implicitBufferAttachmentResolveMask)
inline
void osg::DisplaySettings::setKeystoneFileNames ( const FileNames filenames)
inline
void osg::DisplaySettings::setKeystoneHint ( bool  enabled)
inline
void osg::DisplaySettings::setKeystones ( const Objects objects)
inline
void osg::DisplaySettings::setMaxBufferObjectPoolSize ( unsigned int  size)
inline
void osg::DisplaySettings::setMaxNumberOfGraphicsContexts ( unsigned int  num)
void osg::DisplaySettings::setMaxTexturePoolSize ( unsigned int  size)
inline
void osg::DisplaySettings::setMinimumNumAccumBits ( unsigned int  red,
unsigned int  green,
unsigned int  blue,
unsigned int  alpha 
)
void osg::DisplaySettings::setMinimumNumAlphaBits ( unsigned int  bits)
inline
void osg::DisplaySettings::setMinimumNumStencilBits ( unsigned int  bits)
inline
void osg::DisplaySettings::setNumMultiSamples ( unsigned int  samples)
inline
void osg::DisplaySettings::setNumOfDatabaseThreadsHint ( unsigned int  numThreads)
inline

Set the hint for the total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.

void osg::DisplaySettings::setNumOfHttpDatabaseThreadsHint ( unsigned int  numThreads)
inline

Set the hint for number of threads in the DatbasePager to dedicate to reading http requests.

void osg::DisplaySettings::setNvOptimusEnablement ( int  value)

Set the NvOptimusEnablement value.

Default can be set using OSG_NvOptimusEnablement env var.

void osg::DisplaySettings::setOSXMenubarBehavior ( OSXMenubarBehavior  hint)
inline
void osg::DisplaySettings::setRGB ( bool  flag)
inline
void osg::DisplaySettings::setScreenDistance ( float  distance)
inline
void osg::DisplaySettings::setScreenHeight ( float  height)
inline
void osg::DisplaySettings::setScreenWidth ( float  width)
inline
void osg::DisplaySettings::setSerializeDrawDispatch ( bool  serializeDrawDispatch)
inline
void osg::DisplaySettings::setSplitStereoAutoAdjustAspectRatio ( bool  flag)
inline
void osg::DisplaySettings::setSplitStereoHorizontalEyeMapping ( SplitStereoHorizontalEyeMapping  m)
inline
void osg::DisplaySettings::setSplitStereoHorizontalSeparation ( int  s)
inline
void osg::DisplaySettings::setSplitStereoVerticalEyeMapping ( SplitStereoVerticalEyeMapping  m)
inline
void osg::DisplaySettings::setSplitStereoVerticalSeparation ( int  s)
inline
void osg::DisplaySettings::setStereo ( bool  on)
inline
void osg::DisplaySettings::setStereoMode ( StereoMode  mode)
inline
void osg::DisplaySettings::setSwapMethod ( SwapMethod  swapMethod)
inline

Select preferred swap method.

void osg::DisplaySettings::setSyncSwapBuffers ( unsigned int  numFrames = 0)
inline

Set whether Arb Sync should be used to manage the swaps buffers, 0 disables the use of the sync, greater than zero enables sync based on number of frames specified.

void osg::DisplaySettings::setUseSceneViewForStereoHint ( bool  hint)
inline

Member Data Documentation

std::string osg::DisplaySettings::_application
protected
bool osg::DisplaySettings::_compileContextsHint
protected
bool osg::DisplaySettings::_depthBuffer
protected
DisplayType osg::DisplaySettings::_displayType
protected
bool osg::DisplaySettings::_doubleBuffer
protected
float osg::DisplaySettings::_eyeSeparation
protected
unsigned int osg::DisplaySettings::_glContextFlags
protected
unsigned int osg::DisplaySettings::_glContextProfileMask
protected
std::string osg::DisplaySettings::_glContextVersion
protected
ImplicitBufferAttachmentMask osg::DisplaySettings::_implicitBufferAttachmentRenderMask
protected
ImplicitBufferAttachmentMask osg::DisplaySettings::_implicitBufferAttachmentResolveMask
protected
FileNames osg::DisplaySettings::_keystoneFileNames
protected
bool osg::DisplaySettings::_keystoneHint
protected
Objects osg::DisplaySettings::_keystones
protected
unsigned int osg::DisplaySettings::_maxBufferObjectPoolSize
protected
unsigned int osg::DisplaySettings::_maxNumOfGraphicsContexts
protected
unsigned int osg::DisplaySettings::_maxTexturePoolSize
protected
unsigned int osg::DisplaySettings::_minimumNumberAccumAlphaBits
protected
unsigned int osg::DisplaySettings::_minimumNumberAccumBlueBits
protected
unsigned int osg::DisplaySettings::_minimumNumberAccumGreenBits
protected
unsigned int osg::DisplaySettings::_minimumNumberAccumRedBits
protected
unsigned int osg::DisplaySettings::_minimumNumberAlphaBits
protected
unsigned int osg::DisplaySettings::_minimumNumberStencilBits
protected
unsigned int osg::DisplaySettings::_numDatabaseThreadsHint
protected
unsigned int osg::DisplaySettings::_numHttpDatabaseThreadsHint
protected
unsigned int osg::DisplaySettings::_numMultiSamples
protected
OSXMenubarBehavior osg::DisplaySettings::_OSXMenubarBehavior
protected
bool osg::DisplaySettings::_RGB
protected
float osg::DisplaySettings::_screenDistance
protected
float osg::DisplaySettings::_screenHeight
protected
float osg::DisplaySettings::_screenWidth
protected
bool osg::DisplaySettings::_serializeDrawDispatch
protected
bool osg::DisplaySettings::_splitStereoAutoAdjustAspectRatio
protected
SplitStereoHorizontalEyeMapping osg::DisplaySettings::_splitStereoHorizontalEyeMapping
protected
int osg::DisplaySettings::_splitStereoHorizontalSeparation
protected
SplitStereoVerticalEyeMapping osg::DisplaySettings::_splitStereoVerticalEyeMapping
protected
int osg::DisplaySettings::_splitStereoVerticalSeparation
protected
bool osg::DisplaySettings::_stereo
protected
StereoMode osg::DisplaySettings::_stereoMode
protected
SwapMethod osg::DisplaySettings::_swapMethod
protected
unsigned int osg::DisplaySettings::_syncSwapBuffers
protected
bool osg::DisplaySettings::_useSceneViewForStereoHint
protected

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

osg logo
Generated at Wed Nov 11 2015 22:14:32 for the OpenSceneGraph by doxygen 1.8.10.