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

#include <SofaMouseManager.h>

Inheritance diagram for sofa::gui::qt::SofaMouseManager:

Protected Attributes

common::PickHandlerpickHandler
 
std::map< int, std::string > mapIndexOperation
 
type::fixed_array< std::string, common::NONEusedOperations
 

Public Member Functions

 SofaMouseManager (QWidget *parent)
 
 ~SofaMouseManager () override
 
void updateContent ()
 
void setPickHandler (common::PickHandler *)
 
std::map< int, std::string > & getMapIndexOperation ()
 
void updateOperation (sofa::component::setting::MouseButtonSetting *setting)
 
void updateOperation (common::MOUSE_BUTTON button, const std::string &id)
 

Protected Member Functions

void updateOperation (common::Operation *op)
 

Public Slots

void selectOperation (int)
 

Attribute details

◆ mapIndexOperation

std::map< int, std::string > sofa::gui::qt::SofaMouseManager::mapIndexOperation
protected

◆ pickHandler

common::PickHandler* sofa::gui::qt::SofaMouseManager::pickHandler
protected

◆ usedOperations

type::fixed_array< std::string, common::NONE > sofa::gui::qt::SofaMouseManager::usedOperations
protected

Constructor details

◆ SofaMouseManager()

sofa::gui::qt::SofaMouseManager::SofaMouseManager ( QWidget parent)

◆ ~SofaMouseManager()

sofa::gui::qt::SofaMouseManager::~SofaMouseManager ( )
override

Function details

◆ getMapIndexOperation()

std::map< int, std::string >& sofa::gui::qt::SofaMouseManager::getMapIndexOperation ( )
inline

◆ selectOperation

void sofa::gui::qt::SofaMouseManager::selectOperation ( int  operation)
slot

◆ setPickHandler()

void sofa::gui::qt::SofaMouseManager::setPickHandler ( common::PickHandler picker)

◆ updateContent()

void sofa::gui::qt::SofaMouseManager::updateContent ( )

◆ updateOperation() [1/3]

void sofa::gui::qt::SofaMouseManager::updateOperation ( common::MOUSE_BUTTON  button,
const std::string &  id 
)

◆ updateOperation() [2/3]

void sofa::gui::qt::SofaMouseManager::updateOperation ( common::Operation op)
protected

◆ updateOperation() [3/3]

void sofa::gui::qt::SofaMouseManager::updateOperation ( sofa::component::setting::MouseButtonSetting setting)