Hosted by: BerliOS Developer Logo

OpenMBV C++ Interface

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

Rotation of a cross section area. More...

#include <rotation.h>

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

List of all members.

Public Member Functions

 Rotation ()
 Default constructor.
std::string getClassName ()
 Retrun the class name.
void setStartAngle (ScalarParameter angle)
 Set start angle of the rotation (Default: 0).
double getStartAngle ()
void setEndAngle (ScalarParameter angle)
 Set end angle of the rotation (Default: 2*pi).
double getEndAngle ()
void setAngle (ScalarParameter startAngle_, ScalarParameter endAngle_)
 Set start and end angle of the rotation (Default 0-2*pi).
void setContour (std::vector< PolygonPoint * > *contour_)
 Set cross section area of the rotation.
std::vector< PolygonPoint * > * getContour ()
virtual void initializeUsingXML (MBXMLUtils::TiXmlElement *element)
 Initializes the time invariant part of the object using a XML node.
MBXMLUtils::TiXmlElement * writeXMLFile (MBXMLUtils::TiXmlNode *parent)

Protected Attributes

ScalarParameter startAngle
ScalarParameter endAngle
std::vector< PolygonPoint * > * contour

Detailed Description

Rotation of a cross section area.


Member Function Documentation

void OpenMBV::Rotation::setAngle ( ScalarParameter  startAngle_,
ScalarParameter  endAngle_ 
) [inline]

Set start and end angle of the rotation (Default 0-2*pi).

void OpenMBV::Rotation::setContour ( std::vector< PolygonPoint * > *  contour_) [inline]

Set cross section area of the rotation.

The cross section is rotation around the local y-axis

Set end angle of the rotation (Default: 2*pi).

Set start angle of the rotation (Default: 0).


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