SOFA API  c76874b7
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::TopologyOperation
int topologicalOperation
 
double scale
 
bool volumicMesh
 
bool firstClick
 
- Protected Attributes inherited from sofa::gui::Operation
PickHandlerpickHandle
 
sofa::component::configurationsetting::MouseButtonSetting::SPtr mbsetting
 
MOUSE_BUTTON button
 

Public Member Functions

 QTopologyOperation ()
 
double getScale () const override
 
int getTopologicalOperation () const override
 
bool getVolumicMesh () const override
 
void configure (PickHandler *picker, MOUSE_BUTTON b) override
 
- Public Member Functions inherited from sofa::gui::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::Operation
 Operation (sofa::component::configurationsetting::MouseButtonSetting::SPtr s=nullptr)
 
virtual ~Operation ()
 
virtual void configure (PickHandler *picker, sofa::component::configurationsetting::MouseButtonSetting *s)
 
virtual void wait ()
 This function is called when shift key is released. More...
 
virtual void setSetting (sofa::component::configurationsetting::MouseButtonSetting *s)
 
virtual std::string defaultPerformerType ()
 
virtual sofa::component::collision::InteractionPerformercreatePerformer ()
 
virtual void configurePerformer (sofa::component::collision::InteractionPerformer *p)
 
MOUSE_BUTTON getMouseButton () const
 
std::string getId ()
 

Public Slots

void setEnableBox (int i)
 

Additional Inherited Members

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

Attribute details

QGroupBox* sofa::gui::qt::QTopologyOperation::advancedOptions
protected
QRadioButton* sofa::gui::qt::QTopologyOperation::meshType1
protected
QRadioButton* sofa::gui::qt::QTopologyOperation::meshType2
protected
QComboBox* sofa::gui::qt::QTopologyOperation::operationChoice
protected
QSlider* sofa::gui::qt::QTopologyOperation::scaleSlider
protected
QSpinBox* sofa::gui::qt::QTopologyOperation::scaleValue
protected

Constructor details

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

Function details

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

Reimplemented from sofa::gui::Operation.

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

Reimplemented from sofa::gui::TopologyOperation.

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

Reimplemented from sofa::gui::TopologyOperation.

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

Reimplemented from sofa::gui::TopologyOperation.

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