OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osg::DisplaySettings Class Reference

#include <DisplaySettings.h>

Inheritance diagram for osg::DisplaySettings:
Inheritance graph
[legend]
Collaboration diagram for osg::DisplaySettings:
Collaboration 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 }
 
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 ()
 
void readCommandLine (ArgumentParser &arguments)
 
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)
 
unsigned int getNumOfDatabaseThreadsHint () const
 
void setNumOfHttpDatabaseThreadsHint (unsigned int numThreads)
 
unsigned int getNumOfHttpDatabaseThreadsHint () const
 
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
 
ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask () const
 
void setSwapMethod (SwapMethod swapMethod)
 
SwapMethod getSwapMethod (void)
 
void setSyncSwapBuffers (unsigned int numFrames=0)
 
unsigned int getSyncSwapBuffers () const
 
void setGLContextVersion (const std::string &version)
 
const std::string getGLContextVersion () const
 
void setGLContextFlags (unsigned int flags)
 
unsigned int getGLContextFlags () const
 
void setGLContextProfileMask (unsigned int mask)
 
unsigned int getGLContextProfileMask () const
 
void setNvOptimusEnablement (int value)
 
int getNvOptimusEnablement () const
 
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
 
virtual osg::Matrixd computeLeftEyeViewImplementation (const osg::Matrixd &view, double eyeSeperationScale=1.0) const
 
virtual osg::Matrixd computeRightEyeProjectionImplementation (const osg::Matrixd &projection) const
 
virtual osg::Matrixd computeRightEyeViewImplementation (const osg::Matrixd &view, double eyeSeperationScale=1.0) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Static Public Member Functions

static ref_ptr< DisplaySettings > & instance ()
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

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.

Definition at line 32 of file DisplaySettings.h.

Member Typedef Documentation

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

Definition at line 305 of file DisplaySettings.h.

Definition at line 231 of file DisplaySettings.h.

Definition at line 310 of file DisplaySettings.h.

Member Enumeration Documentation

Enumerator
MONITOR 
POWERWALL 
REALITY_CENTER 
HEAD_MOUNTED_DISPLAY 

Definition at line 73 of file DisplaySettings.h.

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 

Definition at line 223 of file DisplaySettings.h.

Enumerator
MENUBAR_AUTO_HIDE 
MENUBAR_FORCE_HIDE 
MENUBAR_FORCE_SHOW 

Definition at line 315 of file DisplaySettings.h.

Enumerator
LEFT_EYE_LEFT_VIEWPORT 
LEFT_EYE_RIGHT_VIEWPORT 

Definition at line 108 of file DisplaySettings.h.

Enumerator
LEFT_EYE_TOP_VIEWPORT 
LEFT_EYE_BOTTOM_VIEWPORT 

Definition at line 120 of file DisplaySettings.h.

Enumerator
QUAD_BUFFER 
ANAGLYPHIC 
HORIZONTAL_SPLIT 
VERTICAL_SPLIT 
LEFT_EYE 
RIGHT_EYE 
HORIZONTAL_INTERLACE 
VERTICAL_INTERLACE 
CHECKERBOARD 

Definition at line 89 of file DisplaySettings.h.

Enumerator
SWAP_DEFAULT 
SWAP_EXCHANGE 
SWAP_COPY 
SWAP_UNDEFINED 

Definition at line 255 of file DisplaySettings.h.

Constructor & Destructor Documentation

osg::DisplaySettings::DisplaySettings ( )
inline

Definition at line 40 of file DisplaySettings.h.

osg::DisplaySettings::DisplaySettings ( ArgumentParser arguments)
inline

Definition at line 47 of file DisplaySettings.h.

Here is the call graph for this function:

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

Definition at line 172 of file DisplaySettings.h.

bool osg::DisplaySettings::getAlphaBuffer ( ) const
inline

Definition at line 161 of file DisplaySettings.h.

const std::string& osg::DisplaySettings::getApplication ( )
inline

Definition at line 206 of file DisplaySettings.h.

bool osg::DisplaySettings::getCompileContextsHint ( ) const
inline

Definition at line 183 of file DisplaySettings.h.

bool osg::DisplaySettings::getDepthBuffer ( ) const
inline

Definition at line 156 of file DisplaySettings.h.

DisplayType osg::DisplaySettings::getDisplayType ( ) const
inline

Definition at line 83 of file DisplaySettings.h.

bool osg::DisplaySettings::getDoubleBuffer ( ) const
inline

Definition at line 148 of file DisplaySettings.h.

float osg::DisplaySettings::getEyeSeparation ( ) const
inline

Definition at line 106 of file DisplaySettings.h.

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

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

Definition at line 288 of file DisplaySettings.h.

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

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

Definition at line 294 of file DisplaySettings.h.

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

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

