#include <ViewState.h>
Inheritance diagram for nvsg::ViewState:
Public Member Functions | |
NVSG_API const ViewState * | clone () const |
Instantiates a constant copy of this ViewState object. | |
NVSG_API size_t | getAnimationFrame (void) const |
Get the current animation frame. | |
NVSG_API const Camera * | getCamera (void) const |
Get the current camera. | |
NVSG_API bool | isAnimating (void) const |
Ask if the view is animated. | |
NVSG_API bool | isStereo (void) const |
Ask if the view is in stereo mode. | |
NVSG_API void | setAnimationFrame (size_t frame) |
Set the animation frame. | |
NVSG_API void | setAnimation (bool state) |
Enable/Disable animation. | |
NVSG_API void | setCamera (const Camera *pCamera) |
Set the current camera. | |
NVSG_API void | setStereo (bool state) |
Enable/Disable stereo. | |
NVSG_API void | clearCullTree (void) const |
Clear the current cull tree. | |
NVSG_API const CullData * | getCullTree (void) const |
Get the root of the CullData-tree. | |
NVSG_API void | setCullTree (const CullData *cullTree) |
Set a given cull tree as the current. | |
NVSG_API bool | waitToRead (size_t milliseconds=0xFFFFFFFF) const |
Acquire read access in a multithreaded environment. | |
NVSG_API void | doneReading (void) const |
Signal when finished reading the object. | |
NVSG_API bool | waitToWrite (size_t milliseconds=0xFFFFFFFF) const |
Acquire write access in a multithreaded enviroment. | |
NVSG_API void | doneWriting (void) const |
Signal finished writing the object. | |
Static Public Member Functions | |
static NVSG_API const ViewState * | create () |
Instantiates a default-constructed constant ViewState. | |
Protected Member Functions | |
NVSG_API | ViewState (void) |
Default-initializes a ViewState object. | |
NVSG_API | ViewState (const ViewState &rhs) |
Initializes a ViewState as a copy of another ViewState object. | |
virtual NVSG_API | ~ViewState (void) |
Protected destructor to prevent explicit creation on stack. |
|
Default-initializes a ViewState object.
|
|
Initializes a ViewState as a copy of another ViewState object.
|
|
Protected destructor to prevent explicit creation on stack.
|
|
Instantiates a default-constructed constant ViewState.
|
|
Instantiates a constant copy of this ViewState object.
|
|
Get the current animation frame.
|
|
Get the current camera.
|
|
Ask if the view is animated.
|
|
Ask if the view is in stereo mode.
|
|
Set the animation frame.
|
|
Enable/Disable animation.
|
|
Set the current camera.
|
|
Enable/Disable stereo.
|
|
Clear the current cull tree.
|
|
Get the root of the CullData-tree.
|
|
Set a given cull tree as the current.
|
|
Acquire read access in a multithreaded environment. For safety in a multithreaded environment, an object maintains a read/write locking mechanism that allows contemporaneous access for multiple readers but write access for only a single writer.
|
|
Signal when finished reading the object. A read access to this object, that has been acquired by a previous call to waitToRead, will be ended by a call to this function. |
|
Acquire write access in a multithreaded enviroment. or safety in a multithreaded environment, an object maintains a read/write locking mechanism that allows contemporaneous access for multiple readers but write access for only a single writer.
|
|
Signal finished writing the object. A write access to this object, that has been acquired by a previous call to waitToWrite, will be ended by a call to this function. |