SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::gui::InciseOperation Class Reference

#include <MouseOperations.h>

Inheritance diagram for sofa::gui::InciseOperation:

Protected Attributes

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

 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)
 
virtual int getIncisionMethod () const
 
virtual int getSnapingBorderValue () const
 
virtual int getSnapingValue () const
 
virtual bool getCompleteIncision ()
 
virtual bool getKeepPoint ()
 
- 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 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 ()
 

Static Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from sofa::gui::Operation
sofa::component::collision::InteractionPerformerperformer
 

Attribute details

int sofa::gui::InciseOperation::cpt
protected
bool sofa::gui::InciseOperation::finishIncision
protected
bool sofa::gui::InciseOperation::keepPoint
protected
int sofa::gui::InciseOperation::method
protected
int sofa::gui::InciseOperation::snapingBorderValue
protected
int sofa::gui::InciseOperation::snapingValue
protected
sofa::component::collision::InteractionPerformer* sofa::gui::InciseOperation::startPerformer
protected

Constructor details

sofa::gui::InciseOperation::InciseOperation ( )
inline
sofa::gui::InciseOperation::~InciseOperation ( )
override

Function details

void sofa::gui::InciseOperation::end ( )
overridevirtual

Reimplemented from sofa::gui::Operation.

void sofa::gui::InciseOperation::endOperation ( )
overridevirtual

This function is called after each mouse click.

Reimplemented from sofa::gui::Operation.

void sofa::gui::InciseOperation::execution ( )
overridevirtual

This function is called each time the mouse is clicked.

Reimplemented from sofa::gui::Operation.

virtual bool sofa::gui::InciseOperation::getCompleteIncision ( )
inlinevirtual
static std::string sofa::gui::InciseOperation::getDescription ( )
inlinestatic
virtual int sofa::gui::InciseOperation::getIncisionMethod ( ) const
inlinevirtual
virtual bool sofa::gui::InciseOperation::getKeepPoint ( )
inlinevirtual
virtual int sofa::gui::InciseOperation::getSnapingBorderValue ( ) const
inlinevirtual
virtual int sofa::gui::InciseOperation::getSnapingValue ( ) const
inlinevirtual
void sofa::gui::InciseOperation::setCompleteIncision ( bool  m)
inline
void sofa::gui::InciseOperation::setIncisionMethod ( int  m)
inline
void sofa::gui::InciseOperation::setKeepPoint ( bool  m)
inline
void sofa::gui::InciseOperation::setSnapingBorderValue ( int  m)
inline
void sofa::gui::InciseOperation::setSnapingValue ( int  m)
inline
void sofa::gui::InciseOperation::start ( )
overridevirtual

Reimplemented from sofa::gui::Operation.