Public Member Functions | |
OsgSceneHandler (osg::DisplaySettings *ds=NULL) | |
void | setSceneView (osgUtil::SceneView *sceneView) |
set the scene view to which will manage rendering of the OSG scene. | |
osgUtil::SceneView * | getSceneView () |
get the scene view. | |
const osgUtil::SceneView * | getSceneView () const |
get the const scene view. | |
virtual void | init () |
override the init method to force it be run one at a time. | |
virtual void | clear (Producer::Camera &camera) |
virtual void | clearImplementation (Producer::Camera &camera) |
void | setClearCallback (Callback *callback) |
Callback * | getClearCallback () |
const Callback * | getClearCallback () const |
virtual void | cull (Producer::Camera &camera) |
virtual void | cullImplementation (Producer::Camera &camera) |
void | setCullCallback (Callback *callback) |
Callback * | getCullCallback () |
const Callback * | getCullCallback () const |
virtual void | draw (Producer::Camera &camera) |
virtual void | drawImplementation (Producer::Camera &camera) |
void | setDrawCallback (Callback *callback) |
Callback * | getDrawCallback () |
const Callback * | getDrawCallback () const |
void | setContextID (int id) |
void | setFlushOfAllDeletedGLObjectsOnNextFrame (bool flag) |
bool | getFlushOfAllDeletedGLObjectsOnNextFrame () const |
void | setCleanUpOnNextFrame (bool flag) |
bool | getCleanUpOnNextFrame () const |
Protected Member Functions | |
virtual | ~OsgSceneHandler () |
Protected Attributes | |
osg::ref_ptr< osgUtil::SceneView > | _sceneView |
osg::ref_ptr< Callback > | _clearCallback |
osg::ref_ptr< Callback > | _cullCallback |
osg::ref_ptr< Callback > | _drawCallback |
osg::Timer_t | _frameStartTick |
osg::Timer_t | _previousFrameStartTick |
bool | _flushOfAllDeletedGLObjectsOnNextFrame |
bool | _cleanUpOnNextFrame |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get the const scene view.
|
|
get the scene view.
|
|
override the init method to force it be run one at a time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set the scene view to which will manage rendering of the OSG scene.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|