HyperspaceExplorer 0.7.1
|
Interface implemented by all Rotope s. More...
#include <RotopeInterface.h>
Public Member Functions | |
virtual Realm & | realm ()=0 |
The array of realms. | |
virtual const Realm & | realm () const =0 |
The array of realms. | |
virtual std::vector < VecMath::Vector< 4 > > | projected_vertices ()=0 |
The array of vertices, projected to four dimensions if necessary. | |
virtual unsigned | dimension () const =0 |
Dimension of the object. | |
virtual unsigned & | dimension ()=0 |
Direct access to the dimension member instead of setter for convenience. | |
virtual std::string | toString ()=0 |
String representation. | |
operator std::string () | |
String representation. | |
void | print () |
Output of all vertices. | |
Static Public Member Functions | |
static void | setRotationSegments (unsigned numSegments) |
For rotated objects, set the level of detail of the rendering. | |
Static Public Attributes | |
static const unsigned | DEFAULT_NUM_SEGMENTS = 8 |
How many segments a rotation operation has by default. | |
Protected Member Functions | |
virtual void | addTransform (unsigned, const VecMath::RotationBase *)=0 |
Perform a D -dimensional transformation. | |
Static Protected Attributes | |
static unsigned | _numSegments = RotopeInterface::DEFAULT_NUM_SEGMENTS |
How many segments to use to approximate a circle. | |
Friends | |
class | Rotope |
Allow Rotope (which is not a RotopeBase, but contains one) free access. |
Interface implemented by all Rotope s.
virtual unsigned& RotopeInterface::dimension | ( | ) | [pure virtual] |
Direct access to the dimension member instead of setter for convenience.
This way, implementing classes can simply use
instead of the more cumbersome
Because Rotope operations (extrusion, tapering etc.) are all about increasing the dimension, I'll let this stand.
Implemented in VertexData< D >.