|
openscenegraph
|
Public Types | |
| typedef std::vector< ref_ptr < Drawable > > | DrawableList |
Public Types inherited from osg::Node | |
| typedef std::vector< Group * > | ParentList |
| typedef unsigned int | NodeMask |
| typedef std::vector< std::string > | DescriptionList |
Public Types inherited from osg::Object | |
| enum | DataVariance { DYNAMIC, STATIC, UNSPECIFIED } |
Protected Member Functions | |
| virtual | ~Geode () |
Protected Member Functions inherited from osg::Node | |
| virtual | ~Node () |
| void | addParent (osg::Group *node) |
| void | removeParent (osg::Group *node) |
| void | setNumChildrenRequiringUpdateTraversal (unsigned int num) |
| void | setNumChildrenRequiringEventTraversal (unsigned int num) |
| void | setNumChildrenWithCullingDisabled (unsigned int num) |
| void | setNumChildrenWithOccluderNodes (unsigned int num) |
Protected Member Functions inherited from osg::Object | |
| virtual | ~Object () |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| osg::BoundingBox | _bbox |
| DrawableList | _drawables |
Protected Attributes inherited from osg::Node | |
| BoundingSphere | _initialBound |
| ref_ptr < ComputeBoundingSphereCallback > | _computeBoundCallback |
| BoundingSphere | _boundingSphere |
| bool | _boundingSphereComputed |
| ParentList | _parents |
| ref_ptr< NodeCallback > | _updateCallback |
| unsigned int | _numChildrenRequiringUpdateTraversal |
| ref_ptr< NodeCallback > | _eventCallback |
| unsigned int | _numChildrenRequiringEventTraversal |
| ref_ptr< NodeCallback > | _cullCallback |
| bool | _cullingActive |
| unsigned int | _numChildrenWithCullingDisabled |
| unsigned int | _numChildrenWithOccluderNodes |
| NodeMask | _nodeMask |
| ref_ptr< StateSet > | _stateset |
Protected Attributes inherited from osg::Object | |
| std::string | _name |
| DataVariance | _dataVariance |
| osg::UserDataContainer * | _userDataContainer |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
| static bool | getThreadSafeReferenceCounting () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
A Geode is a "geometry node", that is, a leaf node on the scene graph that can have "renderable things" attached to it. In OSG, renderable things are represented by objects from the Drawable class, so a Geode is a Node whose purpose is grouping Drawables.
| typedef std::vector< ref_ptr<Drawable> > osg::Geode::DrawableList |
| osg::Geode::Geode | ( | ) |
| osg::Geode::Geode | ( | const Geode & | , |
| const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
| ) |
Copy constructor using CopyOp to manage deep vs shallow copy.
|
protectedvirtual |
|
virtual |
Add a Drawable to the Geode. If drawable is not NULL and is not contained in the Geode then increment its reference count, add it to the drawables list and dirty the bounding sphere to force it to be recomputed on the next call to getBound().
true for success; false otherwise. Reimplemented in osg::Billboard.
|
inlinevirtual |
|
inlinevirtual |
| void osg::Geode::compileDrawables | ( | RenderInfo & | renderInfo | ) |
Compile OpenGL Display List for each drawable.
|
virtual |
Compute the bounding sphere around Node's geometry or children. This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound().
Reimplemented from osg::Node.
Reimplemented in osg::Billboard.
|
inline |
|
inline |
Return the Geode's bounding box, which is the union of all the bounding boxes of the geode's drawables.
|
inline |
Return the Drawable at position i.
Referenced by osgUtil::Simplifier::apply().
|
inline |
Return the Drawable at position i.
|
inline |
Get the index number of drawable.
getNumDrawables()-1 if drawable is found; if not found, then getNumDrawables() is returned.
|
inline |
Get the list of drawables.
|
inline |
Return the number of Drawables currently attached to the Geode.
Referenced by osgUtil::Simplifier::apply().
| osg::Geode::META_Node | ( | osg | , |
| Geode | |||
| ) |
|
virtual |
|
virtual |
Remove a Drawable from the Geode. Equivalent to removeDrawable(getDrawableIndex(drawable).
| drawable | The drawable to be removed. |
true if at least one Drawable was removed. false otherwise. Reimplemented in osg::Billboard.
|
virtual |
Replace specified Drawable with another Drawable. Equivalent to setDrawable(getDrawableIndex(origDraw),newDraw), see docs for setDrawable() for further details on implementation.
|
virtual |
Resize any per context GLObject buffers to specified size.
Reimplemented from osg::Node.
|
virtual |
Set Drawable at position i. Decrement the reference count origGSet and increments the reference count of newGset, and dirty the bounding sphere to force it to recompute on next getBound() and returns true. If origDrawable is not found then return false and do not add newGset. If newGset is NULL then return false and do not remove origGset.
true if set correctly, false on failure (if node==NULL || i is out of range).
|
virtual |
|
mutableprotected |
|
protected |
1.8.1.2