Developer Documentation
Loading...
Searching...
No Matches
MouseAndKeyPlugin Class Reference
Inheritance diagram for MouseAndKeyPlugin:
LoggingInterface KeyInterface ToolboxInterface ContextMenuInterface PickingInterface MouseInterface BaseInterface

Public Slots

QString version ()
 

Signals

void updateView ()
 
void updatedObject (int _identifier, const UpdateType &_type)
 
void log (Logtype _type, QString _message)
 
void log (QString _message)
 
void addContextMenuItem (QAction *_action, ContextMenuType _type)
 
void addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type)
 
void addPickMode (const std::string &_mode)
 
void addHiddenPickMode (const std::string &_mode)
 
void registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
 
void addToolbox (QString _name, QWidget *_widget)
 
- Signals inherited from BaseInterface
virtual void updateView ()
 Update current view in Main Application.
 
virtual void setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
 Set a description for a public slot.
 
virtual void setRenderer (unsigned int _viewer, QString _rendererName)
 Set a renderer for the given viewer.
 
- Signals inherited from PickingInterface
virtual void addPickMode (const std::string &_mode)
 Add a new picking mode to the examiner.
 
- Signals inherited from ContextMenuInterface
virtual void addContextMenuItem (QAction *_action, ContextMenuType _type)
 Add an entry for a context Menu.
 
- Signals inherited from ToolboxInterface
virtual void addToolbox (QString _name, QWidget *_widget)
 Add a toolbox widget to the gui with the given name.
 
- Signals inherited from KeyInterface
virtual void registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
 Register a key-combination for your plugin.
 
- Signals inherited from LoggingInterface
virtual void log (Logtype _type, QString _message)=0
 
virtual void log (QString _message)=0
 

Public Member Functions

QString name ()
 Return a name for the plugin.
 
QString description ()
 Return a description of what the plugin is doing.
 

Private Slots

void initializePlugin ()
 
void pluginsInitialized ()
 
void slotMouseEvent (QMouseEvent *_event)
 
void slotKeyEvent (QKeyEvent *_event)
 
void slotPickModeChanged (const std::string &_mode)
 
void slotButtonClicked ()
 
void contextMenuItemSelected (QAction *_action)
 
- Private Slots inherited from BaseInterface
virtual void exit ()
 
virtual QString version ()
 Return a version string for your plugin.
 
- Private Slots inherited from KeyInterface
virtual void slotKeyEvent (QKeyEvent *_event)
 Key Event from Main App.
 

Private Member Functions

template<typename MeshT >
void transformMesh (ACG::Matrix4x4d _mat, MeshT &_mesh)
 
- Private Member Functions inherited from BaseInterface
virtual void noguiSupported ()
 
virtual ~BaseInterface ()
 Destructor.
 
virtual void blockScenegraphUpdates (bool _block)
 Tell the core to prevent scenegraph updates.
 
virtual void updatedObject (int _objectId)
 An object has been changed or added by this plugin.
 
virtual void updatedObject (int _identifier, const UpdateType &_type)
 An object has been changed or added by this plugin.
 
virtual void nodeVisibilityChanged (int _identifier)
 A scenegraph node has been shown or hidden.
 
virtual void getCurrentRenderer (unsigned int _viewer, QString &_rendererName)
 Get the current renderer for the given viewer.
 
- Private Member Functions inherited from MouseInterface
virtual ~MouseInterface ()
 Destructor.
 
- Private Member Functions inherited from PickingInterface
virtual void addHiddenPickMode (const std::string &_mode)
 Add a new picking mode to the examiner which will be invisible.
 
virtual void setPickModeCursor (const std::string &_mode, QCursor _cursor)
 Set the cursor of the given PickMode.
 
virtual void setPickModeMouseTracking (const std::string &_mode, bool _mouseTracking)
 Set mouse tracking for the given PickMode.
 
virtual void setPickModeToolbar (const std::string &_mode, QToolBar *_toolbar)
 Set the additional toolbar of the given PickMode.
 
virtual void removePickModeToolbar (const std::string &_mode)
 Removes the additional toolbar of the given PickMode.
 
virtual ~PickingInterface ()
 Destructor.
 
- Private Member Functions inherited from ContextMenuInterface
virtual ~ContextMenuInterface ()
 Destructor.
 
virtual void addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type)
 Add an entry for a context Menu.
 
virtual void hideContextMenu ()
 hide the main context menu
 
- Private Member Functions inherited from ToolboxInterface
virtual ~ToolboxInterface ()
 Destructor.
 
