deDebugDrawerShape Class Reference

Debug Drawer Shape Object. More...

#include <deDebugDrawerShape.h>

List of all members.

Public Member Functions

Constructors and Destructors
 deDebugDrawerShape ()
 Creates a new debug drawer shape object.
 ~deDebugDrawerShape ()
 Cleans up the debug drawer shape.
Management
const decDVectorGetPosition () const
 Retrieves the position.
void SetPosition (const decDVector &position)
 Sets the position.
const decQuaternionGetOrientation () const
 Retrieves the orientation.
void SetOrientation (const decQuaternion &orientation)
 Sets the orientation.
const decColorGetEdgeColor () const
 Retrieves the edge color.
void SetEdgeColor (const decColor &color)
 Sets the edge color.
const decColorGetFillColor () 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.
deDebugDrawerShapeFaceGetFaceAt (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.
decShapeGetShapeAt (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.

Detailed Description

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.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

deDebugDrawerShape::deDebugDrawerShape (  )

Creates a new debug drawer shape object.

deDebugDrawerShape::~deDebugDrawerShape (  )

Cleans up the debug drawer shape.


Member Function Documentation

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.


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