MBSim

Project Page
Public Member Functions | Protected Attributes | Private Attributes
MBSim::Circle Class Reference

circular contour with contact possibility from outside and inside and binormal in direction of the third column of the contour reference frame More...

#include <circle.h>

Inheritance diagram for MBSim::Circle:
MBSim::RigidContour MBSim::Contour MBSim::Element MBSim::CircleHollow MBSim::CircleSolid

List of all members.

Public Member Functions

 Circle (const std::string &name, Frame *R=0)
 constructor
 Circle (const std::string &name, bool outCont_, Frame *R=0)
 constructor
 Circle (const std::string &name, double r_, bool outCont_, Frame *R=0)
 constructor
virtual ~Circle ()
 destructor
std::string getType () const
virtual void init (InitStage stage)
 TODO.
virtual double computeCurvature (ContourPointData &cp)
virtual fmatvec::Vec2 computeLagrangeParameter (const fmatvec::Vec3 &WrPoint)
 projects the point on the contour to compute the Lagrange parameter
void setRadius (double r_)
void setOutCont (bool outCont_)
double getRadius () const
bool getOutCont () const
virtual void initializeUsingXML (xercesc::DOMElement *element)
virtual xercesc::DOMElement * writeXMLFile (xercesc::DOMNode *element)

Protected Attributes

double r
 radius
double curvature
 curvature of circle

Private Attributes

bool outCont
 contact on outer surface?

Detailed Description

circular contour with contact possibility from outside and inside and binormal in direction of the third column of the contour reference frame

Author:
Thorsten Schindler
Date:
2009-07-13 initial commit (Thorsten Schindler)
2009-12-21 adaptations concerning CircleHollow and CircleSolid

Constructor & Destructor Documentation

MBSim::Circle::Circle ( const std::string &  name,
Frame *  R = 0 
)

constructor

Parameters:
nameof circle contact from inside
MBSim::Circle::Circle ( const std::string &  name,
bool  outCont_,
Frame *  R = 0 
)

constructor

Parameters:
nameof circle
contactfrom outside?
MBSim::Circle::Circle ( const std::string &  name,
double  r_,
bool  outCont_,
Frame *  R = 0 
)

constructor

Parameters:
nameof circle
radius
contactfrom outside?

Member Function Documentation

virtual double MBSim::Circle::computeCurvature ( ContourPointData &  cp) [inline, virtual]
Returns:
curvature of contour in contour point
Parameters:
contourposition

Reimplemented from MBSim::Contour.

virtual fmatvec::Vec2 MBSim::Circle::computeLagrangeParameter ( const fmatvec::Vec3 &  WrPoint) [virtual]

projects the point on the contour to compute the Lagrange parameter

Parameters:
WrPointpoint in world coordinates
Returns:
Vec of lagrange parameters
Remarks:
: a vector length of 2 is necessary (Vec(2,INIT,0.))

Reimplemented from MBSim::Contour.

std::string MBSim::Circle::getType ( ) const [inline, virtual]
Returns:
std::string representation

Reimplemented from MBSim::RigidContour.

Reimplemented in MBSim::CircleHollow, and MBSim::CircleSolid.


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