MBSim

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

frustum with axis in direction of second column of contour reference frame More...

#include <frustum.h>

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

List of all members.

Public Member Functions

 Frustum (const std::string &name="")
 constructor with contact from inside
std::string getType () const
virtual void init (InitStage stage)
 TODO.
virtual fmatvec::Vec2 computeLagrangeParameter (const fmatvec::Vec3 &WrPoint)
 projects the point on the contour to compute the Lagrange parameter
 Frustum (const std::string &name, bool outCont_)
 constructor
void setRadii (const fmatvec::Vec2 &r_)
const fmatvec::Vec2 & getRadii () const
void setHeight (double h_)
double getHeight () const
void setOutCont (bool outCont_)
bool getOutCont () const
virtual void initializeUsingXML (MBXMLUtils::TiXmlElement *element)
virtual MBXMLUtils::TiXmlElement * writeXMLFile (MBXMLUtils::TiXmlNode *element)

Private Attributes

fmatvec::Vec2 r
 upper r(1) and lower radius r(0) in direction of the axis
double h
 height
bool outCont
 contact on outer or inner surface?

Detailed Description

frustum with axis in direction of second column of contour reference frame

Author:
Martin Foerg
Thorsten Schindler
Date:
2009-04-20 some comments (Thorsten Schindler)

Constructor & Destructor Documentation

MBSim::Frustum::Frustum ( const std::string &  name = "") [inline]

constructor with contact from inside

Parameters:
nameof contour
MBSim::Frustum::Frustum ( const std::string &  name,
bool  outCont_ 
) [inline]

constructor

Parameters:
nameof the contour
contactfrom outside?

Member Function Documentation

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

Reimplemented from MBSim::RigidContour.


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