HyperspaceExplorer 0.7.1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Attributes | Friends
RotopeInterface Class Reference

Interface implemented by all Rotope s. More...

#include <RotopeInterface.h>

Inheritance diagram for RotopeInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual Realmrealm ()=0
 The array of realms.
virtual const Realmrealm () 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.

Detailed Description

Interface implemented by all Rotope s.

Author:
Lene Preuss <lene.preuss@gmail.com>

Member Function Documentation

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 >.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo