#include <shape.h>
Inheritance diagram for GlutCube:
Public Methods | |
GlutCube (const bool solid=true, const GLdouble size=2.0) | |
Constructor. | |
GlutCube (const bool solid,const Vector &min, const Vector &max) | |
Constructor. | |
~GlutCube () | |
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 &min, const Vector &max) |
Position the box. | |
void | position (const Vector &pos, const real width, const real height, const real depth) |
Position the box. | |
GLdouble & | size () |
Box width, height and depth. | |
const GLdouble & | size () const |
Box width, height and depth. |
Definition at line 111 of file shape.h.
|
Constructor.
|
|
Constructor.
Definition at line 194 of file shape.cpp. References position(). |
|
Position the box.
Definition at line 266 of file shape.cpp. References Vector::abs(), matrixScale(), matrixTranslate(), size(), and GltShape::transformation(). Referenced by GlutCube(). |
|
Position the box.
Definition at line 278 of file shape.cpp. References Vector::abs(), matrixScale(), matrixTranslate(), real, size(), and GltShape::transformation(). |