SOFA API  c76874b7
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::Operation
sofa::component::collision::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::InciseOperation
sofa::component::collision::InteractionPerformerstartPerformer
 
int method
 
int snapingBorderValue
 
int snapingValue
 
int cpt
 
bool finishIncision
 
bool keepPoint
 
- Protected Attributes inherited from sofa::gui::Operation
PickHandlerpickHandle
 
sofa::component::configurationsetting::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 (PickHandler *picker, MOUSE_BUTTON b) override
 
- Public Member Functions inherited from sofa::gui::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::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 (bool i)
 
void setFinishIncision (bool i)
 
void setkeepPoint (bool i)
 

Additional Inherited Members

- Static Public Member Functions inherited from sofa::gui::InciseOperation
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::QInciseOperation::advancedOperations
protected
QGroupBox* sofa::gui::qt::QInciseOperation::advancedOptions
protected
QCheckBox* sofa::gui::qt::QInciseOperation::finishCut
protected
bool sofa::gui::qt::QInciseOperation::finishIncision
QGroupBox* sofa::gui::qt::QInciseOperation::incisionMethodChoiceGroup
protected
bool sofa::gui::qt::QInciseOperation::keepPoint
QRadioButton* sofa::gui::qt::QInciseOperation::method1
protected
QRadioButton* sofa::gui::qt::QInciseOperation::method2
protected
QSlider* sofa::gui::qt::QInciseOperation::snapingBorderSlider
protected
QSpinBox* sofa::gui::qt::QInciseOperation::snapingBorderValue
protected
QSlider* sofa::gui::qt::QInciseOperation::snapingSlider
protected
QSpinBox* sofa::gui::qt::QInciseOperation::snapingValue
protected
QCheckBox* sofa::gui::qt::QInciseOperation::storeLastPoint
protected

Constructor details

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

Function details

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

Reimplemented from sofa::gui::Operation.

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

Reimplemented from sofa::gui::InciseOperation.

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

Reimplemented from sofa::gui::InciseOperation.

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

Reimplemented from sofa::gui::InciseOperation.

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

Reimplemented from sofa::gui::InciseOperation.

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

Reimplemented from sofa::gui::InciseOperation.

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