BeamAdapter
Loading...
Searching...
No Matches
MultiAdaptiveBeamMapping< TIn, TOut > Class Template Reference

MultiAdaptiveBeamMapping Class. More...

#include <MultiAdaptiveBeamMapping.h>

Inheritance diagram for MultiAdaptiveBeamMapping< TIn, TOut >:

Public Types

typedef core::Mapping< TIn, TOut > Inherit
typedef TIn In
typedef TOut Out
typedef Out::Coord::value_type Real
typedef Out::Coord Coord
typedef Out::Deriv Deriv
typedef Out::VecCoord VecCoord
typedef Out::VecDeriv VecDeriv
typedef Out::MatrixDeriv OutMatrixDeriv
typedef In::Coord::value_type InReal
typedef In::Deriv InDeriv
typedef In::VecCoord InVecCoord
typedef In::VecDeriv InVecDeriv
typedef In::MatrixDeriv InMatrixDeriv
typedef type::vector< unsigned int > VecIndex
typedef sofa::core::topology::BaseMeshTopology::EdgeID ElementID
typedef sofa::type::vector< sofa::core::topology::BaseMeshTopology::Edge > VecEdges
typedef sofa::type::vector< sofa::core::topology::BaseMeshTopology::EdgeID > VecElementID
typedef sofa::defaulttype::SolidTypes< InReal >::Transform Transform
typedef std::pair< int, Transform > IndexedTransform
typedef sofa::defaulttype::SolidTypes< InReal >::SpatialVector SpatialVector
typedef sofa::type::Vec< 3, Real > Vec3
typedef sofa::type::Vec< 6, Real > Vec6
typedef sofa::type::Mat< 3, 12, Real > Mat3x12
typedef sofa::type::Mat< 12, 3, Real > Mat12x3
typedef sofa::type::Mat< 6, 12, Real > Mat6x12
typedef sofa::type::Mat< 12, 6, Real > Mat12x6
typedef std::pair< unsigned int, Vec3 > BeamIdAndBaryCoord
typedef InterventionalRadiologyController< TIn > TInterventionalRadiologyController

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(MultiAdaptiveBeamMapping, TIn, TOut), SOFA_TEMPLATE2(core::Mapping, TIn, TOut))
 MultiAdaptiveBeamMapping (core::State< In > *from, core::State< Out > *to, TInterventionalRadiologyController *_ircontroller)
void apply (const core::MechanicalParams *mparams, Data< VecCoord > &out, const Data< InVecCoord > &in) override
void applyJ (const core::MechanicalParams *mparams, Data< VecDeriv > &out, const Data< InVecDeriv > &in) override
void applyJT (const core::MechanicalParams *mparams, Data< InVecDeriv > &out, const Data< VecDeriv > &in) override
void applyJT (const core::ConstraintParams *cparams, Data< InMatrixDeriv > &out, const Data< OutMatrixDeriv > &in) override
void init () override
void bwdInit () override
void handleEvent (sofa::core::objectmodel::Event *) override
void parse (core::objectmodel::BaseObjectDescription *arg) override
void setBarycentricMapping ()
int addBaryPoint (const int &edgeId, const Vec3 &_baryCoord, bool isStraight)
void clear (int size)

Public Attributes

SingleLink< MultiAdaptiveBeamMapping< TIn, TOut >, TInterventionalRadiologyController, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK > l_controller
Data< bool > useCurvAbs
Data< bool > d_parallelMapping

Protected Member Functions

void assignSubMappingFromControllerInfo ()

Protected Attributes

sofa::core::topology::TopologyContainer * _topology { nullptr }
sofa::type::vector< WireBeamInterpolation< TIn > * > m_instrumentList
sofa::type::vector< typename AdaptiveBeamMapping< TIn, TOut >::SPtr > m_subMappingList
sofa::component::topology::container::dynamic::EdgeSetTopologyModifier * _edgeMod {nullptr}
sofa::type::vector< InReal > _xPointList
sofa::type::vector< int > _idm_instrumentList
bool isBarycentricMapping

Detailed Description

template<class TIn, class TOut>
class beamadapter::MultiAdaptiveBeamMapping< TIn, TOut >

MultiAdaptiveBeamMapping Class.

Member Function Documentation

◆ assignSubMappingFromControllerInfo()

template<class TIn, class TOut>
void assignSubMappingFromControllerInfo ( )
protected

look if the edge is already suppressed (only one edge around the targetted point)

need to be removed

chose the edge to remove

Member Data Documentation

◆ d_parallelMapping

template<class TIn, class TOut>
Data<bool> d_parallelMapping

flag to enable parallel internal computation of apply/applyJ for the submapping(s) AdaptiveBeamMapping