Debug Drawer Shape Object. More...
#include <deDebugDrawerShape.h>
Public Member Functions | |
Constructors and Destructors | |
| deDebugDrawerShape () | |
| Creates a new debug drawer shape object. | |
| ~deDebugDrawerShape () | |
| Cleans up the debug drawer shape. | |
Management | |
| const decDVector & | GetPosition () const |
| Retrieves the position. | |
| void | SetPosition (const decDVector &position) |
| Sets the position. | |
| const decQuaternion & | GetOrientation () const |
| Retrieves the orientation. | |
| void | SetOrientation (const decQuaternion &orientation) |
| Sets the orientation. | |
| const decColor & | GetEdgeColor () const |
| Retrieves the edge color. | |
| void | SetEdgeColor (const decColor &color) |
| Sets the edge color. | |
| const decColor & | GetFillColor () const |
| Retrieves the fill color. | |
| void | SetFillColor (const decColor &color) |
| Sets the fill color. | |
Volume Faces | |
| int | GetFaceCount () const |
| Retrieves the number of volume faces. | |
| deDebugDrawerShapeFace * | GetFaceAt (int index) const |
| Retrieves the face at the given index. | |
| void | AddFace (deDebugDrawerShapeFace *face) |
| Adds a face. | |
| void | RemoveAllFaces () |
| Removes all faces. | |
Shapes | |
| 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 | AddShape (decShape *shape) |
| Adds a shape. | |
| void | RemoveShape (decShape *shape) |
| Removes a shape. | |
| void | RemoveAllShapes () |
| Removes all shapes. | |
Debug Drawer Shape Object.
Describes the a shape to be drawn. There are a couple of parameters that can be set to define the appearance. The edge and fill color flag determine the color and transparency of the edges and the faces of the shape. By default the edge is set to white fully opaque and the fill is set to white fully transparent. The shape can also be NULL in which case the shape is defined by a list of debug drawer shape faces. If none of them are present nothing is drawn.
| deDebugDrawerShape::deDebugDrawerShape | ( | ) |
Creates a new debug drawer shape object.
| deDebugDrawerShape::~deDebugDrawerShape | ( | ) |
Cleans up the debug drawer shape.
| void deDebugDrawerShape::AddFace | ( | deDebugDrawerShapeFace * | face ) |
Adds a face.
| void deDebugDrawerShape::AddShape | ( | decShape * | shape ) |
Adds a shape.
| const decColor& deDebugDrawerShape::GetEdgeColor | ( | ) | const [inline] |
Retrieves the edge color.
| deDebugDrawerShapeFace* deDebugDrawerShape::GetFaceAt | ( | int | index ) | const |
Retrieves the face at the given index.
| int deDebugDrawerShape::GetFaceCount | ( | ) | const [inline] |
Retrieves the number of volume faces.
| const decColor& deDebugDrawerShape::GetFillColor | ( | ) | const [inline] |
Retrieves the fill color.
| const decQuaternion& deDebugDrawerShape::GetOrientation | ( | ) | const [inline] |
Retrieves the orientation.
| const decDVector& deDebugDrawerShape::GetPosition | ( | ) | const [inline] |
Retrieves the position.
| decShape* deDebugDrawerShape::GetShapeAt | ( | int | index ) | const |
Retrieves the shape at the given index.
| int deDebugDrawerShape::GetShapeCount | ( | ) | const |
Retrieves the number of shapes.
| bool deDebugDrawerShape::HasShape | ( | decShape * | shape ) | const |
Determines if the shape exists.
| int deDebugDrawerShape::IndexOfShape | ( | decShape * | shape ) | const |
Retrieves the index of the given shape or -1 if not found.
| void deDebugDrawerShape::RemoveAllFaces | ( | ) |
Removes all faces.
| void deDebugDrawerShape::RemoveAllShapes | ( | ) |
Removes all shapes.
| void deDebugDrawerShape::RemoveShape | ( | decShape * | shape ) |
Removes a shape.
| void deDebugDrawerShape::SetEdgeColor | ( | const decColor & | color ) |
Sets the edge color.
| void deDebugDrawerShape::SetFillColor | ( | const decColor & | color ) |
Sets the fill color.
| void deDebugDrawerShape::SetOrientation | ( | const decQuaternion & | orientation ) |
Sets the orientation.
| void deDebugDrawerShape::SetPosition | ( | const decDVector & | position ) |
Sets the position.
1.7.2