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 (Function1< fmatvec::Vec, fmatvec::Vec > *function_) |
| virtual int | operator() (const fmatvec::Vec &vector, const void *=NULL)=0 |
| computes the criteria | |
| virtual void | clear ()=0 |
| deletes the list of criteria results | |
| virtual bool | isBetter (const fmatvec::Vec &vector)=0 |
| compares the result of given vector with the last result and returns if it got better (for damping) | |
Protected Attributes | |
|
Function1< 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, |
| const void * | = NULL |
||
| ) | [pure virtual] |
computes the criteria
The criteria has to fulfill at least:
Implements MBSim::Function1< int, fmatvec::Vec >.
Implemented in MBSim::LocalCriteriaFunction, MBSim::edgePolyFrustumCriteria, and MBSim::GlobalCriteriaFunction.
1.8.0