Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osgUtil::RenderGraph Class Reference

Inheritance diagram for osgUtil::RenderGraph:

Inheritance graph
[legend]
List of all members.

Public Types

typedef std::map< const osg::StateSet *,
osg::ref_ptr< RenderGraph > > 
ChildList
typedef std::vector< osg::ref_ptr<
RenderLeaf > > 
LeafList

Public Methods

 RenderGraph ()
 RenderGraph (RenderGraph *parent, const osg::StateSet *stateset)
 ~RenderGraph ()
RenderGraph * cloneType () const
void setUserData (osg::Referenced *obj)
osg::Referenced * getUserData ()
const osg::Referenced * getUserData () const
const bool empty () const
 return true if all of drawables, lights and children are empty.

const bool leaves_empty () const
const float getAverageDistance () const
void sortFrontToBack ()
void reset ()
 reset the internal contents of a RenderGraph, including deleting all children.

void clean ()
 recursively clean the RenderGraph of all its drawables, lights and depths.

void prune ()
 recursively prune the RenderGraph of empty children.

RenderGraph * find_or_insert (const osg::StateSet *stateset)
void addLeaf (RenderLeaf *leaf)
 add a render leaf.


Static Public Methods

void moveRenderGraph (osg::State &state, RenderGraph *sg_curr, RenderGraph *sg_new)
void moveToRootRenderGraph (osg::State &state, RenderGraph *sg_curr)

Public Attributes

RenderGraph * _parent
osg::ref_ptr< const osg::StateSet > _stateset
int _depth
ChildList _children
LeafList _leaves
float _averageDistance
osg::ref_ptr< osg::Referenced > _userData

Member Typedef Documentation

typedef std::map< const osg::StateSet*, osg::ref_ptr<RenderGraph> > osgUtil::RenderGraph::ChildList
 

typedef std::vector< osg::ref_ptr<RenderLeaf> > osgUtil::RenderGraph::LeafList
 


Constructor & Destructor Documentation

osgUtil::RenderGraph::RenderGraph (    )  [inline]
 

osgUtil::RenderGraph::RenderGraph (  RenderGraph *    parent,
const osg::StateSet *    stateset
)  [inline]
 

osgUtil::RenderGraph::~RenderGraph (    )  [inline]
 


Member Function Documentation

void osgUtil::RenderGraph::addLeaf (  RenderLeaf *    leaf )  [inline]
 

add a render leaf.

void osgUtil::RenderGraph::clean (    ) 
 

recursively clean the RenderGraph of all its drawables, lights and depths.

Leaves children intact, and ready to be populated again.

RenderGraph* osgUtil::RenderGraph::cloneType (    )  const [inline]
 

const bool osgUtil::RenderGraph::empty (    )  const [inline]
 

return true if all of drawables, lights and children are empty.

RenderGraph* osgUtil::RenderGraph::find_or_insert (  const osg::StateSet *    stateset )  [inline]
 

const float osgUtil::RenderGraph::getAverageDistance (    )  const [inline]
 

const osg::Referenced* osgUtil::RenderGraph::getUserData (    )  const [inline]
 

osg::Referenced* osgUtil::RenderGraph::getUserData (    )  [inline]
 

const bool osgUtil::RenderGraph::leaves_empty (    )  const [inline]
 

void osgUtil::RenderGraph::moveRenderGraph (  osg::State &    state,
RenderGraph *    sg_curr,
RenderGraph *    sg_new
)  [inline, static]
 

void osgUtil::RenderGraph::moveToRootRenderGraph (  osg::State &    state,
RenderGraph *    sg_curr
)  [inline, static]
 

void osgUtil::RenderGraph::prune (    ) 
 

recursively prune the RenderGraph of empty children.

void osgUtil::RenderGraph::reset (    ) 
 

reset the internal contents of a RenderGraph, including deleting all children.

void osgUtil::RenderGraph::setUserData (  osg::Referenced *    obj )  [inline]
 

void osgUtil::RenderGraph::sortFrontToBack (    )  [inline]
 


Member Data Documentation

float osgUtil::RenderGraph::_averageDistance
 

ChildList osgUtil::RenderGraph::_children
 

int osgUtil::RenderGraph::_depth
 

LeafList osgUtil::RenderGraph::_leaves
 

RenderGraph* osgUtil::RenderGraph::_parent
 

osg::ref_ptr<const osg::StateSet> osgUtil::RenderGraph::_stateset
 

osg::ref_ptr<osg::Referenced> osgUtil::RenderGraph::_userData
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:56:01 2002 for the Open Scene Graph by doxygen 1.2.16.