|
GUIDOLib
1.7.7
Guido Engine Internal Documentation
|
This class realizes the second implementation of the space-force-function. More...
Public Member Functions | |
| GRSpaceForceFunction2 (float force) | |
| virtual | ~GRSpaceForceFunction2 () |
| GRSpaceForceFunction2 (const GRSpaceForceFunction2 &sff) | |
| void | setOptForce (float newoptforce) |
| void | writeAllExtents (std::ostream &os) const |
| float | EvaluateBreak (float extent) |
| void | UnfreezeSpring (GRSpring *spr) |
| void | FreezeSpring (GRSpring *spr) |
| void | ResetSprings () |
| void | addSFF (const GRSpaceForceFunction2 &sff) |
| float | getOptForce () |
| void | addSpring (GRSpring *spr) |
| void | deleteSpring (GRSpring *spr) |
| float | getExtent (float force) const |
| float | getForce (float extent) |
| float | getOptConstant () const |
| float | getXminOpt () const |
Static Protected Member Functions | |
| static float | CalcSpringConstant (float c1, float c2) |
Protected Attributes | |
| SortedForceList | sortedlist |
| float | xmin |
| float | cmax |
| float | xminopt |
| float | copt |
| float | optforce |
This class realizes the second implementation of the space-force-function.
Instead of handling a map of values, a simple ordered list of springs is maintained. To calculate the force, we just have to follow the sorted list to find the line segment
| GRSpaceForceFunction2::GRSpaceForceFunction2 | ( | float | force | ) |
|
virtual |
| GRSpaceForceFunction2::GRSpaceForceFunction2 | ( | const GRSpaceForceFunction2 & | sff | ) |
| void GRSpaceForceFunction2::addSFF | ( | const GRSpaceForceFunction2 & | sff | ) |
| void GRSpaceForceFunction2::addSpring | ( | GRSpring * | spr | ) |
|
inlinestaticprotected |
| void GRSpaceForceFunction2::deleteSpring | ( | GRSpring * | spr | ) |
| float GRSpaceForceFunction2::EvaluateBreak | ( | float | extent | ) |
| void GRSpaceForceFunction2::FreezeSpring | ( | GRSpring * | spr | ) |
| float GRSpaceForceFunction2::getExtent | ( | float | force | ) | const |
| float GRSpaceForceFunction2::getForce | ( | float | extent | ) |
|
inline |
| float GRSpaceForceFunction2::getOptForce | ( | ) |
|
inline |
| void GRSpaceForceFunction2::ResetSprings | ( | ) |
| void GRSpaceForceFunction2::setOptForce | ( | float | newoptforce | ) |
| void GRSpaceForceFunction2::UnfreezeSpring | ( | GRSpring * | spr | ) |
| void GRSpaceForceFunction2::writeAllExtents | ( | std::ostream & | os | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |