OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
osgUtil::StateGraph Class Reference

#include <StateGraph.h>

Inheritance diagram for osgUtil::StateGraph:
Inheritance graph
[legend]
Collaboration diagram for osgUtil::StateGraph:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 StateGraph ()
 
 StateGraph (StateGraph *parent, const osg::StateSet *stateset)
 
 ~StateGraph ()
 
StateGraphcloneType () const
 
void setUserData (osg::Referenced *obj)
 
osg::ReferencedgetUserData ()
 
const osg::ReferencedgetUserData () const
 
void setStateSet (const osg::StateSet *stateset)
 
const osg::StateSetgetStateSet () const
 
bool empty () const
 
bool leaves_empty () const
 
float getAverageDistance () const
 
float getMinimumDistance () const
 
void sortFrontToBack ()
 
void reset ()
 
void clean ()
 
void prune ()
 
StateGraphfind_or_insert (const osg::StateSet *stateset)
 
void addLeaf (RenderLeaf *leaf)
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Static Public Member Functions

static void moveStateGraph (osg::State &state, StateGraph *sg_curr, StateGraph *sg_new)
 
static void moveToRootStateGraph (osg::State &state, StateGraph *sg_curr)
 
static int numToPop (StateGraph *sg_curr)
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Public Attributes

StateGraph_parent
 
const osg::StateSet_stateset
 
int _depth
 
ChildList _children
 
LeafList _leaves
 
float _averageDistance
 
float _minimumDistance
 
osg::ref_ptr< osg::Referenced_userData
 
bool _dynamic
 

Additional Inherited Members

- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

StateGraph - contained in a renderBin, defines the scene to be drawn.

Definition at line 41 of file StateGraph.h.

Member Typedef Documentation

Definition at line 46 of file StateGraph.h.

Definition at line 47 of file StateGraph.h.

Constructor & Destructor Documentation

osgUtil::StateGraph::StateGraph ( )
inline

Definition at line 68 of file StateGraph.h.

osgUtil::StateGraph::StateGraph ( StateGraph parent,
const osg::StateSet stateset 
)
inline

Definition at line 80 of file StateGraph.h.

Here is the call graph for this function:

osgUtil::StateGraph::~StateGraph ( )
inline

Definition at line 96 of file StateGraph.h.

Member Function Documentation

void osgUtil::StateGraph::addLeaf ( RenderLeaf leaf)
inline

add a render leaf.

Definition at line 189 of file StateGraph.h.

Here is the caller graph for this function:

void osgUtil::StateGraph::clean ( )

Recursively clean the StateGraph of all its drawables, lights and depths. Leaves children intact, and ready to be populated again.

StateGraph* osgUtil::StateGraph::cloneType ( ) const
inline

Definition at line 98 of file StateGraph.h.

bool osgUtil::StateGraph::empty ( ) const
inline

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

Definition at line 113 of file StateGraph.h.

StateGraph* osgUtil::StateGraph::find_or_insert ( const osg::StateSet stateset)
inline

Definition at line 175 of file StateGraph.h.

float osgUtil::StateGraph::getAverageDistance ( ) const
inline

Definition at line 124 of file StateGraph.h.

float osgUtil::StateGraph::getMinimumDistance ( ) const
inline

Definition at line 141 of file StateGraph.h.

const osg::StateSet* osgUtil::StateGraph::getStateSet ( ) const
inline

Definition at line 109 of file StateGraph.h.

Here is the caller graph for this function:

osg::Referenced* osgUtil::StateGraph::getUserData ( )
inline

Definition at line 101 of file StateGraph.h.

Here is the call graph for this function:

const osg::Referenced* osgUtil::StateGraph::getUserData ( ) const
inline

Definition at line 102 of file StateGraph.h.

Here is the call graph for this function:

bool osgUtil::StateGraph::leaves_empty ( ) const
inline

Definition at line 118 of file StateGraph.h.

Here is the caller graph for this function:

static void osgUtil::StateGraph::moveStateGraph ( osg::State state,
StateGraph sg_curr,
StateGraph sg_new 
)
inlinestatic

Definition at line 201 of file StateGraph.h.

Here is the call graph for this function:

static void osgUtil::StateGraph::moveToRootStateGraph ( osg::State state,
StateGraph sg_curr 
)
inlinestatic

Definition at line 285 of file StateGraph.h.

Here is the call graph for this function:

static int osgUtil::StateGraph::numToPop ( StateGraph sg_curr)
inlinestatic

Definition at line 296 of file StateGraph.h.

Here is the call graph for this function:

void osgUtil::StateGraph::prune ( )

Recursively prune the StateGraph of empty children.

void osgUtil::StateGraph::reset ( )

Reset the internal contents of a StateGraph, including deleting all children.

void osgUtil::StateGraph::setStateSet ( const osg::StateSet stateset)
inline

Definition at line 104 of file StateGraph.h.

void osgUtil::StateGraph::setUserData ( osg::Referenced obj)
inline

Definition at line 100 of file StateGraph.h.

void osgUtil::StateGraph::sortFrontToBack ( )
inline

Definition at line 159 of file StateGraph.h.

Member Data Documentation

float osgUtil::StateGraph::_averageDistance
mutable

Definition at line 61 of file StateGraph.h.

ChildList osgUtil::StateGraph::_children

Definition at line 58 of file StateGraph.h.

int osgUtil::StateGraph::_depth

Definition at line 57 of file StateGraph.h.

bool osgUtil::StateGraph::_dynamic

Definition at line 66 of file StateGraph.h.

LeafList osgUtil::StateGraph::_leaves

Definition at line 59 of file StateGraph.h.

float osgUtil::StateGraph::_minimumDistance
mutable

Definition at line 62 of file StateGraph.h.

StateGraph* osgUtil::StateGraph::_parent

Definition at line 49 of file StateGraph.h.

const osg::StateSet* osgUtil::StateGraph::_stateset

Definition at line 54 of file StateGraph.h.

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

Definition at line 64 of file StateGraph.h.


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