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

ThingCylinder Class Reference

Cylinder Thing for the scenegraph. More...

#include <ThingCylinder.h>

Inherits Thing.

Inheritance diagram for ThingCylinder:

Inheritance graph
[legend]
Collaboration diagram for ThingCylinder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThingCylinder (float bottomRadius, float topRadius, int sides, float height)
virtual ~ThingCylinder (void)
void drawCaption (bool)
void setBottomRadius (float new_radius)
void setTopRadius (float new_radius)
void setSides (int new_sides)
void setHeight (float new_height)
float getBottomRadius ()
float getTopRadius ()
int getSides ()
float getHeight ()
void init ()
void render ()

Private Attributes

int s
float bR
float tR
float h
float angle
std::vector< flatCoord * > bottomCoords
std::vector< flatCoord * > topCoords
bool caption
int theCylinder

Detailed Description

Cylinder Thing for the scenegraph.

Cylinder Thing for the Scenegraph. bottom and top radius, height, and number of sides can be set.


Constructor & Destructor Documentation

ThingCylinder::ThingCylinder float  bottomRadius,
float  topRadius,
int  sides,
float  height
 

ThingCylinder::~ThingCylinder void   )  [virtual]
 


Member Function Documentation

void ThingCylinder::drawCaption bool   ) 
 

float ThingCylinder::getBottomRadius  ) 
 

float ThingCylinder::getHeight  ) 
 

int ThingCylinder::getSides  ) 
 

float ThingCylinder::getTopRadius  ) 
 

void ThingCylinder::init  )  [virtual]
 

Reimplemented from Thing.

void ThingCylinder::render  )  [virtual]
 

Reimplemented from Thing.

void ThingCylinder::setBottomRadius float  new_radius  ) 
 

void ThingCylinder::setHeight float  new_height  ) 
 

void ThingCylinder::setSides int  new_sides  ) 
 

void ThingCylinder::setTopRadius float  new_radius  ) 
 


Member Data Documentation

float ThingCylinder::angle [private]
 

std::vector<flatCoord*> ThingCylinder::bottomCoords [private]
 

float ThingCylinder::bR [private]
 

bool ThingCylinder::caption [private]
 

float ThingCylinder::h [private]
 

int ThingCylinder::s [private]
 

int ThingCylinder::theCylinder [private]
 

std::vector<flatCoord*> ThingCylinder::topCoords [private]
 

float ThingCylinder::tR [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 17:42:33 2005 for Loud and Proud by doxygen 1.3.8