virtual void addToolbox (QString _name, QWidget *_widget, QIcon *_icon)
 Add a toolbox widget to the gui with the given name and an icon.
 
virtual void addToolbox (QString _name, QWidget *_widget, QIcon *_icon, QWidget *_headerAreaWidget)
 Add a toolbox widget to the gui with the given name, icon and header area widget.
 
- Private Member Functions inherited from KeyInterface
virtual void slotKeyReleaseEvent (QKeyEvent *_event)
 Key Release Event from Main App.
 
virtual ~KeyInterface ()
 Destructor.
 
- Private Member Functions inherited from LoggingInterface
virtual ~LoggingInterface ()
 Destructor.
 

Private Attributes

QMenu * contextMenuEntry_
 
QWidget * tool_
 
QPushButton * pickButton_
 
int activeObject_
 
ACG::Vec3d axis_x_
 
ACG::Vec3d axis_y_
 

Detailed Description

Definition at line 19 of file MouseAndKeyPlugin.hh.

Constructor & Destructor Documentation

◆ MouseAndKeyPlugin()

MouseAndKeyPlugin::MouseAndKeyPlugin ( )

Definition at line 40 of file MouseAndKeyPlugin.cc.

Member Function Documentation

◆ contextMenuItemSelected

void MouseAndKeyPlugin::contextMenuItemSelected ( QAction *  _action)
privateslot

Definition at line 301 of file MouseAndKeyPlugin.cc.

◆ description()

QString MouseAndKeyPlugin::description ( )
inlinevirtual

Return a description of what the plugin is doing.

This function has to return a basic description of the plugin

Implements BaseInterface.

Definition at line 74 of file MouseAndKeyPlugin.hh.

◆ initializePlugin

void MouseAndKeyPlugin::initializePlugin ( )
privateslot

Definition at line 54 of file MouseAndKeyPlugin.cc.

◆ name()

QString MouseAndKeyPlugin::name ( )
inlinevirtual

Return a name for the plugin.

This Function has to return the name of the plugin.

Implements BaseInterface.

Definition at line 73 of file MouseAndKeyPlugin.hh.

◆ pluginsInitialized

void MouseAndKeyPlugin::pluginsInitialized ( )
privateslot

Definition at line 93 of file MouseAndKeyPlugin.cc.

◆ slotButtonClicked

void MouseAndKeyPlugin::slotButtonClicked ( )
privateslot

Definition at line 124 of file MouseAndKeyPlugin.cc.

◆ slotKeyEvent

void MouseAndKeyPlugin::slotKeyEvent ( QKeyEvent *  _event)
privateslot

Definition at line 208 of file MouseAndKeyPlugin.cc.

◆ slotMouseEvent

void MouseAndKeyPlugin::slotMouseEvent ( QMouseEvent *  _event)
privateslot

Definition at line 154 of file MouseAndKeyPlugin.cc.

◆ slotPickModeChanged

void MouseAndKeyPlugin::slotPickModeChanged ( const std::string &  _mode)
privateslot

Definition at line 143 of file MouseAndKeyPlugin.cc.

◆ transformMesh()

template<typename MeshT >
void MouseAndKeyPlugin::transformMesh ( ACG::Matrix4x4d  _mat,
MeshT _mesh 
)
private

Definition at line 274 of file MouseAndKeyPlugin.cc.

◆ version

QString MouseAndKeyPlugin::version ( )
inlineslot

Definition at line 107 of file MouseAndKeyPlugin.hh.

Member Data Documentation

◆ activeObject_

int MouseAndKeyPlugin::activeObject_
private

Definition at line 92 of file MouseAndKeyPlugin.hh.

◆ axis_x_

ACG::Vec3d MouseAndKeyPlugin::axis_x_
private

Definition at line 95 of file MouseAndKeyPlugin.hh.

◆ axis_y_

ACG::Vec3d MouseAndKeyPlugin::axis_y_
private

Definition at line 96 of file MouseAndKeyPlugin.hh.

◆ contextMenuEntry_

QMenu* MouseAndKeyPlugin::contextMenuEntry_
private

Definition at line 85 of file MouseAndKeyPlugin.hh.

◆ pickButton_

QPushButton* MouseAndKeyPlugin::pickButton_
private

Definition at line 89 of file MouseAndKeyPlugin.hh.

◆ tool_

QWidget* MouseAndKeyPlugin::tool_
private

Definition at line 88 of file MouseAndKeyPlugin.hh.


The documentation for this class was generated from the following files: