MBSim |
Project Page |
Mother class for different criterias that are fulfilled or not. More...
#include <criteria_functions.h>
Public Member Functions | |
| CriteriaFunction () | |
| Constructor. | |
| virtual | ~CriteriaFunction () |
| Destructor. | |
| void | setFunction (Function< fmatvec::Vec(fmatvec::Vec)> *function_) |
| virtual int | operator() (const fmatvec::Vec &vector)=0 |
| computes the criteria | |
| virtual void | clear ()=0 |
| deletes the list of criteria results | |
| virtual bool | isBetter (const fmatvec::Vec &vector, const fmatvec::Vec &fVal=fmatvec::Vec(0, fmatvec::NONINIT))=0 |
| compares the result of given vector with the last result and returns if it got better (for damping) | |
Protected Attributes | |
| Function< fmatvec::Vec(fmatvec::Vec)> * | function |
| function that computes the values | |
Mother class for different criterias that are fulfilled or not.
| virtual int MBSim::CriteriaFunction::operator() | ( | const fmatvec::Vec & | vector | ) | [pure virtual] |
computes the criteria
The criteria has to fulfill at least:
Implemented in MBSim::LocalCriteriaFunction, MBSim::edgePolyFrustumCriteria, and MBSim::GlobalCriteriaFunction.
1.8.0