Inheritance diagram for osg::CompositeShape:
Public Types | |
typedef std::vector< ref_ptr< Shape > > | ChildList |
Public Member Functions | |
CompositeShape () | |
CompositeShape (const CompositeShape &cs, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_Shape (osg, CompositeShape) | |
void | setShape (Shape *shape) |
Shape * | getShape () |
const Shape * | getShape () const |
unsigned int | getNumChildren () const |
Shape * | getChild (unsigned int i) |
const Shape * | getChild (unsigned int i) const |
void | addChild (Shape *shape) |
void | removeChild (unsigned int i) |
unsigned int | findChildNo (Shape *shape) const |
Protected Member Functions | |
~CompositeShape () | |
Protected Attributes | |
ref_ptr< Shape > | _shape |
ChildList | _children |
|
|
|
|
|
|
|
|
|
Add a child to the list. |
|
find the index number of child, if child is not found then it returns getNumChildren(), so should be used in similar style to STL's result!=end(). |
|
Get a const child. |
|
Get a child. |
|
Get the number of children of this composite shape. |
|
Get the const shape that encloses all of the children. |
|
Get the shape that encloses all of the children. |
|
|
|
remove a child from the list. |
|
Set the shape that encloses all of the children. |
|
|
|
|