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

#include <QMouseOperations.h>

Inheritance diagram for sofa::gui::qt::QInciseOperation:

Public Attributes

bool finishIncision
 
bool keepPoint
 
- Public Attributes inherited from sofa::gui::common::Operation
sofa::gui::component::performer::InteractionPerformerperformer
 

Protected Attributes

QGroupBoxincisionMethodChoiceGroup
 
QRadioButton * method1
 
QRadioButton * method2
 
QGroupBoxadvancedOperations
 
QCheckBox * finishCut
 
QCheckBox * storeLastPoint
 
QGroupBoxadvancedOptions
 
QSlider * snapingBorderSlider
 
QSpinBox * snapingBorderValue
 
QSlider * snapingSlider
 
QSpinBox * snapingValue
 
- Protected Attributes inherited from sofa::gui::common::InciseOperation
sofa::gui::component::performer::InteractionPerformerstartPerformer
 
int method
 
int snapingBorderValue
 
int snapingValue
 
int cpt
 
bool finishIncision
 
bool keepPoint
 
- Protected Attributes inherited from sofa::gui::common::Operation
PickHandlerpickHandle
 
sofa::component::setting::MouseButtonSetting::SPtr mbsetting
 
MOUSE_BUTTON button
 

Public Member Functions

 QInciseOperation ()
 
int getIncisionMethod () const override
 
int getSnapingBorderValue () const override
 
int getSnapingValue () const override
 
bool getCompleteIncision () override
 
bool getKeepPoint () override
 
void configure (common::PickHandler *picker, common::MOUSE_BUTTON b) override
 
- Public Member Functions inherited from sofa::gui::common::InciseOperation
 InciseOperation ()
 
 ~InciseOperation () 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 setIncisionMethod (int m)
 
void setSnapingBorderValue (int m)
 
void setSnapingValue (int m)
 
void setCompleteIncision (bool m)
 
void setKeepPoint (bool m)
 
- 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 (bool i)
 
void setFinishIncision (bool i)
 
void setkeepPoint (bool i)
 

Additional Inherited Members

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

Attribute details

◆ advancedOperations

QGroupBox* sofa::gui::qt::QInciseOperation::advancedOperations
protected

◆ advancedOptions

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

◆ finishCut

QCheckBox* sofa::gui::qt::QInciseOperation::finishCut
protected

◆ finishIncision

bool sofa::gui::qt::QInciseOperation::finishIncision

◆ incisionMethodChoiceGroup

QGroupBox* sofa::gui::qt::QInciseOperation::incisionMethodChoiceGroup
protected

◆ keepPoint

bool sofa::gui::qt::QInciseOperation::keepPoint

◆ method1

QRadioButton* sofa::gui::qt::QInciseOperation::method1
protected

◆ method2

QRadioButton* sofa::gui::qt::QInciseOperation::method2
protected

◆ snapingBorderSlider

QSlider* sofa::gui::qt::QInciseOperation::snapingBorderSlider
protected

◆ snapingBorderValue

QSpinBox* sofa::gui::qt::QInciseOperation::snapingBorderValue
protected

◆ snapingSlider

QSlider* sofa::gui::qt::QInciseOperation::snapingSlider
protected

◆ snapingValue

QSpinBox* sofa::gui::qt::QInciseOperation::snapingValue
protected

◆ storeLastPoint

QCheckBox* sofa::gui::qt::QInciseOperation::storeLastPoint
protected

Constructor details

◆ QInciseOperation()

sofa::gui::qt::QInciseOperation::QInciseOperation ( )

Function details

◆ configure()

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

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

◆ getCompleteIncision()

bool sofa::gui::qt::QInciseOperation::getCompleteIncision ( )
inlineoverridevirtual

◆ getIncisionMethod()

int sofa::gui::qt::QInciseOperation::getIncisionMethod ( ) const
overridevirtual

◆ getKeepPoint()

bool sofa::gui::qt::QInciseOperation::getKeepPoint ( )
inlineoverridevirtual

◆ getSnapingBorderValue()

int sofa::gui::qt::QInciseOperation::getSnapingBorderValue ( ) const
overridevirtual

◆ getSnapingValue()

int sofa::gui::qt::QInciseOperation::getSnapingValue ( ) const
overridevirtual

◆ setEnableBox

void sofa::gui::qt::QInciseOperation::setEnableBox ( bool  i)
slot

◆ setFinishIncision

void sofa::gui::qt::QInciseOperation::setFinishIncision ( bool  i)
slot

◆ setkeepPoint

void sofa::gui::qt::QInciseOperation::setkeepPoint ( bool  i)
slot