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

ThingSphere Class Reference

primitive sphere Thing for the scenegraph More...

#include <ThingSphere.h>

Inherits Thing.

Inheritance diagram for ThingSphere:

Inheritance graph
[legend]
Collaboration diagram for ThingSphere:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThingSphere (float new_radius, int new_slices, int new_stacks)
 constructor
virtual ~ThingSphere (void)
 destructor
void switchWireSolid ()
 switches between solid and wire rendering of the spehre
bool isSolid ()
 returns true if the sphere is rendered solid
float getRadius ()
 get the radius of the sphere
int getSlices ()
 get the slicenumber of the sphere
int getStacks ()
 get the stacknumber of the sphere
void setRadius (float new_radius)
 set the radius of the sphere
void setSlices (float new_slices)
 set the slicenumber of the sphere
void setStacks (float new_stacks)
 set the stacknumber of the sphere
void render ()
 write the corresponding openGL code to render the sphere

Private Attributes

float radius
int slices
int stacks
bool solid

Detailed Description

primitive sphere Thing for the scenegraph

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


Constructor & Destructor Documentation

ThingSphere::ThingSphere float  new_radius,
int  new_slices,
int  new_stacks
 

constructor

Parameters:
radius of the sphere
slicenumber of the sphere
stacksnumber of the sphere

ThingSphere::~ThingSphere void   )  [virtual]
 

destructor


Member Function Documentation

float ThingSphere::getRadius  ) 
 

get the radius of the sphere

Returns:
radius of the sphere

int ThingSphere::getSlices  ) 
 

get the slicenumber of the sphere

Returns:
slicenumber of the sphere

int ThingSphere::getStacks  ) 
 

get the stacknumber of the sphere

Returns:
stacknumber of the sphere

bool ThingSphere::isSolid  ) 
 

returns true if the sphere is rendered solid

Returns:
true if the sphere is rendered solid

void ThingSphere::render  )  [virtual]
 

write the corresponding openGL code to render the sphere

Reimplemented from Thing.

void ThingSphere::setRadius float  new_radius  ) 
 

set the radius of the sphere

Parameters:
new radius of the sphere

void ThingSphere::setSlices float  new_slices  ) 
 

set the slicenumber of the sphere

Parameters:
new slicenumber of the sphere

void ThingSphere::setStacks float  new_stacks  ) 
 

set the stacknumber of the sphere

Parameters:
new stacknumber of the sphere

void ThingSphere::switchWireSolid  ) 
 

switches between solid and wire rendering of the spehre


Member Data Documentation

float ThingSphere::radius [private]
 

int ThingSphere::slices [private]
 

bool ThingSphere::solid [private]
 

int ThingSphere::stacks [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