osg::CompositeShape Class Reference

Inheritance diagram for osg::CompositeShape:

osg::Shape osg::Object osg::Referenced List of all members.

Public Types

typedef std::vector< ref_ptr<
Shape > > 
ChildList

Public Member Functions

 CompositeShape ()
 CompositeShape (const CompositeShape &cs, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 META_Shape (osg, CompositeShape)
void setShape (Shape *shape)
ShapegetShape ()
const ShapegetShape () const
unsigned int getNumChildren () const
ShapegetChild (unsigned int i)
const ShapegetChild (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

Member Typedef Documentation

typedef std::vector< ref_ptr<Shape> > osg::CompositeShape::ChildList
 


Constructor & Destructor Documentation

osg::CompositeShape::CompositeShape  )  [inline]
 

osg::CompositeShape::CompositeShape const CompositeShape cs,
const CopyOp copyop = CopyOp::SHALLOW_COPY
[inline]
 

osg::CompositeShape::~CompositeShape  )  [inline, protected]
 


Member Function Documentation

void osg::CompositeShape::addChild Shape shape  )  [inline]
 

Add a child to the list.

unsigned int osg::CompositeShape::findChildNo Shape shape  )  const [inline]
 

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().

const Shape* osg::CompositeShape::getChild unsigned int  i  )  const [inline]
 

Get a const child.

Shape* osg::CompositeShape::getChild unsigned int  i  )  [inline]
 

Get a child.

unsigned int osg::CompositeShape::getNumChildren  )  const [inline]
 

Get the number of children of this composite shape.

const Shape* osg::CompositeShape::getShape  )  const [inline]
 

Get the const shape that encloses all of the children.

Shape* osg::CompositeShape::getShape  )  [inline]
 

Get the shape that encloses all of the children.

osg::CompositeShape::META_Shape osg  ,
CompositeShape 
 

void osg::CompositeShape::removeChild unsigned int  i  )  [inline]
 

remove a child from the list.

void osg::CompositeShape::setShape Shape shape  )  [inline]
 

Set the shape that encloses all of the children.


Member Data Documentation

ChildList osg::CompositeShape::_children [protected]
 

ref_ptr<Shape> osg::CompositeShape::_shape [protected]
 


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 16:33:32 2006 for openscenegraph by  doxygen 1.4.6