#include <shape.h>
Inheritance diagram for GlutSphere:
Public Methods | |
GlutSphere (const bool solid=true, const GLdouble radius=1.0, const GLint slices=15, const GLint stacks=15) | |
Constructor. | |
~GlutSphere () | |
Destructor. | |
virtual void | draw () const |
Derived classes should supply this. | |
virtual GLdouble | volume () const |
Get the volume of the shape. | |
virtual bool | inside (const Vector &pos) const |
Inside/Outside test. | |
virtual void | boundingBox (BoundingBox &box) const |
Get an axis aligned bounding box, unavailable by default. | |
virtual bool | povrayExport (std::ostream &os) const |
Export to POV format. | |
void | position (const Vector &pos, const double radius) |
Position the sphere. | |
GLdouble & | radius () |
Sphere radius. | |
GLint & | slices () |
Sphere slices around the equator. | |
GLint & | stacks () |
Sphere stacks from pole to pole. | |
const GLdouble & | radius () const |
Sphere radius. | |
const GLint & | slices () const |
Sphere slices around the equator. | |
const GLint & | stacks () const |
Sphere stacks from pole to pole. |
Definition at line 45 of file shape.h.
|
Constructor.
|
|
Position the sphere.
Definition at line 99 of file shape.cpp. References matrixTranslate(), radius(), and GltShape::transformation(). |