version 3.3

VRS::Composite Class Reference

Shape that consists of several other shapes. More...

#include <vrs/composite.h>

Inheritance diagram for VRS::Composite:

VRS::Shape VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 Composite ()
 Constructs an empty composite.
void append (Shape *shape)
 Appends a shape to the composite.
void remove (int index)
 Removes a shape specified by the index.
void erase (Shape *shape)
 Removes a certain shape.
void clear ()
 Removes all shape from the composite.
int size () const
 Returns the numbered.
Shapecomponent (int index) const
 Returns a shape from the composite specified by the index.
virtual Bounds boundingBox () const
 Combined bounding box of all contained shapes.
 VRS_TYPEINFO (Composite, Shape)
 VRS_SERIALIZABLE (Composite)

Protected Member Functions

virtual void acceptChildren (std::vector< Visitable * > &appendChildrenHere) const


Detailed Description

Shape that consists of several other shapes.

Constructor & Destructor Documentation

VRS::Composite::Composite (  ) 

Constructs an empty composite.


Member Function Documentation

void VRS::Composite::append ( Shape shape  ) 

Appends a shape to the composite.

void VRS::Composite::remove ( int  index  ) 

Removes a shape specified by the index.

void VRS::Composite::erase ( Shape shape  ) 

Removes a certain shape.

void VRS::Composite::clear (  ) 

Removes all shape from the composite.

int VRS::Composite::size (  )  const [inline]

Returns the numbered.

Shape * VRS::Composite::component ( int  index  )  const [inline]

Returns a shape from the composite specified by the index.

virtual Bounds VRS::Composite::boundingBox (  )  const [virtual]

Combined bounding box of all contained shapes.

Implements VRS::Shape.

VRS::Composite::VRS_TYPEINFO ( Composite  ,
Shape   
)

VRS::Composite::VRS_SERIALIZABLE ( Composite   ) 

virtual void VRS::Composite::acceptChildren ( std::vector< Visitable * > &  appendChildrenHere  )  const [protected, virtual]

Reimplemented from VRS::Visitable.


The documentation for this class was generated from the following file:

Generated on Mon May 21 06:00:16 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact