SOFA API  ca665544
Open source framework for multi-physics simuation
sofa::gui::common::AttachOperation Class Reference

#include <MouseOperations.h>

Inheritance diagram for sofa::gui::common::AttachOperation:

Protected Attributes

sofa::gui::component::AttachBodyButtonSetting::SPtr setting
 
- Protected Attributes inherited from sofa::gui::common::Operation
PickHandlerpickHandle
 
sofa::component::setting::MouseButtonSetting::SPtr mbsetting
 
MOUSE_BUTTON button
 

Public Member Functions

 AttachOperation (sofa::gui::component::AttachBodyButtonSetting::SPtr s=sofa::core::objectmodel::New< sofa::gui::component::AttachBodyButtonSetting >())
 
 ~AttachOperation () override
 
void setStiffness (double s)
 
double getStiffness () const
 
void setArrowSize (double s)
 
double getArrowSize () const
 
void setShowFactorSize (double s)
 
double getShowFactorSize () const
 
- Public Member Functions inherited from sofa::gui::common::Operation
 Operation (sofa::component::setting::MouseButtonSetting::SPtr s=nullptr)
 
virtual ~Operation ()
 
virtual void configure (PickHandler *picker, MOUSE_BUTTON b)
 
virtual void configure (PickHandler *picker, sofa::component::setting::MouseButtonSetting *s)
 
virtual void start ()
 
virtual void execution ()
 This function is called each time the mouse is clicked. More...
 
virtual void end ()
 
virtual void endOperation ()
 This function is called after each mouse click. More...
 
virtual void wait ()
 This function is called when shift key is released. More...
 
virtual sofa::gui::component::performer::InteractionPerformercreatePerformer ()
 
MOUSE_BUTTON getMouseButton () const
 
std::string getId ()
 

Static Public Member Functions

static std::string getDescription ()
 
- Static Public Member Functions inherited from sofa::gui::common::Operation
static MOUSE_BUTTON GetMouseId (unsigned int i)
 

Protected Member Functions

void setSetting (sofa::component::setting::MouseButtonSetting *s) override
 
virtual std::string defaultPerformerType () override
 
void configurePerformer (sofa::gui::component::performer::InteractionPerformer *p) override
 

Additional Inherited Members

- Public Attributes inherited from sofa::gui::common::Operation
sofa::gui::component::performer::InteractionPerformerperformer
 

Attribute details

◆ setting

sofa::gui::component::AttachBodyButtonSetting::SPtr sofa::gui::common::AttachOperation::setting
protected

Constructor details

◆ AttachOperation()

◆ ~AttachOperation()

sofa::gui::common::AttachOperation::~AttachOperation ( )
inlineoverride

Function details

◆ configurePerformer()

void sofa::gui::common::AttachOperation::configurePerformer ( sofa::gui::component::performer::InteractionPerformer p)
overrideprotectedvirtual

Reimplemented from sofa::gui::common::Operation.

◆ defaultPerformerType()

std::string sofa::gui::common::AttachOperation::defaultPerformerType ( )
overrideprotectedvirtual

◆ getArrowSize()

double sofa::gui::common::AttachOperation::getArrowSize ( ) const
inline

◆ getDescription()

static std::string sofa::gui::common::AttachOperation::getDescription ( )
inlinestatic

◆ getShowFactorSize()

double sofa::gui::common::AttachOperation::getShowFactorSize ( ) const
inline

◆ getStiffness()

double sofa::gui::common::AttachOperation::getStiffness ( ) const
inline

◆ setArrowSize()

void sofa::gui::common::AttachOperation::setArrowSize ( double  s)
inline

◆ setSetting()

void sofa::gui::common::AttachOperation::setSetting ( sofa::component::setting::MouseButtonSetting s)
inlineoverrideprotectedvirtual

Reimplemented from sofa::gui::common::Operation.

◆ setShowFactorSize()

void sofa::gui::common::AttachOperation::setShowFactorSize ( double  s)
inline

◆ setStiffness()

void sofa::gui::common::AttachOperation::setStiffness ( double  s)
inline