OpenSceneGraph
3.5.1
|
StateGraph - contained in a renderBin, defines the scene to be drawn. More...
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 () | |
StateGraph * | cloneType () const |
void | setUserData (osg::Referenced *obj) |
osg::Referenced * | getUserData () |
const osg::Referenced * | getUserData () const |
void | setStateSet (const osg::StateSet *stateset) |
const osg::StateSet * | getStateSet () const |
bool | empty () const |
return true if all of drawables, lights and children are empty. More... | |
bool | leaves_empty () const |
float | getAverageDistance () const |
float | getMinimumDistance () const |
void | sortFrontToBack () |
void | reset () |
Reset the internal contents of a StateGraph, including deleting all children. More... | |
void | clean () |
Recursively clean the StateGraph of all its drawables, lights and depths. More... | |
void | prune () |
Recursively prune the StateGraph of empty children. More... | |
StateGraph * | find_or_insert (const osg::StateSet *stateset) |
void | addLeaf (RenderLeaf *leaf) |
add a render leaf. More... | |
Public Member Functions inherited from osg::Referenced | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
Set whether to use a mutex to ensure ref() and unref() are thread safe. More... | |
bool | getThreadSafeRefUnref () const |
Get whether a mutex is used to ensure ref() and unref() are thread safe. More... | |
OpenThreads::Mutex * | getRefMutex () const |
Get the mutex used to ensure thread safety of ref()/unref(). More... | |
int | ref () const |
Increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
int | unref () const |
Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More... | |
int | unref_nodelete () const |
Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More... | |
int | referenceCount () const |
Return the number of pointers currently referencing this object. More... | |
ObserverSet * | getObserverSet () const |
Get the ObserverSet if one is attached, otherwise return NULL. More... | |
ObserverSet * | getOrCreateObserverSet () const |
Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More... | |
void | addObserver (Observer *observer) const |
Add a Observer that is observing this object, notify the Observer when this object gets deleted. More... | |
void | removeObserver (Observer *observer) const |
Remove Observer that is observing this object. More... | |
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::Mutex * | getGlobalReferencedMutex () |
Get the optional global Referenced mutex, this can be shared between all osg::Referenced. More... | |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
Set whether reference counting should use a mutex for thread safe reference counting. More... | |
static bool | getThreadSafeReferenceCounting () |
Get whether reference counting is active. More... | |
static void | setDeleteHandler (DeleteHandler *handler) |
Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. More... | |
static DeleteHandler * | getDeleteHandler () |
Get a DeleteHandler. More... | |
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 |
StateGraph - contained in a renderBin, defines the scene to be drawn.
typedef std::map< const osg::StateSet*, osg::ref_ptr<StateGraph> > osgUtil::StateGraph::ChildList |
typedef std::vector< osg::ref_ptr<RenderLeaf> > osgUtil::StateGraph::LeafList |
|
inline |
|
inline |
|
inline |
|
inline |
add a render leaf.
void osgUtil::StateGraph::clean | ( | ) |
Recursively clean the StateGraph of all its drawables, lights and depths.
Leaves children intact, and ready to be populated again.
|
inline |
|
inline |
return true if all of drawables, lights and children are empty.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
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.
|
inline |
|
inline |
|
inline |
|
mutable |
ChildList osgUtil::StateGraph::_children |
int osgUtil::StateGraph::_depth |
bool osgUtil::StateGraph::_dynamic |
LeafList osgUtil::StateGraph::_leaves |
|
mutable |
StateGraph* osgUtil::StateGraph::_parent |
const osg::StateSet* osgUtil::StateGraph::_stateset |
osg::ref_ptr<osg::Referenced> osgUtil::StateGraph::_userData |
Generated at Wed Nov 11 2015 22:15:18 for the OpenSceneGraph by doxygen 1.8.10. |