SOFA API  d64a5b5c
Open source framework for multi-physics simuation
sofa::gui::component::performer::BaseAttachBodyPerformer< DataTypes > Class Template Referenceabstract

#include <BaseAttachBodyPerformer.h>

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

Detailed Description

template<class DataTypes>
class sofa::gui::component::performer::BaseAttachBodyPerformer< DataTypes >

This class is a virtualization of attachment performer used to allow the blind use of either "AttachBodyPerformer" based on springs and "ConstraintAttachBodyPerformer" based on lagrangian constraints. An example of use can be found in the external plugin Sofa.IGTLink in the component "iGTLinkMouseInteractor"

Protected Attributes

sofa::core::objectmodel::BaseObject::SPtr m_interactionObject
 
MouseContactMapperm_mapper
 
core::visual::DisplayFlags m_flags
 

Public Member Functions

 BaseAttachBodyPerformer (BaseMouseInteractor *i)
 
virtual ~BaseAttachBodyPerformer ()
 
virtual void start ()
 
virtual void draw (const core::visual::VisualParams *vparams)
 
virtual void clear ()
 
virtual void execute ()
 
sofa::core::objectmodel::BaseObject::SPtr getInteractionObject ()
 
virtual bool startPartial (const BodyPicked &picked)=0
 
- 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)
 

Additional Inherited Members

- Public Attributes inherited from sofa::gui::component::performer::InteractionPerformer
BaseMouseInteractorm_interactor
 
bool m_freezePerformer
 
- 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)
 

Attribute details

◆ m_flags

◆ m_interactionObject

◆ m_mapper

Constructor details

◆ BaseAttachBodyPerformer()

◆ ~BaseAttachBodyPerformer()

Function details

◆ clear()

template<class DataTypes >
void sofa::gui::component::performer::BaseAttachBodyPerformer< DataTypes >::clear
virtual

◆ draw()

◆ execute()

◆ getInteractionObject()

◆ start()

◆ startPartial()