SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::gui::qt::QAttachOperation Class Reference

#include <QMouseOperations.h>

Inheritance diagram for sofa::gui::qt::QAttachOperation:

Protected Attributes

DataWidgetstiffnessWidget
 
DataWidgetarrowSizeWidget
 
DataWidgetshowSizeFactorWidget
 
- Protected Attributes inherited from sofa::gui::common::AttachOperation
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

 QAttachOperation ()
 
void configure (common::PickHandler *picker, sofa::component::setting::MouseButtonSetting *button) override
 
- Public Member Functions inherited from sofa::gui::qt::QMouseOperation
DataWidgetcreateWidgetFromData (sofa::core::objectmodel::BaseData *data)
 
- Public Member Functions inherited from sofa::gui::common::AttachOperation
 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 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 ()
 

Additional Inherited Members

- Public Attributes inherited from sofa::gui::common::Operation
sofa::gui::component::performer::InteractionPerformerperformer
 
- Static Public Member Functions inherited from sofa::gui::common::AttachOperation
static std::string getDescription ()
 
- Static Public Member Functions inherited from sofa::gui::common::Operation
static MOUSE_BUTTON GetMouseId (unsigned int i)
 
- Protected Member Functions inherited from sofa::gui::common::AttachOperation
void setSetting (sofa::component::setting::MouseButtonSetting *s) override
 
virtual std::string defaultPerformerType () override
 
void configurePerformer (sofa::gui::component::performer::InteractionPerformer *p) override
 
- Public Slots inherited from sofa::gui::qt::QMouseOperation
void WidgetDirty (bool)
 

Attribute details

◆ arrowSizeWidget

DataWidget* sofa::gui::qt::QAttachOperation::arrowSizeWidget
protected

◆ showSizeFactorWidget

DataWidget* sofa::gui::qt::QAttachOperation::showSizeFactorWidget
protected

◆ stiffnessWidget

DataWidget* sofa::gui::qt::QAttachOperation::stiffnessWidget
protected

Constructor details

◆ QAttachOperation()

sofa::gui::qt::QAttachOperation::QAttachOperation ( )

Function details

◆ configure()

void sofa::gui::qt::QAttachOperation::configure ( common::PickHandler picker,
sofa::component::setting::MouseButtonSetting button 
)
overridevirtual

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