SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::gui::component::performer::FixParticlePerformer< DataTypes > Class Template Reference

#include <FixParticlePerformer.h>

Inheritance diagram for sofa::gui::component::performer::FixParticlePerformer< DataTypes >:

Protected Attributes

std::vector< simulation::Node * > fixations
 
- Protected Attributes inherited from sofa::gui::component::performer::FixParticlePerformerConfiguration
SReal stiffness
 

Static Protected Attributes

static MapTypeFunctions_mapSupportedModels = nullptr
 

Public Member Functions

 FixParticlePerformer (BaseMouseInteractor *i)
 
void start ()
 
void execute ()
 
void draw (const core::visual::VisualParams *vparams)
 
- Public Member Functions inherited from sofa::gui::component::performer::TInteractionPerformer< DataTypes >
 TInteractionPerformer (BaseMouseInteractor *i)
 
- Public Member Functions inherited from sofa::gui::component::performer::InteractionPerformer
 InteractionPerformer (BaseMouseInteractor *i)
 
virtual ~InteractionPerformer ()
 
virtual void configure (sofa::component::setting::MouseButtonSetting *)
 
virtual void handleEvent (core::objectmodel::Event *)
 
virtual void setPerformerFreeze ()
 
 SOFA_ATTRIBUTE_DISABLED__NAMING ("v24.06", "v24.06", interactor, m_interactor)
 
 SOFA_ATTRIBUTE_DISABLED__NAMING ("v24.06", "v24.06", freezePerformer, m_freezePerformer)
 
- Public Member Functions inherited from sofa::gui::component::performer::FixParticlePerformerConfiguration
void setStiffness (SReal s)
 

Static Public Member Functions

static MapTypeFunctiongetMapInstance ()
 
template<typename TCollisionModel >
static int RegisterSupportedModel (GetFixationPointsOnModelFunction func)
 
template<typename TTriangleCollisionModel >
static void getFixationPointsTriangle (sofa::core::sptr< sofa::core::CollisionModel > model, const Index idx, type::vector< Index > &points, Coord &fixPoint)
 
static void getFixationPointsSphere (sofa::core::sptr< sofa::core::CollisionModel > model, const Index idx, type::vector< Index > &points, Coord &fixPoint)
 
- Static Public Member Functions inherited from sofa::gui::component::performer::TInteractionPerformer< DataTypes >
template<class RealObject >
static RealObject * create (RealObject *, BaseMouseInteractor *interactor)
 
- Static Public Member Functions inherited from sofa::gui::component::performer::InteractionPerformer
template<class RealObject >
static RealObject * create (RealObject *, BaseMouseInteractor *interactor)
 

Protected Member Functions

MouseContainergetFixationPoints (const BodyPicked &b, type::vector< unsigned int > &points, typename DataTypes::Coord &fixPoint)
 

Additional Inherited Members

- Public Attributes inherited from sofa::gui::component::performer::InteractionPerformer
BaseMouseInteractorm_interactor
 
bool m_freezePerformer
 

Attribute details

◆ fixations

template<class DataTypes >
std::vector< simulation::Node * > sofa::gui::component::performer::FixParticlePerformer< DataTypes >::fixations
protected

◆ s_mapSupportedModels

template<class DataTypes >
MapTypeFunction* sofa::gui::component::performer::FixParticlePerformer< DataTypes >::s_mapSupportedModels = nullptr
inlinestaticprotected

Constructor details

◆ FixParticlePerformer()

Function details

◆ draw()

template<class DataTypes >
void sofa::gui::component::performer::FixParticlePerformer< DataTypes >::draw ( const core::visual::VisualParams vparams)
virtual

◆ execute()

◆ getFixationPoints()

template<class DataTypes >
sofa::component::statecontainer::MechanicalObject< DataTypes > * sofa::gui::component::performer::FixParticlePerformer< DataTypes >::getFixationPoints ( const BodyPicked b,
type::vector< unsigned int > &  points,
typename DataTypes::Coord &  fixPoint 
)
protected

◆ getFixationPointsSphere()

template<class DataTypes >
static void sofa::gui::component::performer::FixParticlePerformer< DataTypes >::getFixationPointsSphere ( sofa::core::sptr< sofa::core::CollisionModel model,
const Index  idx,
type::vector< Index > &  points,
Coord fixPoint 
)
inlinestatic

◆ getFixationPointsTriangle()

template<class DataTypes >
template<typename TTriangleCollisionModel >
static void sofa::gui::component::performer::FixParticlePerformer< DataTypes >::getFixationPointsTriangle ( sofa::core::sptr< sofa::core::CollisionModel model,
const Index  idx,
type::vector< Index > &  points,
Coord fixPoint 
)
inlinestatic

◆ getMapInstance()

template<class DataTypes >
static MapTypeFunction* sofa::gui::component::performer::FixParticlePerformer< DataTypes >::getMapInstance ( )
inlinestatic

◆ RegisterSupportedModel()

template<class DataTypes >
template<typename TCollisionModel >
static int sofa::gui::component::performer::FixParticlePerformer< DataTypes >::RegisterSupportedModel ( GetFixationPointsOnModelFunction  func)
inlinestatic

◆ start()