SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::gui::TopologyOperation Class Reference

#include <MouseOperations.h>

Inheritance diagram for sofa::gui::TopologyOperation:

Protected Attributes

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

 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)
 
virtual int getTopologicalOperation () const
 
virtual double getScale () const
 
virtual bool getVolumicMesh () const
 
- 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

bool sofa::gui::TopologyOperation::firstClick
protected
double sofa::gui::TopologyOperation::scale
protected
int sofa::gui::TopologyOperation::topologicalOperation
protected
bool sofa::gui::TopologyOperation::volumicMesh
protected

Constructor details

sofa::gui::TopologyOperation::TopologyOperation ( )
inline
sofa::gui::TopologyOperation::~TopologyOperation ( )
inlineoverride

Function details

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

Reimplemented from sofa::gui::Operation.

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

This function is called after each mouse click.

Reimplemented from sofa::gui::Operation.

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

This function is called each time the mouse is clicked.

Reimplemented from sofa::gui::Operation.

static std::string sofa::gui::TopologyOperation::getDescription ( )
inlinestatic
virtual double sofa::gui::TopologyOperation::getScale ( ) const
inlinevirtual
virtual int sofa::gui::TopologyOperation::getTopologicalOperation ( ) const
inlinevirtual
virtual bool sofa::gui::TopologyOperation::getVolumicMesh ( ) const
inlinevirtual
void sofa::gui::TopologyOperation::setScale ( double  s)
inline
void sofa::gui::TopologyOperation::setTopologicalOperation ( int  m)
inline
void sofa::gui::TopologyOperation::setVolumicMesh ( bool  v)
inline
void sofa::gui::TopologyOperation::start ( )
overridevirtual

Reimplemented from sofa::gui::Operation.