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

ThingCone Class Reference

Cone Thing for the scenegraph. More...

#include <ThingCone.h>

Inherits Thing.

Inheritance diagram for ThingCone:

Inheritance graph
[legend]
Collaboration diagram for ThingCone:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThingCone (float radius, float height, int slices, int stacks)
 constructor of the node, takes all necessary arguments to define the cone
virtual ~ThingCone (void)
 destructor
void setRadius (float new_radius)
void setHeight (float new_height)
void setSlices (int new_slices)
void setStacks (int new_stacks)
float getRadius ()
float getHeight ()
int getSlices ()
int getStacks ()
bool isSolid ()
void switchWireSolid ()
void render ()
 write the corresponding openGL code to display the cone

Private Attributes

float r
float h
int sl
int st
bool solid

Detailed Description

Cone Thing for the scenegraph.

Cone Thing for the Scenegraph.


Constructor & Destructor Documentation

ThingCone::ThingCone float  radius,
float  height,
int  slices,
int  stacks
 

constructor of the node, takes all necessary arguments to define the cone

Parameters:
radius of the cone
height of the cone
number of slices of the cone
number of stacks of the cone

ThingCone::~ThingCone void   )  [virtual]
 

destructor


Member Function Documentation

float ThingCone::getHeight  ) 
 

float ThingCone::getRadius  ) 
 

int ThingCone::getSlices  ) 
 

int ThingCone::getStacks  ) 
 

bool ThingCone::isSolid  ) 
 

void ThingCone::render  )  [virtual]
 

write the corresponding openGL code to display the cone

Reimplemented from Thing.

void ThingCone::setHeight float  new_height  ) 
 

void ThingCone::setRadius float  new_radius  ) 
 

void ThingCone::setSlices int  new_slices  ) 
 

void ThingCone::setStacks int  new_stacks  ) 
 

void ThingCone::switchWireSolid  ) 
 


Member Data Documentation

float ThingCone::h [private]
 

float ThingCone::r [private]
 

int ThingCone::sl [private]
 

bool ThingCone::solid [private]
 

int ThingCone::st [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