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

ThingTorus Class Reference

primitive torus Thing for the scenegraph More...

#include <ThingTorus.h>

Inherits Thing.

Inheritance diagram for ThingTorus:

Inheritance graph
[legend]
Collaboration diagram for ThingTorus:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThingTorus (float innerRadius, float outerRadius, int nsides, int rings)
 constructor for a torus Thing
virtual ~ThingTorus (void)
 destructor
void switchWireSolid ()
 switches between solid and wire rendering of the torus
bool isSolid ()
 return if the torus is solid
void setInnerRadius (float innerRadius)
 set the radius of the ring of the torus
void setOuterRadius (float outerRadius)
 set the radius of the torus
void setSides (int nsides)
 set the number of sides of the ring
void setRings (int rings)
 set the number of rings of the torus
float getInnerRadius ()
 get the radius of the ring
float getOuterRadius ()
 get the radius of the torus
int getSides ()
 get the number of sides of the rings
int getRings ()
 get the number of rings of the torus
void render ()
 write the corresponding openGL display() code

Private Attributes

float iRadius
float oRadius
int s
int r
bool solid

Detailed Description

primitive torus Thing for the scenegraph

Torus Thing for the scenegraph. inherits from Thing.h and offers all methods to set the parameters for a torus


Constructor & Destructor Documentation

ThingTorus::ThingTorus float  innerRadius,
float  outerRadius,
int  nsides,
int  rings
 

constructor for a torus Thing

Parameters:
radius of the ring
radius of the torus
sides of the ring
rings of the torus

ThingTorus::~ThingTorus void   )  [virtual]
 

destructor


Member Function Documentation

float ThingTorus::getInnerRadius  ) 
 

get the radius of the ring

Returns:
radius of the ring

float ThingTorus::getOuterRadius  ) 
 

get the radius of the torus

Returns:
radius of the torus

int ThingTorus::getRings  ) 
 

get the number of rings of the torus

Returns:
number of rings of the torus

int ThingTorus::getSides  ) 
 

get the number of sides of the rings

Returns:
number of sides of the ring

bool ThingTorus::isSolid  ) 
 

return if the torus is solid

Returns:
true if solid, false otherwise

void ThingTorus::render  )  [virtual]
 

write the corresponding openGL display() code

Reimplemented from Thing.

void ThingTorus::setInnerRadius float  innerRadius  ) 
 

set the radius of the ring of the torus

Parameters:
new radius of the ring

void ThingTorus::setOuterRadius float  outerRadius  ) 
 

set the radius of the torus

Parameters:
new radius of the torus

void ThingTorus::setRings int  rings  ) 
 

set the number of rings of the torus

Parameters:
new number of rings of the torus

void ThingTorus::setSides int  sides  ) 
 

set the number of sides of the ring

Parameters:
new number of sides of the ring

void ThingTorus::switchWireSolid  ) 
 

switches between solid and wire rendering of the torus


Member Data Documentation

float ThingTorus::iRadius [private]
 

float ThingTorus::oRadius [private]
 

int ThingTorus::r [private]
 

int ThingTorus::s [private]
 

bool ThingTorus::solid [private]
 


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