SOFA API  6a688117
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::AttachOperation
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

 QAttachOperation ()
 
void configure (PickHandler *picker, sofa::component::configurationsetting::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::AttachOperation
 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 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 ()
 

Additional Inherited Members

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

Attribute details

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

Constructor details

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

Function details

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

Reimplemented from sofa::gui::Operation.