Definition at line 282 of file DisplaySettings.h.

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

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

Definition at line 250 of file DisplaySettings.h.

Here is the caller graph for this function:

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

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

Definition at line 253 of file DisplaySettings.h.

Here is the caller graph for this function:

FileNames& osg::DisplaySettings::getKeystoneFileNames ( )
inline

Definition at line 307 of file DisplaySettings.h.

const FileNames& osg::DisplaySettings::getKeystoneFileNames ( ) const
inline

Definition at line 308 of file DisplaySettings.h.

bool osg::DisplaySettings::getKeystoneHint ( ) const
inline

Definition at line 303 of file DisplaySettings.h.

Objects& osg::DisplaySettings::getKeystones ( )
inline

Definition at line 312 of file DisplaySettings.h.

const Objects& osg::DisplaySettings::getKeystones ( ) const
inline

Definition at line 313 of file DisplaySettings.h.

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

Definition at line 213 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::getMaxNumberOfGraphicsContexts ( ) const
unsigned int osg::DisplaySettings::getMaxTexturePoolSize ( ) const
inline

Definition at line 210 of file DisplaySettings.h.

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

Definition at line 171 of file DisplaySettings.h.

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

Definition at line 170 of file DisplaySettings.h.

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

Definition at line 169 of file DisplaySettings.h.

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

Definition at line 168 of file DisplaySettings.h.

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

Definition at line 160 of file DisplaySettings.h.

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

Definition at line 164 of file DisplaySettings.h.

bool osg::DisplaySettings::getMultiSamples ( ) const
inline

Definition at line 180 of file DisplaySettings.h.

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

Definition at line 179 of file DisplaySettings.h.

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.

Definition at line 197 of file DisplaySettings.h.

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

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

Definition at line 203 of file DisplaySettings.h.

int osg::DisplaySettings::getNvOptimusEnablement ( ) const

Get the NvOptimusEnablement value.

OSXMenubarBehavior osg::DisplaySettings::getOSXMenubarBehavior ( ) const
inline

Definition at line 321 of file DisplaySettings.h.

bool osg::DisplaySettings::getRGB ( ) const
inline

Definition at line 152 of file DisplaySettings.h.

float osg::DisplaySettings::getScreenDistance ( ) const
inline

Definition at line 143 of file DisplaySettings.h.

float osg::DisplaySettings::getScreenHeight ( ) const
inline

Definition at line 140 of file DisplaySettings.h.

float osg::DisplaySettings::getScreenWidth ( ) const
inline

Definition at line 137 of file DisplaySettings.h.

bool osg::DisplaySettings::getSerializeDrawDispatch ( ) const
inline

Definition at line 186 of file DisplaySettings.h.

bool osg::DisplaySettings::getSplitStereoAutoAdjustAspectRatio ( ) const
inline

Definition at line 133 of file DisplaySettings.h.

SplitStereoHorizontalEyeMapping osg::DisplaySettings::getSplitStereoHorizontalEyeMapping ( ) const
inline

Definition at line 115 of file DisplaySettings.h.

int osg::DisplaySettings::getSplitStereoHorizontalSeparation ( ) const
inline

Definition at line 118 of file DisplaySettings.h.

SplitStereoVerticalEyeMapping osg::DisplaySettings::getSplitStereoVerticalEyeMapping ( ) const
inline

Definition at line 127 of file DisplaySettings.h.

int osg::DisplaySettings::getSplitStereoVerticalSeparation ( ) const
inline

Definition at line 130 of file DisplaySettings.h.

bool osg::DisplaySettings::getStencilBuffer ( ) const
inline

Definition at line 165 of file DisplaySettings.h.

bool osg::DisplaySettings::getStereo ( ) const
inline

Definition at line 87 of file DisplaySettings.h.

StereoMode osg::DisplaySettings::getStereoMode ( ) const
inline

Definition at line 103 of file DisplaySettings.h.

SwapMethod osg::DisplaySettings::getSwapMethod ( void  )
inline

Get preferred swap method

Definition at line 267 of file DisplaySettings.h.

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

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

Definition at line 274 of file DisplaySettings.h.

bool osg::DisplaySettings::getUseSceneViewForStereoHint ( ) const
inline

Definition at line 190 of file DisplaySettings.h.

static ref_ptr<DisplaySettings>& osg::DisplaySettings::instance ( )
static

Maintain a DisplaySettings singleton for objects to query at runtime.

Here is the caller graph for this function:

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

Definition at line 205 of file DisplaySettings.h.

void osg::DisplaySettings::setCompileContextsHint ( bool  useCompileContexts)
inline

Definition at line 182 of file DisplaySettings.h.

void osg::DisplaySettings::setDefaults ( )
void osg::DisplaySettings::setDepthBuffer ( bool  flag)
inline

