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 | setCollectStats (bool collectStats) |
bool | getCollectStats () const |
bool | getStats (osgUtil::Statistics &primStats) |
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 | |
OpenThreads::Mutex | _cullMutex |
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 |
bool | _collectStats |
osgUtil::Statistics | _stats |
Classes | |
class | Callback |
osgProducer::OsgSceneHandler::OsgSceneHandler | ( | osg::DisplaySettings * | ds = NULL |
) |
virtual osgProducer::OsgSceneHandler::~OsgSceneHandler | ( | ) | [inline, protected, virtual] |
virtual void osgProducer::OsgSceneHandler::clear | ( | Producer::Camera & | camera | ) | [inline, virtual] |
virtual void osgProducer::OsgSceneHandler::clearImplementation | ( | Producer::Camera & | camera | ) | [virtual] |
virtual void osgProducer::OsgSceneHandler::cull | ( | Producer::Camera & | camera | ) | [inline, virtual] |
virtual void osgProducer::OsgSceneHandler::cullImplementation | ( | Producer::Camera & | camera | ) | [virtual] |
virtual void osgProducer::OsgSceneHandler::draw | ( | Producer::Camera & | camera | ) | [inline, virtual] |
virtual void osgProducer::OsgSceneHandler::drawImplementation | ( | Producer::Camera & | camera | ) | [virtual] |
bool osgProducer::OsgSceneHandler::getCleanUpOnNextFrame | ( | ) | const [inline] |
const Callback* osgProducer::OsgSceneHandler::getClearCallback | ( | ) | const [inline] |
Callback* osgProducer::OsgSceneHandler::getClearCallback | ( | ) | [inline] |
bool osgProducer::OsgSceneHandler::getCollectStats | ( | ) | const [inline] |
const Callback* osgProducer::OsgSceneHandler::getCullCallback | ( | ) | const [inline] |
Callback* osgProducer::OsgSceneHandler::getCullCallback | ( | ) | [inline] |
const Callback* osgProducer::OsgSceneHandler::getDrawCallback | ( | ) | const [inline] |
Callback* osgProducer::OsgSceneHandler::getDrawCallback | ( | ) | [inline] |
bool osgProducer::OsgSceneHandler::getFlushOfAllDeletedGLObjectsOnNextFrame | ( | ) | const [inline] |
const osgUtil::SceneView* osgProducer::OsgSceneHandler::getSceneView | ( | ) | const [inline] |
get the const scene view.
osgUtil::SceneView* osgProducer::OsgSceneHandler::getSceneView | ( | ) | [inline] |
get the scene view.
bool osgProducer::OsgSceneHandler::getStats | ( | osgUtil::Statistics & | primStats | ) |
virtual void osgProducer::OsgSceneHandler::init | ( | ) | [virtual] |
override the init method to force it be run one at a time.
void osgProducer::OsgSceneHandler::setCleanUpOnNextFrame | ( | bool | flag | ) | [inline] |
void osgProducer::OsgSceneHandler::setClearCallback | ( | Callback * | callback | ) | [inline] |
void osgProducer::OsgSceneHandler::setCollectStats | ( | bool | collectStats | ) | [inline] |
void osgProducer::OsgSceneHandler::setContextID | ( | int | id | ) |
void osgProducer::OsgSceneHandler::setCullCallback | ( | Callback * | callback | ) | [inline] |
void osgProducer::OsgSceneHandler::setDrawCallback | ( | Callback * | callback | ) | [inline] |
void osgProducer::OsgSceneHandler::setFlushOfAllDeletedGLObjectsOnNextFrame | ( | bool | flag | ) | [inline] |
void osgProducer::OsgSceneHandler::setSceneView | ( | osgUtil::SceneView * | sceneView | ) | [inline] |
set the scene view to which will manage rendering of the OSG scene.
bool osgProducer::OsgSceneHandler::_cleanUpOnNextFrame [protected] |
bool osgProducer::OsgSceneHandler::_collectStats [protected] |
OpenThreads::Mutex osgProducer::OsgSceneHandler::_cullMutex [protected] |
bool osgProducer::OsgSceneHandler::_flushOfAllDeletedGLObjectsOnNextFrame [protected] |