110 for (NodeList::const_iterator itr=
_children.begin();
114 if (itr->get() == drawable)
return true;
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
BoundingBoxd BoundingBox
Definition BoundingBox:257
BoundingSphered BoundingSphere
Definition BoundingSphere:308
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Pure virtual base class for drawable geometry.
Definition Drawable:89
virtual Geode * asGeode()
Convert 'this' into a Geode pointer if Node is a Geode, otherwise return 0.
Definition Geode:39
osg::BoundingBox _bbox
Definition Geode:151
virtual bool replaceDrawable(Drawable *origDraw, Drawable *newDraw)
Replace specified Drawable with another Drawable.
bool containsDrawable(const Drawable *drawable) const
Return true if a given Drawable is contained within Geode.
Definition Geode:108
unsigned int getDrawableIndex(const Drawable *drawable) const
Get the index number of drawable.
Definition Geode:126
bool containsDrawable(const ref_ptr< T > &drawable) const
Definition Geode:119
virtual bool removeDrawable(Drawable *drawable)
Remove a Drawable from the Geode.
virtual bool setDrawable(unsigned int i, Drawable *drawable)
Set Drawable at position i.
virtual bool addDrawable(Drawable *drawable)
Add a Drawable to the Geode.
bool setDrawable(unsigned int i, const ref_ptr< T > &drawable)
Definition Geode:94
const Drawable * getDrawable(unsigned int i) const
Return the Drawable at position i.
Definition Geode:105
unsigned int getNumDrawables() const
Return the number of Drawables currently attached to the Geode.
Definition Geode:99
void compileDrawables(RenderInfo &renderInfo)
Compile OpenGL Display List for each drawable.
Geode(const Geode &, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
bool addDrawable(const ref_ptr< T > &drawable)
Definition Geode:52
virtual const Geode * asGeode() const
convert 'const this' into a const Geode pointer if Node is a Geode, otherwise return 0.
Definition Geode:40
unsigned int getDrawableIndex(const ref_ptr< T > &drawable) const
Definition Geode:131
Drawable * getDrawable(unsigned int i)
Return the Drawable at position i.
Definition Geode:102
bool replaceDrawable(const ref_ptr< T > &origDraw, const ref_ptr< R > &newDraw)
Definition Geode:80
virtual BoundingSphere computeBound() const
Compute the bounding sphere around Node's geometry or children.
virtual bool removeDrawables(unsigned int i, unsigned int numDrawablesToRemove=1)
Remove Drawable(s) from the specified position in Geode's drawable list.
bool removeDrawable(const ref_ptr< T > &drawable)
Definition Geode:62
const BoundingBox & getBoundingBox() const
Return the Geode's bounding box, which is the union of all the bounding boxes of the geode's drawable...
Definition Geode:138
virtual unsigned int getNumChildren() const
Return the number of children nodes.
unsigned int getChildIndex(const Node *node) const
Get the index number of child, return a value between 0 and _children.size()-1 if found,...
Definition Group:141
NodeList _children
Definition Group:170
bool _boundingSphereComputed
Definition Node:497
const BoundingSphere & getBound() const
Definition Node:425
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
T * get() const
Definition ref_ptr:117
#define OSG_EXPORT
Definition Export:39