List of analytic shapes. More...
#include <decShapeList.h>
Public Member Functions | |
Constructors and Destructors | |
| decShapeList () | |
| Creates a new analytic shape list. | |
| ~decShapeList () | |
| Cleans up the analytic shape list. | |
Management | |
| int | GetShapeCount () const |
| Retrieves the number of shapes. | |
| decShape * | GetShapeAt (int index) const |
| Retrieves the shape at the given index. | |
| int | IndexOfShape (decShape *shape) const |
| Retrieves the index of the given shape or -1 if not found. | |
| bool | HasShape (decShape *shape) const |
| Determines if the shape exists. | |
| void | SetShapeAt (int index, decShape *shape) |
| Sets the shape at the given index. | |
| void | AddShape (decShape *shape) |
| Adds a shape. | |
| void | RemoveShape (decShape *shape) |
| Removes a shape. | |
| void | RemoveShapeFrom (int index) |
| Removes a shape from the given index. | |
| void | RemoveAllShapes () |
| Removes all shapes. | |
| void | VisitShapes (decShapeVisitor *visitor) |
| Visits shapes. | |
List of analytic shapes.
Stores a list of analytic shapes. Usefull if you require a list of analytic shapes without having to implement all the house keeping. Provides also support for visiting the shapes in the list.
| decShapeList::decShapeList | ( | ) |
Creates a new analytic shape list.
| decShapeList::~decShapeList | ( | ) |
Cleans up the analytic shape list.
| void decShapeList::AddShape | ( | decShape * | shape ) |
Adds a shape.
| decShape* decShapeList::GetShapeAt | ( | int | index ) | const |
Retrieves the shape at the given index.
| int decShapeList::GetShapeCount | ( | ) | const [inline] |
Retrieves the number of shapes.
| bool decShapeList::HasShape | ( | decShape * | shape ) | const |
Determines if the shape exists.
| int decShapeList::IndexOfShape | ( | decShape * | shape ) | const |
Retrieves the index of the given shape or -1 if not found.
| void decShapeList::RemoveAllShapes | ( | ) |
Removes all shapes.
| void decShapeList::RemoveShape | ( | decShape * | shape ) |
Removes a shape.
| void decShapeList::RemoveShapeFrom | ( | int | index ) |
Removes a shape from the given index.
| void decShapeList::SetShapeAt | ( | int | index, |
| decShape * | shape | ||
| ) |
Sets the shape at the given index.
| void decShapeList::VisitShapes | ( | decShapeVisitor * | visitor ) |
Visits shapes.
1.7.2