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

#include <MouseOperations.h>

Inheritance diagram for sofa::gui::AttachOperation:

Protected Attributes

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

Public Member Functions

 AttachOperation (sofa::component::configurationsetting::AttachBodyButtonSetting::SPtr s=sofa::core::objectmodel::New< sofa::component::configurationsetting::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::Operation
 Operation (sofa::component::configurationsetting::MouseButtonSetting::SPtr s=nullptr)
 
virtual ~Operation ()
 
virtual void configure (PickHandler *picker, MOUSE_BUTTON b)
 
virtual void configure (PickHandler *picker, sofa::component::configurationsetting::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::component::collision::InteractionPerformercreatePerformer ()
 
MOUSE_BUTTON getMouseButton () const
 
std::string getId ()
 

Static Public Member Functions

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

Protected Member Functions

void setSetting (sofa::component::configurationsetting::MouseButtonSetting *s) override
 
virtual std::string defaultPerformerType () override
 
void configurePerformer (sofa::component::collision::InteractionPerformer *p) override
 

Additional Inherited Members

- Public Attributes inherited from sofa::gui::Operation
sofa::component::collision::InteractionPerformerperformer
 

Attribute details

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

Constructor details

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

Function details

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

Reimplemented from sofa::gui::Operation.

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

Reimplemented from sofa::gui::Operation.

Reimplemented in sofa::gui::ConstraintAttachOperation.

double sofa::gui::AttachOperation::getArrowSize ( ) const
inline
static std::string sofa::gui::AttachOperation::getDescription ( )
inlinestatic
double sofa::gui::AttachOperation::getShowFactorSize ( ) const
inline
double sofa::gui::AttachOperation::getStiffness ( ) const
inline
void sofa::gui::AttachOperation::setArrowSize ( double  s)
inline
void sofa::gui::AttachOperation::setSetting ( sofa::component::configurationsetting::MouseButtonSetting s)
inlineoverrideprotectedvirtual

Reimplemented from sofa::gui::Operation.

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