#include <ThingTorus.h>
Inherits Thing.
Inheritance diagram for ThingTorus:
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 |
Torus Thing for the scenegraph. inherits from Thing.h and offers all methods to set the parameters for a torus
|
constructor for a torus Thing
|
|
destructor
|
|
get the radius of the ring
|
|
get the radius of the torus
|
|
get the number of rings of the torus
|
|
get the number of sides of the rings
|
|
return if the torus is solid
|
|
write the corresponding openGL display() code
Reimplemented from Thing.
|
|
set the radius of the ring of the torus
|
|
set the radius of the torus
|
|
set the number of rings of the torus
|
|
set the number of sides of the ring
|
|
switches between solid and wire rendering of the torus
|
|
|
|
|
|
|
|
|
|
|