|
Simbody
3.4 (development)
|
Options for the handleEvent() method. More...
#include <Event.h>
Public Types | |
| enum | Option { None = 0x0000, DontThrow = 0x0001, UseInfinityNorm = 0x0002 } |
Public Member Functions | |
| HandleEventsOptions () | |
| HandleEventsOptions (Real accuracy) | |
| HandleEventsOptions (Option opt) | |
| HandleEventsOptions & | clear () |
| Restore this object to its default-constructed state (no options selected, default accuracy). | |
| HandleEventsOptions & | setAccuracy (Real accuracy) |
| The norm of the constraint errors must be driven to below this value for a project() to be considered successful. | |
| HandleEventsOptions & | clearOption (Option opt) |
| Remove a given option from the set. | |
| HandleEventsOptions & | setOption (Option opt) |
| Select a given option from the set. | |
| Real | getAccuracy () const |
| Return the current value for the accuracy option. | |
| bool | isOptionSet (Option opt) const |
| HandleEventsOptions & | operator|= (const HandleEventsOptions &opts) |
| HandleEventsOptions & | operator&= (const HandleEventsOptions &opts) |
| HandleEventsOptions & | operator-= (const HandleEventsOptions &opts) |
| HandleEventsOptions & | operator|= (Option opt) |
| HandleEventsOptions & | operator-= (Option opt) |
Static Public Member Functions | |
| static Real | getDefaultAccuracy () |
Options for the handleEvent() method.
Accuracy should be be set by the caller, but if not the default is 1e-4.
| SimTK::HandleEventsOptions::HandleEventsOptions | ( | ) | [inline] |
| SimTK::HandleEventsOptions::HandleEventsOptions | ( | Real | accuracy | ) | [inline, explicit] |
| SimTK::HandleEventsOptions::HandleEventsOptions | ( | Option | opt | ) | [inline, explicit] |
| HandleEventsOptions& SimTK::HandleEventsOptions::clear | ( | ) | [inline] |
Restore this object to its default-constructed state (no options selected, default accuracy).
A reference to the newly-cleared object is returned.
| HandleEventsOptions& SimTK::HandleEventsOptions::setAccuracy | ( | Real | accuracy | ) | [inline] |
The norm of the constraint errors must be driven to below this value for a project() to be considered successful.
Normally an RMS norm is used but you can override that to use an infinity norm instead.
| HandleEventsOptions& SimTK::HandleEventsOptions::clearOption | ( | Option | opt | ) | [inline] |
Remove a given option from the set.
Nothing happens if the option wasn't already set.
| HandleEventsOptions& SimTK::HandleEventsOptions::setOption | ( | Option | opt | ) | [inline] |
Select a given option from the set.
Nothing happens if the option wasn't already set.
| Real SimTK::HandleEventsOptions::getAccuracy | ( | ) | const [inline] |
Return the current value for the accuracy option.
| bool SimTK::HandleEventsOptions::isOptionSet | ( | Option | opt | ) | const [inline] |
| static Real SimTK::HandleEventsOptions::getDefaultAccuracy | ( | ) | [inline, static] |
| HandleEventsOptions& SimTK::HandleEventsOptions::operator|= | ( | const HandleEventsOptions & | opts | ) | [inline] |
| HandleEventsOptions& SimTK::HandleEventsOptions::operator&= | ( | const HandleEventsOptions & | opts | ) | [inline] |
| HandleEventsOptions& SimTK::HandleEventsOptions::operator-= | ( | const HandleEventsOptions & | opts | ) | [inline] |
| HandleEventsOptions& SimTK::HandleEventsOptions::operator|= | ( | Option | opt | ) | [inline] |
| HandleEventsOptions& SimTK::HandleEventsOptions::operator-= | ( | Option | opt | ) | [inline] |