Hosted by: BerliOS Developer Logo

OpenMBV C++ Interface

BerliOS Project Page
Public Member Functions | Protected Attributes | Friends
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

std::string getClassName ()
 Retrun the class name.
void setStartAngle (double angle)
 Set start angle of the rotation (Default: 0).
double getStartAngle ()
void setEndAngle (double angle)
 Set end angle of the rotation (Default: 2*pi).
double getEndAngle ()
void setAngle (double startAngle_, double endAngle_)
 Set start and end angle of the rotation (Default 0-2*pi).
void setContour (const boost::shared_ptr< std::vector< boost::shared_ptr< PolygonPoint > > > &contour_)
 Set cross section area of the rotation.
boost::shared_ptr< std::vector
< boost::shared_ptr
< PolygonPoint > > > 
getContour ()
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

double startAngle
double endAngle
boost::shared_ptr< std::vector
< boost::shared_ptr
< PolygonPoint > > > 
contour

Friends

class ObjectFactory

Detailed Description

Rotation of a cross section area.


Member Function Documentation

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

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

void OpenMBV::Rotation::setContour ( const boost::shared_ptr< std::vector< boost::shared_ptr< PolygonPoint > > > &  contour_) [inline]

Set cross section area of the rotation.

The cross section is rotation around the local y-axis

void OpenMBV::Rotation::setEndAngle ( double  angle) [inline]

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

void OpenMBV::Rotation::setStartAngle ( double  angle) [inline]

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


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