#include <shape.h>
Inheritance diagram for GlutCylinder:


Public Methods | |
| GlutCylinder (const bool solid=true, const GLdouble radius=1.0, const GLdouble height=1.0, const GLint slices=15, const GLint stacks=10, const GLint loops=5) | |
| Constructor. | |
| ~GlutCylinder () | |
| Destructor. | |
| virtual void | draw () const |
| Derived classes should supply this. | |
| virtual GLdouble | volume () const |
| Get the volume of the shape. | |
| 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 &begin, const Vector &end, const double radius) |
| Position the cylinder. | |
| GLdouble & | radius () |
| Cylinder radius. | |
| GLdouble & | height () |
| Cylinder length/height. | |
| GLint & | slices () |
| Cylinder slices. | |
| GLint & | stacks () |
| Cylinder stacks. | |
| GLint & | loops () |
| Cylinder loops. | |
| const GLdouble & | radius () const |
| Cylinder radius. | |
| const GLdouble & | height () const |
| Cylinder length/height. | |
| const GLint & | slices () const |
| Cylinder slices. | |
| const GLint & | stacks () const |
| Cylinder stacks. | |
| const GLint & | loops () const |
| Cylinder loops. | |
Definition at line 176 of file shape.h.
|
||||||||||||||||||||||||||||
|
Constructor.
|
|
||||||||||||||||
|
Position the cylinder.
Definition at line 377 of file shape.cpp. References Vector::length(), matrixOrient(), matrixTranslate(), Vector::normalize(), radius(), GltShape::transformation(), xProduct(), and Vector::z(). |
1.2.18