OpenFrames
|
This class analyzes and partitions a scene for rendering. More...
#include <DepthPartitioner.hpp>
Classes | |
struct | CameraManager |
Public Member Functions | |
void | reset () |
void | setMaxTraversalDepth (unsigned int depth) |
unsigned int | getMaxTraversalDepth () const |
virtual void | updateSlave (osg::View &view, osg::View::Slave &slave) |
void | setCameraManager (CameraManager *cameraManager) |
Protected Attributes | |
osg::ref_ptr< DistanceAccumulator > | _distAccumulator |
osg::ref_ptr< CameraManager > | _cameraManager |
unsigned int | _numActiveCameras |
This class analyzes and partitions a scene for rendering.
This class analyzes a scene, then partitions it into several segments that can be rendered separately. Each segment is small enough in the z-direction to avoid depth-buffer problems for very large scenes. Note this must be a slave-update callback since normal update callbacks are called before the camera manipulator (e.g. trackball) is applied.
|
inline |
Remove all internal slave cameras from current View
void OpenFrames::DepthPartitionCallback::setCameraManager | ( | CameraManager * | cameraManager | ) |
Specify a new camera manager. NULL means reset to basic camera manager
|
inline |
Set/get the maximum scene traversal depth, defaults to UINT_MAX
|
virtual |
Define the callback function