Definition at line 155 of file DisplaySettings.h.

void osg::DisplaySettings::setDisplaySettings ( const DisplaySettings vs)
void osg::DisplaySettings::setDisplayType ( DisplayType  type)
inline

Definition at line 81 of file DisplaySettings.h.

void osg::DisplaySettings::setDoubleBuffer ( bool  flag)
inline

Definition at line 147 of file DisplaySettings.h.

void osg::DisplaySettings::setEyeSeparation ( float  eyeSeparation)
inline

Definition at line 105 of file DisplaySettings.h.

void osg::DisplaySettings::setGLContextFlags ( unsigned int  flags)
inline

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

Definition at line 285 of file DisplaySettings.h.

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

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

Definition at line 291 of file DisplaySettings.h.

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

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

Definition at line 279 of file DisplaySettings.h.

Definition at line 233 of file DisplaySettings.h.

void osg::DisplaySettings::setImplicitBufferAttachmentRenderMask ( ImplicitBufferAttachmentMask  implicitBufferAttachmentRenderMask)
inline

Definition at line 239 of file DisplaySettings.h.

void osg::DisplaySettings::setImplicitBufferAttachmentResolveMask ( ImplicitBufferAttachmentMask  implicitBufferAttachmentResolveMask)
inline

Definition at line 244 of file DisplaySettings.h.

void osg::DisplaySettings::setKeystoneFileNames ( const FileNames filenames)
inline

Definition at line 306 of file DisplaySettings.h.

void osg::DisplaySettings::setKeystoneHint ( bool  enabled)
inline

Definition at line 302 of file DisplaySettings.h.

void osg::DisplaySettings::setKeystones ( const Objects objects)
inline

Definition at line 311 of file DisplaySettings.h.

void osg::DisplaySettings::setMaxBufferObjectPoolSize ( unsigned int  size)
inline

Definition at line 212 of file DisplaySettings.h.

void osg::DisplaySettings::setMaxNumberOfGraphicsContexts ( unsigned int  num)
void osg::DisplaySettings::setMaxTexturePoolSize ( unsigned int  size)
inline

Definition at line 209 of file DisplaySettings.h.

void osg::DisplaySettings::setMinimumNumAccumBits ( unsigned int  red,
unsigned int  green,
unsigned int  blue,
unsigned int  alpha 
)
void osg::DisplaySettings::setMinimumNumAlphaBits ( unsigned int  bits)
inline

Definition at line 159 of file DisplaySettings.h.

void osg::DisplaySettings::setMinimumNumStencilBits ( unsigned int  bits)
inline

Definition at line 163 of file DisplaySettings.h.

void osg::DisplaySettings::setNumMultiSamples ( unsigned int  samples)
inline

Definition at line 178 of file DisplaySettings.h.

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.

Definition at line 194 of file DisplaySettings.h.

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

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

Definition at line 200 of file DisplaySettings.h.

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

Definition at line 322 of file DisplaySettings.h.

void osg::DisplaySettings::setRGB ( bool  flag)
inline

Definition at line 151 of file DisplaySettings.h.

void osg::DisplaySettings::setScreenDistance ( float  distance)
inline

Definition at line 142 of file DisplaySettings.h.

void osg::DisplaySettings::setScreenHeight ( float  height)
inline

Definition at line 139 of file DisplaySettings.h.

void osg::DisplaySettings::setScreenWidth ( float  width)
inline

Definition at line 136 of file DisplaySettings.h.

void osg::DisplaySettings::setSerializeDrawDispatch ( bool  serializeDrawDispatch)
inline

Definition at line 185 of file DisplaySettings.h.

void osg::DisplaySettings::setSplitStereoAutoAdjustAspectRatio ( bool  flag)
inline

Definition at line 132 of file DisplaySettings.h.

void osg::DisplaySettings::setSplitStereoHorizontalEyeMapping ( SplitStereoHorizontalEyeMapping  m)
inline

Definition at line 114 of file DisplaySettings.h.

void osg::DisplaySettings::setSplitStereoHorizontalSeparation ( int  s)
inline

Definition at line 117 of file DisplaySettings.h.

void osg::DisplaySettings::setSplitStereoVerticalEyeMapping ( SplitStereoVerticalEyeMapping  m)
inline

Definition at line 126 of file DisplaySettings.h.

void osg::DisplaySettings::setSplitStereoVerticalSeparation ( int  s)
inline

Definition at line 129 of file DisplaySettings.h.

void osg::DisplaySettings::setStereo ( bool  on)
inline

Definition at line 86 of file DisplaySettings.h.

void osg::DisplaySettings::setStereoMode ( StereoMode  mode)
inline

Definition at line 102 of file DisplaySettings.h.

