Analytic Capsule Shape. More...
#include <decShapeCapsule.h>
Public Member Functions | |
Constructors and Destructors | |
| decShapeCapsule (float halfHeight, float radius) | |
| Creates a new analytic capsule shape with the given half height and the same radius for the top and bottom sphere. | |
| decShapeCapsule (float halfHeight, float radius, const decVector &position) | |
| Creates a new analytic capsule shape with the given half height, the same radius for the top and bottom sphere and position. | |
| decShapeCapsule (float halfHeight, float radius, const decVector &position, const decQuaternion &orientation) | |
| Creates a new analytic capsule shape with the given half height, the same radius for the top and bottom sphere, position and orientation. | |
| decShapeCapsule (float halfHeight, float topRadius, float bottomRadius) | |
| Creates a new analytic capsule shape with the given half height, top radius and bottom radius. | |
| decShapeCapsule (float halfHeight, float topRadius, float bottomRadius, const decVector &position) | |
| Creates a new analytic capsule shape with the given half height, top radius, bottom radius and position. | |
| decShapeCapsule (float halfHeight, float topRadius, float bottomRadius, const decVector &position, const decQuaternion &orientation) | |
| Creates a new analytic capsule shape with the given half height, top radius, bottom radius, position and orientation. | |
| virtual | ~decShapeCapsule () |
| Cleans up the analytic capsule shape. | |
Management | |
| float | GetHalfHeight () const |
| Retrieves the half height. | |
| void | SetHalfHeight (float halfHeight) |
| Sets the half height. | |
| float | GetTopRadius () const |
| Retrieves the top radius. | |
| void | SetTopRadius (float radius) |
| Sets the top radius. | |
| float | GetBottomRadius () const |
| Retrieves the bottom radius. | |
| void | SetBottomRadius (float radius) |
| Sets the bottom radius. | |
| void | SetRadius (float radius) |
| Sets both radi to the same value. | |
Visiting | |
| virtual void | Visit (decShapeVisitor *visitor) |
| Visits the analytic shape. | |
Analytic Capsule Shape.
Defines an anylatic capsule shape. A capsule is defined by a half height and two radi one for the top sphere and one for the bottom sphere.
| decShapeCapsule::decShapeCapsule | ( | float | halfHeight, |
| float | radius | ||
| ) |
Creates a new analytic capsule shape with the given half height and the same radius for the top and bottom sphere.
| decShapeCapsule::decShapeCapsule | ( | float | halfHeight, |
| float | radius, | ||
| const decVector & | position | ||
| ) |
Creates a new analytic capsule shape with the given half height, the same radius for the top and bottom sphere and position.
| decShapeCapsule::decShapeCapsule | ( | float | halfHeight, |
| float | radius, | ||
| const decVector & | position, | ||
| const decQuaternion & | orientation | ||
| ) |
Creates a new analytic capsule shape with the given half height, the same radius for the top and bottom sphere, position and orientation.
| decShapeCapsule::decShapeCapsule | ( | float | halfHeight, |
| float | topRadius, | ||
| float | bottomRadius | ||
| ) |
Creates a new analytic capsule shape with the given half height, top radius and bottom radius.
| decShapeCapsule::decShapeCapsule | ( | float | halfHeight, |
| float | topRadius, | ||
| float | bottomRadius, | ||
| const decVector & | position | ||
| ) |
Creates a new analytic capsule shape with the given half height, top radius, bottom radius and position.
| decShapeCapsule::decShapeCapsule | ( | float | halfHeight, |
| float | topRadius, | ||
| float | bottomRadius, | ||
| const decVector & | position, | ||
| const decQuaternion & | orientation | ||
| ) |
Creates a new analytic capsule shape with the given half height, top radius, bottom radius, position and orientation.
| virtual decShapeCapsule::~decShapeCapsule | ( | ) | [virtual] |
Cleans up the analytic capsule shape.
| float decShapeCapsule::GetBottomRadius | ( | ) | const [inline] |
Retrieves the bottom radius.
| float decShapeCapsule::GetHalfHeight | ( | ) | const [inline] |
Retrieves the half height.
| float decShapeCapsule::GetTopRadius | ( | ) | const [inline] |
Retrieves the top radius.
| void decShapeCapsule::SetBottomRadius | ( | float | radius ) |
Sets the bottom radius.
| void decShapeCapsule::SetHalfHeight | ( | float | halfHeight ) |
Sets the half height.
| void decShapeCapsule::SetRadius | ( | float | radius ) |
Sets both radi to the same value.
| void decShapeCapsule::SetTopRadius | ( | float | radius ) |
Sets the top radius.
| virtual void decShapeCapsule::Visit | ( | decShapeVisitor * | visitor ) | [virtual] |
Visits the analytic shape.
Reimplemented from decShape.
1.7.2