The base class for plugins that interact with QtOpenGL::GLWidget.
More...
#include <avogadro/qtgui/toolplugin.h>
◆ name()
virtual QString name |
( |
| ) |
const |
|
pure virtual |
◆ description()
virtual QString description |
( |
| ) |
const |
|
pure virtual |
◆ priority()
virtual unsigned char priority |
( |
| ) |
const |
|
pure virtual |
◆ activateAction()
virtual QAction* activateAction |
( |
| ) |
const |
|
pure virtual |
◆ toolWidget()
virtual QWidget* toolWidget |
( |
| ) |
const |
|
pure virtual |
◆ mousePressEvent()
virtual QUndoCommand* mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
◆ mouseReleaseEvent()
virtual QUndoCommand* mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
◆ mouseMoveEvent()
virtual QUndoCommand* mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
◆ mouseDoubleClickEvent()
virtual QUndoCommand* mouseDoubleClickEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
◆ wheelEvent()
virtual QUndoCommand* wheelEvent |
( |
QWheelEvent * |
e | ) |
|
|
virtual |
Respond to user-input events.
- Parameters
-
- Returns
- A QUndoCommand that can be used to undo any changes to the molecule. If no undoable change is made, the method may return nullptr.
Reimplemented in Navigator.
◆ keyPressEvent()
virtual QUndoCommand* keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
virtual |
Respond to user-input events.
- Parameters
-
- Returns
- A QUndoCommand that can be used to undo any changes to the molecule. If no undoable change is made, the method may return nullptr.
Reimplemented in SelectionTool, Navigator, and Editor.
◆ keyReleaseEvent()
virtual QUndoCommand* keyReleaseEvent |
( |
QKeyEvent * |
e | ) |
|
|
virtual |
Respond to user-input events.
- Parameters
-
- Returns
- A QUndoCommand that can be used to undo any changes to the molecule. If no undoable change is made, the method may return nullptr.
Reimplemented in Navigator.
◆ draw()
◆ drawablesChanged
void drawablesChanged |
( |
| ) |
|
|
signal |
Emitted when draw() needs to be called again due to updates.
◆ updateRequested
Emitted when something changed (camera, etc) and the molecule should be redrawn.
◆ setMolecule
◆ setGLWidget
◆ setActiveWidget
virtual void setActiveWidget |
( |
QWidget * |
| ) |
|
|
virtualslot |
Set the active widget used by the tool, this can be anything derived from QWidget.
◆ setGLRenderer
The documentation for this class was generated from the following file: