InterventionalRadiologyController Class.
More...
#include <InterventionalRadiologyController.h>
|
|
typedef DataTypes::VecCoord | VecCoord |
|
typedef DataTypes::VecDeriv | VecDeriv |
|
typedef DataTypes::Coord | Coord |
|
typedef DataTypes::Deriv | Deriv |
|
typedef Coord::value_type | Real |
|
typedef defaulttype::SolidTypes< Real >::Transform | Transform |
|
typedef defaulttype::SolidTypes< Real >::SpatialVector | SpatialVector |
|
typedef std::vector< Real >::const_iterator | RealConstIterator |
|
typedef Vec< 3, Real > | Vec3 |
|
typedef BaseMeshTopology::EdgeID | ElementID |
|
typedef type::vector< BaseMeshTopology::EdgeID > | VecElementID |
|
typedef sofa::component::controller::MechanicalStateController< DataTypes > | Inherit |
|
typedef WireBeamInterpolation< DataTypes > | WBeamInterpolation |
|
|
| SOFA_CLASS (SOFA_TEMPLATE(InterventionalRadiologyController, DataTypes), SOFA_TEMPLATE(sofa::component::controller::MechanicalStateController, DataTypes)) |
|
virtual void | init () override |
| virtual void | onMouseEvent (core::objectmodel::MouseEvent *) override |
| virtual void | onKeyPressedEvent (core::objectmodel::KeypressedEvent *) override |
| virtual void | onBeginAnimationStep (const double dt) override |
|
virtual bool | modifyTopology (void) |
|
void | interventionalRadiologyCollisionControls (type::vector< Real > &x_point_list, type::vector< int > &id_instrument_list, type::vector< int > &removeEdge) |
|
void | getInstrumentList (type::vector< WireBeamInterpolation< DataTypes > * > &list) |
|
const type::vector< type::vector< int > > & | get_id_instrument_curvAbs_table () const |
|
int | getTotalNbEdges () const |
|
void | applyAction (BeamAdapterAction action) |
|
void | useBeamAction (bool value) |
| | Method to warn this controller that a BeamActionController is controlling the scene. Will bypass the event handling in this component.
|
| const type::vector< Real > & | getCurrentCurvAbscisses () const |
| | Getter to the tools curviline abscisses sorted.
|
|
void | processDrop (unsigned int &previousNumControlledNodes, unsigned int &seg_remove) |
| virtual void | applyInterventionalRadiologyController (void) |
| | Interface for interventionalRadiology instruments:
|
|
void | totalLengthIsChanging (const type::vector< Real > &newNodeCurvAbs, type::vector< Real > &modifiedNodeCurvAbs, const type::vector< type::vector< int > > &newTable) |
|
void | fixFirstNodesWithUntil (unsigned int first_simulated_Node) |
|
void | activateBeamListForCollision (type::vector< Real > &curv_abs, type::vector< type::vector< int > > &id_instrument_table) |
|
|
Data< type::vector< std::string > > | d_instrumentsPath |
| | Conditional elements for construction of InterventionalRadiologyController.
|
|
type::vector< WBeamInterpolation * > | m_instrumentsList |
|
type::vector< bool > | m_activatedPointsBuf |
| | For point and line activer.
|
|
Data< int > | d_controlledInstrument |
|
Data< type::vector< Real > > | d_xTip |
|
Data< type::vector< Real > > | d_rotationInstrument |
|
Data< Real > | d_step |
|
Data< Real > | d_angularStep |
|
Data< Real > | d_speed |
|
Data< Coord > | d_startingPos |
|
Data< Real > | d_threshold |
|
Data< type::vector< Real > > | d_rigidCurvAbs |
|
Data< unsigned int > | d_indexFirstNode |
|
bool | m_useBeamActions = false |
|
bool | m_FF = false |
|
bool | m_RW = false |
|
SingleLink< InterventionalRadiologyController, FixedProjectiveConstraint< DataTypes >, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK > | l_fixedConstraint |
|
SingleLink< InterventionalRadiologyController, sofa::core::topology::BaseMeshTopology, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK > | l_mechanicalTopology |
|
DeprecatedAndRemoved | m_fixedConstraint |
|
type::vector< Real > | m_nodeCurvAbs |
|
type::vector< type::vector< int > > | m_idInstrumentCurvAbsTable |
template<class DataTypes>
class beamadapter::InterventionalRadiologyController< DataTypes >
InterventionalRadiologyController Class.
Provides a Mouse & Keyboard user control on an EdgeSet Topology.
◆ applyInterventionalRadiologyController()
template<class DataTypes>
| void applyInterventionalRadiologyController |
( |
void | | ) |
|
|
virtual |
Interface for interventionalRadiology instruments:
Some verif of step 1
◆ getCurrentCurvAbscisses()
template<class DataTypes>
| const type::vector< Real > & getCurrentCurvAbscisses |
( |
| ) |
const |
|
inlinenodiscard |
Getter to the tools curviline abscisses sorted.
- See also
- m_nodeCurvAbs at the current timestep.
◆ onBeginAnimationStep()
template<class DataTypes>
| void onBeginAnimationStep |
( |
const double | dt | ) |
|
|
overridevirtual |
The tip of the instrument can not be further than its total length
◆ onKeyPressedEvent()
template<class DataTypes>
| void onKeyPressedEvent |
( |
core::objectmodel::KeypressedEvent * | | ) |
|
|
overridevirtual |
Control keys for interventonal Radiology simulations:
◆ onMouseEvent()
template<class DataTypes>
| void onMouseEvent |
( |
core::objectmodel::MouseEvent * | | ) |
|
|
overridevirtual |
- Todo
- fix the mouse event with better controls