OpenFrames
Classes | Public Member Functions | Protected Attributes | List of all members
OpenFrames::DepthPartitionCallback Class Reference

This class analyzes and partitions a scene for rendering. More...

#include <DepthPartitioner.hpp>

Inheritance diagram for OpenFrames::DepthPartitionCallback:

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
 

Detailed Description

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.

Member Function Documentation

◆ reset()

void OpenFrames::DepthPartitionCallback::reset ( )
inline

Remove all internal slave cameras from current View

◆ setCameraManager()

void OpenFrames::DepthPartitionCallback::setCameraManager ( CameraManager cameraManager)

Specify a new camera manager. NULL means reset to basic camera manager

◆ setMaxTraversalDepth()

void OpenFrames::DepthPartitionCallback::setMaxTraversalDepth ( unsigned int  depth)
inline

Set/get the maximum scene traversal depth, defaults to UINT_MAX

◆ updateSlave()

virtual void OpenFrames::DepthPartitionCallback::updateSlave ( osg::View &  view,
osg::View::Slave &  slave 
)
virtual

Define the callback function


The documentation for this class was generated from the following file: