Hosted by: BerliOS Developer Logo

OpenMBV C++ Interface

BerliOS Project Page
Public Types | Public Member Functions | Protected Attributes
OpenMBV::Extrusion Class Reference

A extrusion of a cross section area (with holes) More...

#include <extrusion.h>

Inheritance diagram for OpenMBV::Extrusion:
OpenMBV::RigidBody OpenMBV::DynamicColoredBody OpenMBV::Body OpenMBV::Object

List of all members.

Public Types

enum  WindingRule {
  odd, nonzero, positive, negative,
  absGEqTwo
}

Public Member Functions

 Extrusion ()
 Default constructor.
std::string getClassName ()
 Retrun the class name.
void setWindingRule (WindingRule windingRule_)
 Set the OpenGL winding rule for the tesselation of the cross section area.
WindingRule getWindingRule ()
void setHeight (double height_)
 Set the height of the extrusion.
double getHeight ()
void clearContours ()
 Clear all previously added contours.
void addContour (std::vector< PolygonPoint * > *contour_)
 Add a new contour to the extrusion.
std::vector< std::vector
< PolygonPoint * > * > 
getContours ()
virtual void initializeUsingXML (xercesc::DOMElement *element)
 Initializes the time invariant part of the object using a XML node.
xercesc::DOMElement * writeXMLFile (xercesc::DOMNode *parent)

Protected Attributes

WindingRule windingRule
double height
std::vector< std::vector
< PolygonPoint * > * > 
contour

Detailed Description

A extrusion of a cross section area (with holes)


Member Function Documentation

void OpenMBV::Extrusion::addContour ( std::vector< PolygonPoint * > *  contour_) [inline]

Add a new contour to the extrusion.

See setWindingRule of details about how they are combined.

Clear all previously added contours.

void OpenMBV::Extrusion::setHeight ( double  height_) [inline]

Set the height of the extrusion.

The extrusion is along the normal of the cross section area (local z-axis).

void OpenMBV::Extrusion::setWindingRule ( WindingRule  windingRule_) [inline]

Set the OpenGL winding rule for the tesselation of the cross section area.

Allowable values are "odd", "nonzero", "positive", "negative" and "absGEqTwo". See the OpenGL-GLU documentation the the meaning of this values.


The documentation for this class was generated from the following file: