decShapeCylinder Class Reference

Analytic Cylinder Shape. More...

#include <decShapeCylinder.h>

Inheritance diagram for decShapeCylinder:
decShape

List of all members.

Public Member Functions

Constructors and Destructors
 decShapeCylinder (float halfHeight, float radius)
 Creates a new analytic cylinder shape with the given half height and the same radius for the top and bottom circle.
 decShapeCylinder (float halfHeight, float radius, const decVector &position)
 Creates a new analytic cylinder shape with the given half height, the same radius for the top and bottom circle and position.
 decShapeCylinder (float halfHeight, float radius, const decVector &position, const decQuaternion &orientation)
 Creates a new analytic cylinder shape with the given half height, the same radius for the top and bottom circle, position and orientation.
 decShapeCylinder (float halfHeight, float topRadius, float bottomRadius)
 Creates a new analytic cylinder shape with the given half height, top radius and bottom radius.
 decShapeCylinder (float halfHeight, float topRadius, float bottomRadius, const decVector &position)
 Creates a new analytic cylinder shape with the given half height, top radius, bottom radius and position.
 decShapeCylinder (float halfHeight, float topRadius, float bottomRadius, const decVector &position, const decQuaternion &orientation)
 Creates a new analytic cylinder shape with the given half height, top radius, bottom radius, position and orientation.
virtual ~decShapeCylinder ()
 Cleans up the analytic cylinder 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.

Detailed Description

Analytic Cylinder Shape.

Defines an anylatic cylinder shape. A cylinder is defined by a half height and two radi one for the top circle and one for the bottom circle.

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

Constructor & Destructor Documentation

decShapeCylinder::decShapeCylinder ( float  halfHeight,
float  radius 
)

Creates a new analytic cylinder shape with the given half height and the same radius for the top and bottom circle.

decShapeCylinder::decShapeCylinder ( float  halfHeight,
float  radius,
const decVector position 
)

Creates a new analytic cylinder shape with the given half height, the same radius for the top and bottom circle and position.

decShapeCylinder::decShapeCylinder ( float  halfHeight,
float  radius,
const decVector position,
const decQuaternion orientation 
)

Creates a new analytic cylinder shape with the given half height, the same radius for the top and bottom circle, position and orientation.

decShapeCylinder::decShapeCylinder ( float  halfHeight,
float  topRadius,
float  bottomRadius 
)

Creates a new analytic cylinder shape with the given half height, top radius and bottom radius.

decShapeCylinder::decShapeCylinder ( float  halfHeight,
float  topRadius,
float  bottomRadius,
const decVector position 
)

Creates a new analytic cylinder shape with the given half height, top radius, bottom radius and position.

decShapeCylinder::decShapeCylinder ( float  halfHeight,
float  topRadius,
float  bottomRadius,
const decVector position,
const decQuaternion orientation 
)

Creates a new analytic cylinder shape with the given half height, top radius, bottom radius, position and orientation.

virtual decShapeCylinder::~decShapeCylinder (  ) [virtual]

Cleans up the analytic cylinder shape.


Member Function Documentation

float decShapeCylinder::GetBottomRadius (  ) const [inline]

Retrieves the bottom radius.

float decShapeCylinder::GetHalfHeight (  ) const [inline]

Retrieves the half height.

float decShapeCylinder::GetTopRadius (  ) const [inline]

Retrieves the top radius.

void decShapeCylinder::SetBottomRadius ( float  radius )

Sets the bottom radius.

void decShapeCylinder::SetHalfHeight ( float  halfHeight )

Sets the half height.

void decShapeCylinder::SetRadius ( float  radius )

Sets both radi to the same value.

void decShapeCylinder::SetTopRadius ( float  radius )

Sets the top radius.

virtual void decShapeCylinder::Visit ( decShapeVisitor visitor ) [virtual]

Visits the analytic shape.

Reimplemented from decShape.


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