#include <shape.h>
Inheritance diagram for GltShape:
Public Methods | |
virtual | ~GltShape () |
Destructor. | |
virtual void | draw () const=0 |
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 | intersects (const GltShape &shape) const |
Check for intersection with another object. | |
virtual std::string | description () const |
Brief description of the shape. | |
virtual GltFieldPtr | settings () |
Settings. | |
virtual bool | povrayExport (std::ostream &os) const |
Export to POV format. | |
virtual void | flushExpired () |
Remove expired shapes. | |
Matrix & | transformation () |
Transformation matrix. | |
GltColor & | color () |
Color. | |
bool & | solid () |
Draw as solid or wireframe. | |
bool & | visible () |
Enable visibility. | |
std::string & | name () |
Name. | |
int & | convexity () |
Depth complexity. | |
bool & | inheritColor () |
Use current OpenGL color. | |
bool & | inheritSolid () |
Use current polygon mode. | |
bool & | expired () |
Ready to be removed from scene. | |
const Matrix & | transformation () const |
Transformation matrix. | |
const GltColor & | color () const |
Color. | |
const bool & | solid () const |
Draw as solid or wireframe. | |
const bool & | visible () const |
Enable visibility. | |
const std::string & | name () const |
Name. | |
const int & | convexity () const |
Depth complexity. | |
const bool & | inheritColor () const |
Use current OpenGL color. | |
const bool & | inheritSolid () const |
Use current polygon mode. | |
const bool & | expired () const |
Ready to be removed from scene. | |
Protected Methods | |
GltShape (const bool solid=true) | |
Constructor is protected since GltShape is abstract base class. | |
void | transformPoints (std::vector< Vector > &v) const |
Apply current transformation to co-ordinates. | |
void | glColor () const |
Apply current color, unless inherited. |
Definition at line 58 of file shape.h.