SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::gui::common::TopologyOperation Class Reference

#include <MouseOperations.h>

Inheritance diagram for sofa::gui::common::TopologyOperation:

Protected Attributes

int topologicalOperation
 
double scale
 
bool volumicMesh
 
bool firstClick
 
- Protected Attributes inherited from sofa::gui::common::Operation
PickHandlerpickHandle
 
sofa::component::setting::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::common::Operation
 Operation (sofa::component::setting::MouseButtonSetting::SPtr s=nullptr)
 
virtual ~Operation ()
 
virtual void configure (PickHandler *picker, MOUSE_BUTTON b)
 
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 ()
 

Static Public Member Functions

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

Additional Inherited Members

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

Attribute details

◆ firstClick

bool sofa::gui::common::TopologyOperation::firstClick
protected

◆ scale

double sofa::gui::common::TopologyOperation::scale
protected

◆ topologicalOperation

int sofa::gui::common::TopologyOperation::topologicalOperation
protected

◆ volumicMesh

bool sofa::gui::common::TopologyOperation::volumicMesh
protected

Constructor details

◆ TopologyOperation()

sofa::gui::common::TopologyOperation::TopologyOperation ( )
inline

◆ ~TopologyOperation()

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

Function details

◆ end()

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

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

◆ endOperation()

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

This function is called after each mouse click.

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

◆ execution()

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

This function is called each time the mouse is clicked.

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

◆ getDescription()

static std::string sofa::gui::common::TopologyOperation::getDescription ( )
inlinestatic

◆ getScale()

virtual double sofa::gui::common::TopologyOperation::getScale ( ) const
inlinevirtual

◆ getTopologicalOperation()

virtual int sofa::gui::common::TopologyOperation::getTopologicalOperation ( ) const
inlinevirtual

◆ getVolumicMesh()

virtual bool sofa::gui::common::TopologyOperation::getVolumicMesh ( ) const
inlinevirtual

◆ setScale()

void sofa::gui::common::TopologyOperation::setScale ( double  s)
inline

◆ setTopologicalOperation()

void sofa::gui::common::TopologyOperation::setTopologicalOperation ( int  m)
inline

◆ setVolumicMesh()

void sofa::gui::common::TopologyOperation::setVolumicMesh ( bool  v)
inline

◆ start()

void sofa::gui::common::TopologyOperation::start ( )
overridevirtual

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