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

#include <QMouseOperations.h>

Inheritance diagram for sofa::gui::qt::QTopologyOperation:

Protected Attributes

QComboBox * operationChoice
 
QRadioButton * meshType1
 
QRadioButton * meshType2
 
QGroupBoxadvancedOptions
 
QSlider * scaleSlider
 
QSpinBox * scaleValue
 
- Protected Attributes inherited from sofa::gui::common::TopologyOperation
int topologicalOperation
 
double scale
 
bool volumicMesh
 
bool firstClick
 
- Protected Attributes inherited from sofa::gui::common::Operation
PickHandlerpickHandle
 
sofa::component::setting::MouseButtonSetting::SPtr mbsetting
 
MOUSE_BUTTON button
 

Public Member Functions

 QTopologyOperation ()
 
double getScale () const override
 
int getTopologicalOperation () const override
 
bool getVolumicMesh () const override
 
void configure (common::PickHandler *picker, common::MOUSE_BUTTON b) override
 
- Public Member Functions inherited from sofa::gui::common::TopologyOperation
 TopologyOperation ()
 
 ~TopologyOperation () override
 
void start () override
 
void execution () override
 This function is called each time the mouse is clicked. More...
 
void end () override
 
void endOperation () override
 This function is called after each mouse click. More...
 
void setTopologicalOperation (int m)
 
void setScale (double s)
 
void setVolumicMesh (bool v)
 
- Public Member Functions inherited from sofa::gui::common::Operation
 Operation (sofa::component::setting::MouseButtonSetting::SPtr s=nullptr)
 
virtual ~Operation ()
 
virtual void configure (PickHandler *picker, sofa::component::setting::MouseButtonSetting *s)
 
virtual void wait ()
 This function is called when shift key is released. More...
 
virtual void setSetting (sofa::component::setting::MouseButtonSetting *s)
 
virtual std::string defaultPerformerType ()
 
virtual sofa::gui::component::performer::InteractionPerformercreatePerformer ()
 
virtual void configurePerformer (sofa::gui::component::performer::InteractionPerformer *p)
 
MOUSE_BUTTON getMouseButton () const
 
std::string getId ()
 

Public Slots

void setEnableBox (int i)
 

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::TopologyOperation
static std::string getDescription ()
 
- Static Public Member Functions inherited from sofa::gui::common::Operation
static MOUSE_BUTTON GetMouseId (unsigned int i)
 

Attribute details

◆ advancedOptions

QGroupBox* sofa::gui::qt::QTopologyOperation::advancedOptions
protected

◆ meshType1

QRadioButton* sofa::gui::qt::QTopologyOperation::meshType1
protected

◆ meshType2

QRadioButton* sofa::gui::qt::QTopologyOperation::meshType2
protected

◆ operationChoice

QComboBox* sofa::gui::qt::QTopologyOperation::operationChoice
protected

◆ scaleSlider

QSlider* sofa::gui::qt::QTopologyOperation::scaleSlider
protected

◆ scaleValue

QSpinBox* sofa::gui::qt::QTopologyOperation::scaleValue
protected

Constructor details

◆ QTopologyOperation()

sofa::gui::qt::QTopologyOperation::QTopologyOperation ( )

Function details

◆ configure()

void sofa::gui::qt::QTopologyOperation::configure ( common::PickHandler picker,
common::MOUSE_BUTTON  b 
)
inlineoverridevirtual

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

◆ getScale()

double sofa::gui::qt::QTopologyOperation::getScale ( ) const
overridevirtual

◆ getTopologicalOperation()

int sofa::gui::qt::QTopologyOperation::getTopologicalOperation ( ) const
overridevirtual

◆ getVolumicMesh()

bool sofa::gui::qt::QTopologyOperation::getVolumicMesh ( ) const
overridevirtual

◆ setEnableBox

void sofa::gui::qt::QTopologyOperation::setEnableBox ( int  i)
slot