#include <ThingSphere.h>
Inherits Thing.
Inheritance diagram for ThingSphere:
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 |
Sphere Thing for the scenegraph. inherits from Thing.h and offers all methods to set the parameters for a sphere
|
constructor
|
|
destructor
|
|
get the radius of the sphere
|
|
get the slicenumber of the sphere
|
|
get the stacknumber of the sphere
|
|
returns true if the sphere is rendered solid
|
|
write the corresponding openGL code to render the sphere
Reimplemented from Thing.
|
|
set the radius of the sphere
|
|
set the slicenumber of the sphere
|
|
set the stacknumber of the sphere
|
|
switches between solid and wire rendering of the spehre
|
|
|
|
|
|
|
|
|