Simbody  3.5
SimTK::GeodHitPlaneEvent Class Reference

A event handler to terminate integration when geodesic hits the plane. More...

+ Inheritance diagram for SimTK::GeodHitPlaneEvent:

Public Member Functions

 GeodHitPlaneEvent ()
 
 GeodHitPlaneEvent (const Plane &aplane)
 
Real getValue (const State &state) const
 Get the value of the event trigger function for a State. More...
 
void handleEvent (State &state, Real accuracy, bool &shouldTerminate) const
 This method is invoked to handle the event. More...
 
void setPlane (const Plane &aplane) const
 
const PlanegetPlane () const
 
const void setEnabled (bool enabledFlag)
 
const bool isEnabled ()
 
- Public Member Functions inherited from SimTK::TriggeredEventHandler
 TriggeredEventHandler (const TriggeredEventHandler &clone)
 
TriggeredEventHandleroperator= (const TriggeredEventHandler &clone)
 
virtual ~TriggeredEventHandler ()
 
 TriggeredEventHandler (Stage requiredStage)
 Construct a new TriggeredEventHandler. More...
 
EventTriggerInfogetTriggerInfo ()
 Get an EventTriggerInfo object which can be used to customize when the event occurs. More...
 
Stage getRequiredStage () const
 Get the stage at which the trigger function will be evaluated. More...
 
- Public Member Functions inherited from SimTK::EventHandler
virtual ~EventHandler ()
 

Detailed Description

A event handler to terminate integration when geodesic hits the plane.

For use with a ParticleConSurfaceSystem

Constructor & Destructor Documentation

SimTK::GeodHitPlaneEvent::GeodHitPlaneEvent ( )
inline
SimTK::GeodHitPlaneEvent::GeodHitPlaneEvent ( const Plane aplane)
inlineexplicit

Member Function Documentation

Real SimTK::GeodHitPlaneEvent::getValue ( const State ) const
inlinevirtual

Get the value of the event trigger function for a State.

Implements SimTK::TriggeredEventHandler.

void SimTK::GeodHitPlaneEvent::handleEvent ( State state,
Real  accuracy,
bool &  shouldTerminate 
) const
inlinevirtual

This method is invoked to handle the event.

It is given a State which describes the system at the time when the event occurs, and it is permitted to modify any aspect of the state except the time. In doing so, it should respect the specified accuracy requirements for the continuous variables and constraints.

Parameters
stateThe state of the system when the event occurred. This method should modify state to reflect the changes caused by the event.
accuracyThe accuracy to which this simulation is being computed. If your handler performs any approximate operation it should do so consistent with the simulation accuracy.
shouldTerminateIf the event handler sets this to true, it will cause the simulation to terminate immediately. This does not necessarily indicate an error condition.

Implements SimTK::EventHandler.

void SimTK::GeodHitPlaneEvent::setPlane ( const Plane aplane) const
inline
const Plane& SimTK::GeodHitPlaneEvent::getPlane ( ) const
inline
const void SimTK::GeodHitPlaneEvent::setEnabled ( bool  enabledFlag)
inline
const bool SimTK::GeodHitPlaneEvent::isEnabled ( )
inline

The documentation for this class was generated from the following file: