|
|
| SOFA_CLASS (SOFA_TEMPLATE(BeamAdapterActionController, DataTypes), SOFA_TEMPLATE(sofa::component::controller::MechanicalStateController, DataTypes)) |
| void | init () override |
| | Method to init the component. Will search for a InterventionalRadiologyController using link.
|
|
void | onBeginAnimationStep (const double dt) override |
| | Method called at each timestep. Will check if an action has to be read or write.
|
| void | onKeyPressedEvent (core::objectmodel::KeypressedEvent *kev) override |
| | Method to control the Beam using keyboard and save the actions in.
|
|
void | onKeyReleasedEvent (core::objectmodel::KeyreleasedEvent *kev) override |
|
void | onMouseEvent (core::objectmodel::MouseEvent *ev) override |
| | Unused metho for mouse event.
|
|
| Data< bool > | d_writeMode |
| | If true, will accumulate actions in.
|
|
Data< type::vector< int > > | d_actions |
| | List of actions to import or export.
|
|
Data< type::vector< std::string > > | d_actionString |
| | List of actions to import or export as string.
|
| Data< type::vector< Real > > | d_timeSteps |
| | List of key times corresponding to BeamActions in.
|
|
Data< int > | d_currentAction |
| | current action status for read only from outside of the component. Will be updated at each timestep.
|
|
SingleLink< BeamAdapterActionController< DataTypes >, InterventionalRadiologyController< DataTypes >, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK > | l_interventionController |
| | Link to the InterventionalRadiologyController, controlling the Beam, to script.
|