Drag[en]gine Game Engine
1.21
|
List of analytic shapes. More...
#include <decShapeList.h>
Public Member Functions | |
Constructors and Destructors | |
decShapeList () | |
Create shape list. More... | |
decShapeList (const decShapeList ©) | |
Create copy of shape list. More... | |
~decShapeList () | |
Clean up shape list. More... | |
Management | |
int | GetCount () const |
Number of shapes. More... | |
decShape * | GetAt (int index) const |
Shape at index. More... | |
int | IndexOf (decShape *shape) const |
Index of shape or -1 if absent. More... | |
bool | Has (decShape *shape) const |
Shape is present. More... | |
void | SetAt (int index, decShape *shape) |
Set shape at index. More... | |
void | Add (decShape *shape) |
Add shape. More... | |
void | Remove (decShape *shape) |
Remove shape. More... | |
void | RemoveFrom (int index) |
Remove shape from index. More... | |
void | RemoveAll () |
Remove all shapes. More... | |
void | Visit (decShapeVisitor &visitor) |
Visit shapes. More... | |
Operators | |
decShapeList & | operator= (const decShapeList &list) |
Set list to copy of another list. More... | |
List of analytic shapes.
Provides support for visiting the shapes in the list.
decShapeList::decShapeList | ( | ) |
Create shape list.
decShapeList::decShapeList | ( | const decShapeList & | copy | ) |
Create copy of shape list.
decShapeList::~decShapeList | ( | ) |
Clean up shape list.
void decShapeList::Add | ( | decShape * | shape | ) |
Add shape.
deeInvalidParam | Shape is present. |
decShape* decShapeList::GetAt | ( | int | index | ) | const |
Shape at index.
deeOutOfBoundary | index is less than 0 or greater than or equal to GetCount(). |
|
inline |
Number of shapes.
bool decShapeList::Has | ( | decShape * | shape | ) | const |
Shape is present.
int decShapeList::IndexOf | ( | decShape * | shape | ) | const |
Index of shape or -1 if absent.
decShapeList& decShapeList::operator= | ( | const decShapeList & | list | ) |
Set list to copy of another list.
void decShapeList::Remove | ( | decShape * | shape | ) |
Remove shape.
deeInvalidParam | Shape is absent. |
void decShapeList::RemoveAll | ( | ) |
Remove all shapes.
void decShapeList::RemoveFrom | ( | int | index | ) |
Remove shape from index.
deeOutOfBoundary | index is less than 0 or greater than or equal to GetCount(). |
void decShapeList::SetAt | ( | int | index, |
decShape * | shape | ||
) |
Set shape at index.
deeOutOfBoundary | index is less than 0 or greater than or equal to GetCount(). |
void decShapeList::Visit | ( | decShapeVisitor & | visitor | ) |
Visit shapes.