FunctionThresholdCondition is a concrete implementation of a Condition. More...
#include <FunctionThresholdCondition.h>
Public Member Functions | |
FunctionThresholdCondition () | |
Default constructor. | |
FunctionThresholdCondition (const FunctionThresholdCondition &aFunctionThresholdCondition) | |
Copy constructor. | |
virtual | ~FunctionThresholdCondition () |
Destructor. | |
virtual Object * | copy () const |
Copy this Condition and return a pointer to the copy. | |
FunctionThresholdCondition & | operator= (const FunctionThresholdCondition &aFunctionThresholdCondition) |
Assignment operator. | |
void | copyData (const FunctionThresholdCondition &aFunctionThresholdCondition) |
Copy data members from one FunctionThresholdCondition to another. | |
virtual void | setup (Model &aModel) |
Perform some set up functions that happen after the object has been deserialized or copied. | |
virtual bool | calcCondition (const SimTK::State &s) const |
The defining FunctionThresholdCondition method. | |
Protected Attributes | |
PropertyObjPtr< Function > | _functionProp |
Function that Condition evaluates. | |
Function *& | _function |
PropertyDbl | _thresholdProp |
Function that Condition evaluates. | |
double & | _threshold |
FunctionThresholdCondition is a concrete implementation of a Condition.
A FunctionThresholdCondition returns true if its associate function is above a certain threshold and false otherwise.
Specific FunctionThresholdConditions should be derived from this class.
FunctionThresholdCondition::FunctionThresholdCondition | ( | ) |
Default constructor.
FunctionThresholdCondition::FunctionThresholdCondition | ( | const FunctionThresholdCondition & | aCondition | ) |
Copy constructor.
aCondition | FunctionThresholdCondition to be copied. |
FunctionThresholdCondition::~FunctionThresholdCondition | ( | ) | [virtual] |
Destructor.
bool FunctionThresholdCondition::calcCondition | ( | const SimTK::State & | s | ) | const [virtual] |
The defining FunctionThresholdCondition method.
Reimplemented from OpenSim::Condition.
Object * FunctionThresholdCondition::copy | ( | ) | const [virtual] |
Copy this Condition and return a pointer to the copy.
The copy constructor for this class is used.
Reimplemented from OpenSim::Condition.
void FunctionThresholdCondition::copyData | ( | const FunctionThresholdCondition & | aCondition | ) |
Copy data members from one FunctionThresholdCondition to another.
aCondition | FunctionThresholdCondition to be copied. |
Reimplemented from OpenSim::Condition.
FunctionThresholdCondition & FunctionThresholdCondition::operator= | ( | const FunctionThresholdCondition & | aCondition | ) |
void FunctionThresholdCondition::setup | ( | Model & | aModel | ) | [virtual] |
Perform some set up functions that happen after the object has been deserialized or copied.
aModel | OpenSim model containing this Condition. |
Reimplemented from OpenSim::Condition.
Function*& OpenSim::FunctionThresholdCondition::_function [protected] |
double& OpenSim::FunctionThresholdCondition::_threshold [protected] |