OpenSceneGraph
3.0.1
|
DisplaySettings class for encapsulating what visuals are required and have been set up, and the status of stereo viewing. More...
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 } |
typedef int | ImplicitBufferAttachmentMask |
Public Member Functions | |
DisplaySettings () | |
DisplaySettings (ArgumentParser &arguments) | |
DisplaySettings (const DisplaySettings &vs) | |
DisplaySettings & | operator= (const DisplaySettings &vs) |
void | setDisplaySettings (const DisplaySettings &vs) |
void | merge (const DisplaySettings &vs) |
void | setDefaults () |
void | readEnvironmentalVariables () |
read the environmental variables. | |
void | readCommandLine (ArgumentParser &arguments) |
read the commandline 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 | 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. | |
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. | |
void | setNumOfHttpDatabaseThreadsHint (unsigned int numThreads) |
Set the hint for number of threads in the DatbasePager to dedicate to reading http requests. | |
unsigned int | getNumOfHttpDatabaseThreadsHint () const |
Get the hint for number of threads in the DatbasePager dedicated to reading http requests. | |
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 implict buffer attachments for Cameras primary FBOs. | |
ImplicitBufferAttachmentMask | getImplicitBufferAttachmentResolveMask () const |
Get mask selecting default implict buffer attachments for Cameras secondary MULTISAMPLE FBOs. | |
void | setSwapMethod (SwapMethod swapMethod) |
Select preferred swap method. | |
SwapMethod | getSwapMethod (void) |
Get preferred swap method. | |
void | setGLContextVersion (const std::string &version) |
Set the hint of which OpenGL version to attempt to create a graphics context for. | |
const std::string | getGLContextVersion () const |
Get the hint of which OpenGL version to attempt to create a graphics context for. | |
void | setGLContextFlags (unsigned int flags) |
Set the hint of the flags to use in when creating graphic contexts. | |
unsigned int | getGLContextFlags () const |
Get the hint of the flags to use in when creating graphic contexts. | |
void | setGLContextProfileMask (unsigned int mask) |
Set the hint of the profile mask to use in when creating graphic contexts. | |
unsigned int | getGLContextProfileMask () const |
Get the hint of the profile mask to use in when creating graphic contexts. | |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
Set whether to use a mutex to ensure ref() and unref() are thread safe. | |
bool | getThreadSafeRefUnref () const |
Get whether a mutex is used to ensure ref() and unref() are thread safe. | |
OpenThreads::Mutex * | getRefMutex () const |
Get the mutex used to ensure thread safety of ref()/unref(). | |
int | ref () const |
Increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
int | unref () const |
Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
int | unref_nodelete () const |
Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
int | referenceCount () const |
Return the number of pointers currently referencing this object. | |
ObserverSet * | getObserverSet () const |
Get the ObserverSet if one is attached, otherwise return NULL. | |
ObserverSet * | getOrCreateObserverSet () const |
Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. | |
void | addObserver (Observer *observer) const |
Add a Observer that is observing this object, notify the Observer when this object gets deleted. | |
void | removeObserver (Observer *observer) const |
Remove Observer that is observing this object. |
Static Public Member Functions | |
static ref_ptr< DisplaySettings > & | instance () |
Maintain a DisplaySettings singleton for objects to query at runtime. | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
Get the optional global Referenced mutex, this can be shared between all osg::Referenced. | |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
Set whether reference counting should use a mutex for thread safe reference counting. | |
static bool | getThreadSafeReferenceCounting () |
Get whether reference counting is active. | |
static void | setDeleteHandler (DeleteHandler *handler) |
Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. | |
static DeleteHandler * | getDeleteHandler () |
Get a DeleteHandler. |
Protected Member Functions | |
virtual | ~DisplaySettings () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
DisplaySettings class for encapsulating what visuals are required and have been set up, and the status of stereo viewing.
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 seconday Multisample (Resolve) FBO ie: IMPLICT_DEPTH_BUFFER_ATTACHMENT | IMPLICIT_COLOR_BUFFER_ATTACHMENT
|
inline |
|
inline |
References osgDB::readCommandLine().
osg::DisplaySettings::DisplaySettings | ( | const DisplaySettings & | vs | ) |
|
protectedvirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the hint of the flags to use in when creating graphic contexts.
|
inline |
Get the hint of the profile mask to use in when creating graphic contexts.
|
inline |
Get the hint of which OpenGL version to attempt to create a graphics context for.
|
inline |
Get mask selecting default implict buffer attachments for Cameras primary FBOs.
Referenced by osg::Camera::getImplicitBufferAttachmentRenderMask().
|
inline |
Get mask selecting default implict buffer attachments for Cameras secondary MULTISAMPLE FBOs.
Referenced by osg::Camera::getImplicitBufferAttachmentResolveMask().
|
inline |
unsigned int osg::DisplaySettings::getMaxNumberOfGraphicsContexts | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the hint for total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.
|
inline |
Get the hint for number of threads in the DatbasePager dedicated to reading http requests.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get preferred swap method.
|
static |
Maintain a DisplaySettings singleton for objects to query at runtime.
Referenced by osg::Camera::getImplicitBufferAttachmentRenderMask(), and osg::Camera::getImplicitBufferAttachmentResolveMask().
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.
|
inline |
|
inline |
void osg::DisplaySettings::setDefaults | ( | ) |
|
inline |
void osg::DisplaySettings::setDisplaySettings | ( | const DisplaySettings & | vs | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Set the hint of the flags to use in when creating graphic contexts.
|
inline |
Set the hint of the profile mask to use in when creating graphic contexts.
|
inline |
Set the hint of which OpenGL version to attempt to create a graphics context for.
|
inline |
|
inline |
|
inline |
|
inline |
void osg::DisplaySettings::setMaxNumberOfGraphicsContexts | ( | unsigned int | num | ) |
|
inline |
void osg::DisplaySettings::setMinimumNumAccumBits | ( | unsigned int | red, |
unsigned int | green, | ||
unsigned int | blue, | ||
unsigned int | alpha | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
Set the hint for the total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.
|
inline |
Set the hint for number of threads in the DatbasePager to dedicate to reading http requests.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Select preferred swap method.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
![]() | Generated at Thu Oct 4 2012 13:45:06 for the OpenSceneGraph by doxygen 1.8.1.1. |