MBSim

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

sphere More...

#include <sphere.h>

Inheritance diagram for MBSim::Sphere:
MBSim::RigidContour MBSim::Contour MBSim::Element

List of all members.

Public Member Functions

 Sphere (const std::string &name="", Frame *R=0)
 constructor
 Sphere (const std::string &name, double r_, Frame *R=0)
 constructor
std::string getType () const
virtual void init (InitStage stage)
 TODO.
fmatvec::Vec2 computeLagrangeParameter (const fmatvec::Vec3 &WrPoint)
 projects the point on the contour to compute the Lagrange parameter
void setRadius (double r_)
double getRadius () const
virtual void initializeUsingXML (xercesc::DOMElement *element)
virtual xercesc::DOMElement * writeXMLFile (xercesc::DOMNode *element)

Protected Attributes

double r
 radius

Detailed Description

sphere

Author:
Martin Foerg
Date:
2009-04-20 some comments (Thorsten Schindler)
2009-05-28 new interface (Bastian Esefeld)

Constructor & Destructor Documentation

MBSim::Sphere::Sphere ( const std::string &  name = "",
Frame *  R = 0 
) [inline]

constructor

Parameters:
nameof contour
MBSim::Sphere::Sphere ( const std::string &  name,
double  r_,
Frame *  R = 0 
) [inline]

constructor

Parameters:
nameof sphere
radiusof sphere

Member Function Documentation

fmatvec::Vec2 MBSim::Sphere::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::Sphere::getType ( ) const [inline, virtual]
Returns:
std::string representation

Reimplemented from MBSim::RigidContour.


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