Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

kerosin::CCylinder Class Reference

CCylinder is a SingleMatNode that creates and renders a capped cylinder mesh with the given length and radius. More...

#include <ccylinder.h>

Inheritance diagram for kerosin::CCylinder:

Inheritance graph
[legend]
Collaboration diagram for kerosin::CCylinder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CCylinder ()
virtual ~CCylinder ()
void SetParams (float radius, float length)
 sets the parameters of the capped cylinder.
void GetParams (float &radius, float &length) const
 returns the parameters of the capped cylinder
float GetRadius ()
 returns the radius of the capped cylinder
float GetLength ()
 returns the length of the capped cylinder

Protected Attributes

float mRadius
 the radius of the caps and the cylinder
float mLength
 the height of the clinder, not counting the caps

Detailed Description

CCylinder is a SingleMatNode that creates and renders a capped cylinder mesh with the given length and radius.

Definition at line 34 of file ccylinder.h.


Constructor & Destructor Documentation

CCylinder::CCylinder  ) 
 

Definition at line 31 of file ccylinder.cpp.

CCylinder::~CCylinder  )  [virtual]
 

Definition at line 35 of file ccylinder.cpp.


Member Function Documentation

float CCylinder::GetLength  ) 
 

returns the length of the capped cylinder

Definition at line 62 of file ccylinder.cpp.

References mLength.

void CCylinder::GetParams float &  radius,
float &  length
const
 

returns the parameters of the capped cylinder

Definition at line 51 of file ccylinder.cpp.

References mLength, and mRadius.

float CCylinder::GetRadius  ) 
 

returns the radius of the capped cylinder

Definition at line 57 of file ccylinder.cpp.

References mRadius.

void CCylinder::SetParams float  radius,
float  length
 

sets the parameters of the capped cylinder.

Parameters:
radius is the radius of the caps, and of the cylinder itself
length is the height of the cylinder, not counting the caps

Definition at line 39 of file ccylinder.cpp.

References zeitgeist::ParameterList::AddValue(), kerosin::StaticMesh::Load(), mLength, and mRadius.

Here is the call graph for this function:


Member Data Documentation

float kerosin::CCylinder::mLength [protected]
 

the height of the clinder, not counting the caps

Definition at line 70 of file ccylinder.h.

Referenced by GetLength(), GetParams(), and SetParams().

float kerosin::CCylinder::mRadius [protected]
 

the radius of the caps and the cylinder

Definition at line 67 of file ccylinder.h.

Referenced by GetParams(), GetRadius(), and SetParams().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:43:35 2006 for rcssserver3d by  doxygen 1.4.4