MBSim

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

Basis-Class for Contour interpolation between Point s, standard contact Point-ContourInterpolation is implemented special interpolations only need to provide (as derived class) the pure virtuals predefined here. More...

#include <contour_interpolation.h>

Inheritance diagram for MBSim::ContourInterpolation:
MBSim::Contour MBSim::Element MBSim::ContourQuad

List of all members.

Public Member Functions

 ContourInterpolation (const std::string &name, int parameters_, int nPoints_)
 constructor
void setPoint (Point *pointN, int n)
 set point for interpolation
std::vector< Point * > getPoints () const
 get list of Point s
Point * getPoint (const int n) const
int getNPoints () const
 get number of Point s used for interpolation
int getNContourParameters () const
 get number of Contour-parameters of Contour
virtual bool testInsideBounds (const ContourPointData &cp)=0
 prototype for test if Contour-point given is inside or outside defined contour area
virtual double computePointWeight (const fmatvec::VecV &s, int i)=0
 prototype of method giving weights of all Point s
virtual double computePointWeight (const fmatvec::VecV &s, int i, int diff)=0
 prototype of method giving first derivatives with respect to the diff-th Contour-parameters of all Point s
fmatvec::VecV computePointWeights (const fmatvec::VecV &s)
 compute all weights for nodes
fmatvec::Vec3 computeWrOC (const fmatvec::Vec2 &s)
fmatvec::Vec3 computeWvC (const fmatvec::Vec2 &s)
fmatvec::Mat3xV computeWt (const fmatvec::Vec2 &s)
fmatvec::Vec3 computeWn (const fmatvec::Vec2 &s)
fmatvec::Vec3 computeWrOC (const ContourPointData &cp)
fmatvec::Vec3 computeWvC (const ContourPointData &cp)
fmatvec::Mat3xV computeWt (const ContourPointData &cp)
virtual fmatvec::Vec3 computeWn (const ContourPointData &cp)=0

Protected Attributes

std::vector< Point * > iPoints
 list of Point s holding ContourInterpolation
int contourParameters
 number of Contour-parameters used by ContourInterpolation: 1 for lines, 2 for surfaces
int numberOfPoints
 size of iPoints, number of Point s used for interpolation

Detailed Description

Basis-Class for Contour interpolation between Point s, standard contact Point-ContourInterpolation is implemented special interpolations only need to provide (as derived class) the pure virtuals predefined here.

Author:
Martin Foerg
Date:
2009-07-14 some comments (Bastian Esefeld)

Constructor & Destructor Documentation

MBSim::ContourInterpolation::ContourInterpolation ( const std::string &  name,
int  parameters_,
int  nPoints_ 
)

constructor

Parameters:
nameof contour
parameters
numberof interpolation points

Member Function Documentation

virtual double MBSim::ContourInterpolation::computePointWeight ( const fmatvec::VecV &  s,
int  i 
) [pure virtual]

prototype of method giving weights of all Point s

Parameters:
sContour-parameter(s)
iPoint number
Returns:
weight of Point i at s
virtual double MBSim::ContourInterpolation::computePointWeight ( const fmatvec::VecV &  s,
int  i,
int  diff 
) [pure virtual]

prototype of method giving first derivatives with respect to the diff-th Contour-parameters of all Point s

Parameters:
sContour-parameter(s)
iPoint number
diff-th derivative
Returns:
weight/derivative of Point i at s
void MBSim::ContourInterpolation::setPoint ( Point *  pointN,
int  n 
)

set point for interpolation

Parameters:
pointNPoint to use
positionin iPoints, Points-number
virtual bool MBSim::ContourInterpolation::testInsideBounds ( const ContourPointData &  cp) [pure virtual]

prototype for test if Contour-point given is inside or outside defined contour area

Parameters:
cpContour-point
Returns:
true, if cp is inside boundaries, else false

Implemented in MBSim::ContourQuad.


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