class osg::CompositeShape


Inheritance:


Public Methods

[more] CompositeShape()
[more] CompositeShape(const CompositeShape& cs, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
[more]META_Shape (osg, CompositeShape)(Shape* shape)
[more]Shape* getShape()
Get the shape that encloses all of the children
[more]const Shape* getShape() const
Get the const shape that encloses all of the children
[more]unsigned int getNumChildren() const
Get the number of children of this composite shape
[more]Shape* getChild(unsigned int i)
Get a child
[more]const Shape* getChild(unsigned int i) const
Get a const child
[more]void addChild(Shape* shape)
Add a child to the list
[more]void removeChild(unsigned int i)
remove a child from the list
[more]unsigned int findChildNo(Shape* shape) const
find the index number of child, if child is not found then it returns getNumChildren(), so should be used in similar sytle of STL's result!=end()

Public Members

[more]typedef std::vector< ref_ptr<Shape> > ChildList

Protected Fields

[more]ref_ptr<Shape> _shape
[more]ChildList _children

Protected Methods

[more] ~CompositeShape()


Inherited from Shape:

Public Methods

ovirtual Object* cloneType() const
ovirtual Object* clone(const CopyOp&) const
ovirtual bool isSameKindAs(const Object* obj) const
ovirtual const char* libraryName() const
ovirtual const char* className() const
ovirtual void accept(ShapeVisitor&)
ovirtual void accept(ConstShapeVisitor&) const


Inherited from Object:

Public Methods

oinline void setDataVariance(DataVariance dv)
oinline DataVariance getDataVariance() const
oinline void setUserData(Referenced* obj)
oinline Referenced* getUserData()
oinline const Referenced* getUserData() const

Public Members

oenum DataVariance

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (Referenced&)
oinline void ref() const
oinline void unref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline static int createdCount()
oinline static int deletedCount()

Protected Fields

omutable int _refCount
ostatic int _createdCount
ostatic int _deletedCount


Documentation

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

o CompositeShape()

o CompositeShape(const CompositeShape& cs, const CopyOp& copyop=CopyOp::SHALLOW_COPY)

oMETA_Shape (osg, CompositeShape)(Shape* shape)

oShape* getShape()
Get the shape that encloses all of the children

oconst Shape* getShape() const
Get the const shape that encloses all of the children

ounsigned int getNumChildren() const
Get the number of children of this composite shape

oShape* getChild(unsigned int i)
Get a child

oconst Shape* getChild(unsigned int i) const
Get a const child

ovoid addChild(Shape* shape)
Add a child to the list

ovoid removeChild(unsigned int i)
remove a child from the list

ounsigned int findChildNo(Shape* shape) const
find the index number of child, if child is not found then it returns getNumChildren(), so should be used in similar sytle of STL's result!=end()

o ~CompositeShape()

oref_ptr<Shape> _shape

oChildList _children


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.