OpenSceneGraph 3.6.5
osgUtil::IncrementalCompileOperation::CompileSet Class Reference

#include <IncrementalCompileOperation>

Inheritance diagram for osgUtil::IncrementalCompileOperation::CompileSet:

Public Types

typedef std::map< osg::GraphicsContext *, CompileListCompileMap

Public Member Functions

 CompileSet ()
 CompileSet (osg::Node *subgraphToCompile)
 CompileSet (osg::Group *attachmentPoint, osg::Node *subgraphToCompile)
void buildCompileMap (ContextSet &contexts, StateToCompile &stateToCompile)
void buildCompileMap (ContextSet &contexts, GLObjectsVisitor::Mode mode=GLObjectsVisitor::COMPILE_DISPLAY_LISTS|GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES)
bool compile (CompileInfo &compileInfo)
bool compiled () const
Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Deprecated, Referenced is now always uses thread safe ref/unref, use default Referenced() constructor instead.
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool)
 Deprecated, Referenced is always theadsafe so there method now has no effect and does not need to be called.
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe.
OpenThreads::Mutex * getRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref().
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it.
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it.
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it.
int referenceCount () const
 Return the number of pointers currently referencing this object.
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL.
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet.
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted.
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object.

Public Attributes

OpenThreads::Atomic _numberCompileListsToCompile
osg::observer_ptr< osg::Group_attachmentPoint
osg::ref_ptr< osg::Node_subgraphToCompile
osg::ref_ptr< CompileCompletedCallback_compileCompletedCallback
CompileMap _compileMap
osg::ref_ptr< osg::Object_markerObject

Protected Member Functions

virtual ~CompileSet ()
Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Additional Inherited Members

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.
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated.
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler.
Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Member Typedef Documentation

◆ CompileMap

Constructor & Destructor Documentation

◆ CompileSet() [1/3]

osgUtil::IncrementalCompileOperation::CompileSet::CompileSet ( )
inline

◆ CompileSet() [2/3]

osgUtil::IncrementalCompileOperation::CompileSet::CompileSet ( osg::Node * subgraphToCompile)
inline

References _subgraphToCompile.

◆ CompileSet() [3/3]

osgUtil::IncrementalCompileOperation::CompileSet::CompileSet ( osg::Group * attachmentPoint,
osg::Node * subgraphToCompile )
inline

◆ ~CompileSet()

virtual osgUtil::IncrementalCompileOperation::CompileSet::~CompileSet ( )
inlineprotectedvirtual

Member Function Documentation

◆ buildCompileMap() [1/2]

◆ buildCompileMap() [2/2]

void osgUtil::IncrementalCompileOperation::CompileSet::buildCompileMap ( ContextSet & contexts,
StateToCompile & stateToCompile )

◆ compile()

bool osgUtil::IncrementalCompileOperation::CompileSet::compile ( CompileInfo & compileInfo)

◆ compiled()

bool osgUtil::IncrementalCompileOperation::CompileSet::compiled ( ) const
inline

Member Data Documentation

◆ _attachmentPoint

osg::observer_ptr<osg::Group> osgUtil::IncrementalCompileOperation::CompileSet::_attachmentPoint

Referenced by CompileSet().

◆ _compileCompletedCallback

osg::ref_ptr<CompileCompletedCallback> osgUtil::IncrementalCompileOperation::CompileSet::_compileCompletedCallback

◆ _compileMap

CompileMap osgUtil::IncrementalCompileOperation::CompileSet::_compileMap

◆ _markerObject

osg::ref_ptr<osg::Object> osgUtil::IncrementalCompileOperation::CompileSet::_markerObject

◆ _numberCompileListsToCompile

OpenThreads::Atomic osgUtil::IncrementalCompileOperation::CompileSet::_numberCompileListsToCompile

Referenced by compiled().

◆ _subgraphToCompile

osg::ref_ptr<osg::Node> osgUtil::IncrementalCompileOperation::CompileSet::_subgraphToCompile

Referenced by CompileSet(), and CompileSet().


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

osg logo
Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.