| Hosted by: |
OpenMBV C++ Interface |
BerliOS Project Page |
A extrusion of a cross section area (with holes) More...
#include <extrusion.h>
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 |
A extrusion of a cross section area (with holes)
| 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.
| void OpenMBV::Extrusion::clearContours | ( | ) | [inline] |
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.
1.8.0