void osg::DisplaySettings::setSwapMethod ( SwapMethod  swapMethod)
inline

Select preferred swap method

Definition at line 264 of file DisplaySettings.h.

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.

Definition at line 271 of file DisplaySettings.h.

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

Definition at line 189 of file DisplaySettings.h.

Member Data Documentation

std::string osg::DisplaySettings::_application
protected

Definition at line 376 of file DisplaySettings.h.

bool osg::DisplaySettings::_compileContextsHint
protected

Definition at line 369 of file DisplaySettings.h.

bool osg::DisplaySettings::_depthBuffer
protected

Definition at line 357 of file DisplaySettings.h.

DisplayType osg::DisplaySettings::_displayType
protected

Definition at line 341 of file DisplaySettings.h.

bool osg::DisplaySettings::_doubleBuffer
protected

Definition at line 355 of file DisplaySettings.h.

float osg::DisplaySettings::_eyeSeparation
protected

Definition at line 344 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_glContextFlags
protected

Definition at line 385 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_glContextProfileMask
protected

Definition at line 386 of file DisplaySettings.h.

std::string osg::DisplaySettings::_glContextVersion
protected

Definition at line 384 of file DisplaySettings.h.

ImplicitBufferAttachmentMask osg::DisplaySettings::_implicitBufferAttachmentRenderMask
protected

Definition at line 381 of file DisplaySettings.h.

ImplicitBufferAttachmentMask osg::DisplaySettings::_implicitBufferAttachmentResolveMask
protected

Definition at line 382 of file DisplaySettings.h.

FileNames osg::DisplaySettings::_keystoneFileNames
protected

Definition at line 392 of file DisplaySettings.h.

bool osg::DisplaySettings::_keystoneHint
protected

Definition at line 391 of file DisplaySettings.h.

Objects osg::DisplaySettings::_keystones
protected

Definition at line 393 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_maxBufferObjectPoolSize
protected

Definition at line 379 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_maxNumOfGraphicsContexts
protected

Definition at line 365 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_maxTexturePoolSize
protected

Definition at line 378 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_minimumNumberAccumAlphaBits
protected

Definition at line 363 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_minimumNumberAccumBlueBits
protected

Definition at line 362 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_minimumNumberAccumGreenBits
protected

Definition at line 361 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_minimumNumberAccumRedBits
protected

Definition at line 360 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_minimumNumberAlphaBits
protected

Definition at line 358 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_minimumNumberStencilBits
protected

Definition at line 359 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_numDatabaseThreadsHint
protected

Definition at line 373 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_numHttpDatabaseThreadsHint
protected

Definition at line 374 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_numMultiSamples
protected

Definition at line 367 of file DisplaySettings.h.

OSXMenubarBehavior osg::DisplaySettings::_OSXMenubarBehavior
protected

Definition at line 395 of file DisplaySettings.h.

bool osg::DisplaySettings::_RGB
protected

Definition at line 356 of file DisplaySettings.h.

float osg::DisplaySettings::_screenDistance
protected

Definition at line 347 of file DisplaySettings.h.

float osg::DisplaySettings::_screenHeight
protected

Definition at line 346 of file DisplaySettings.h.

float osg::DisplaySettings::_screenWidth
protected

Definition at line 345 of file DisplaySettings.h.

bool osg::DisplaySettings::_serializeDrawDispatch
protected

Definition at line 370 of file DisplaySettings.h.

bool osg::DisplaySettings::_splitStereoAutoAdjustAspectRatio
protected

Definition at line 353 of file DisplaySettings.h.

SplitStereoHorizontalEyeMapping osg::DisplaySettings::_splitStereoHorizontalEyeMapping
protected

Definition at line 349 of file DisplaySettings.h.

int osg::DisplaySettings::_splitStereoHorizontalSeparation
protected

Definition at line 350 of file DisplaySettings.h.

SplitStereoVerticalEyeMapping osg::DisplaySettings::_splitStereoVerticalEyeMapping
protected

Definition at line 351 of file DisplaySettings.h.

int osg::DisplaySettings::_splitStereoVerticalSeparation
protected

Definition at line 352 of file DisplaySettings.h.

bool osg::DisplaySettings::_stereo
protected

Definition at line 342 of file DisplaySettings.h.

StereoMode osg::DisplaySettings::_stereoMode
protected

Definition at line 343 of file DisplaySettings.h.

SwapMethod osg::DisplaySettings::_swapMethod
protected

Definition at line 388 of file DisplaySettings.h.

unsigned int osg::DisplaySettings::_syncSwapBuffers
protected

Definition at line 389 of file DisplaySettings.h.

bool osg::DisplaySettings::_useSceneViewForStereoHint
protected

Definition at line 371 of file DisplaySettings.h.


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