AvogadroLibs
1.90.0
|
The base class for plugins that interact with QtOpenGL::GLWidget. More...
#include <avogadro/qtgui/toolplugin.h>
Public Slots | |
virtual void | setMolecule (QtGui::Molecule *mol)=0 |
virtual void | setEditMolecule (QtGui::RWMolecule *) |
virtual void | setGLWidget (QtOpenGL::GLWidget *) |
virtual void | setActiveWidget (QWidget *) |
virtual void | setGLRenderer (Rendering::GLRenderer *) |
Signals | |
void | drawablesChanged () |
void | updateRequested () |
Public Member Functions | |
ToolPlugin (QObject *parent=0) | |
virtual QString | name () const =0 |
virtual QString | description () const =0 |
virtual unsigned char | priority () const =0 |
virtual QAction * | activateAction () const =0 |
virtual QWidget * | toolWidget () const =0 |
virtual void | draw (Rendering::GroupNode &node) |
virtual QUndoCommand * | mousePressEvent (QMouseEvent *e) |
virtual QUndoCommand * | mouseReleaseEvent (QMouseEvent *e) |
virtual QUndoCommand * | mouseMoveEvent (QMouseEvent *e) |
virtual QUndoCommand * | mouseDoubleClickEvent (QMouseEvent *e) |
virtual QUndoCommand * | wheelEvent (QWheelEvent *e) |
virtual QUndoCommand * | keyPressEvent (QKeyEvent *e) |
virtual QUndoCommand * | keyReleaseEvent (QKeyEvent *e) |
|
pure virtual |
The name of the tool, will be displayed in the user interface.
Implemented in BondCentricTool, MeasureTool, Editor, SelectionTool, PlayerTool, Manipulator, and Navigator.
|
pure virtual |
A description of the tool, may be displayed in the user interface.
Implemented in BondCentricTool, MeasureTool, Editor, SelectionTool, PlayerTool, Manipulator, and Navigator.
|
pure virtual |
A priority of the tool for sorting in the user interface.
Implemented in BondCentricTool, MeasureTool, Editor, SelectionTool, PlayerTool, Manipulator, and Navigator.
|
pure virtual |
Implemented in BondCentricTool, MeasureTool, Editor, SelectionTool, PlayerTool, Manipulator, and Navigator.
|
pure virtual |
Implemented in BondCentricTool, MeasureTool, Editor, SelectionTool, PlayerTool, Manipulator, and Navigator.
|
virtual |
Respond to user-input events.
e | The QEvent object. |
Reimplemented in BondCentricTool, Editor, Manipulator, MeasureTool, Navigator, SelectionTool, and PlayerTool.
|
virtual |
Respond to user-input events.
e | The QEvent object. |
Reimplemented in BondCentricTool, Editor, Manipulator, MeasureTool, Navigator, SelectionTool, and PlayerTool.
|
virtual |
Respond to user-input events.
e | The QEvent object. |
Reimplemented in BondCentricTool, Editor, Manipulator, Navigator, and SelectionTool.
|
virtual |
Respond to user-input events.
e | The QEvent object. |
Reimplemented in BondCentricTool, Navigator, MeasureTool, SelectionTool, and PlayerTool.
|
virtual |
Respond to user-input events.
e | The QEvent object. |
Reimplemented in Navigator.
|
virtual |
Respond to user-input events.
e | The QEvent object. |
Reimplemented in Editor, Navigator, and SelectionTool.
|
virtual |
Respond to user-input events.
e | The QEvent object. |
Reimplemented in Navigator.
|
virtual |
Override this method to add drawables to the scene graph.
Reimplemented in BondCentricTool, Editor, MeasureTool, and SelectionTool.
|
signal |
Emitted when draw() needs to be called again due to updates.
|
signal |
Emitted when something changed (camera, etc) and the molecule should be redrawn.
|
pure virtualslot |
Called when the current molecule changes.
Implemented in BondCentricTool, MeasureTool, Editor, SelectionTool, Manipulator, and Navigator.
|
virtualslot |
Set the GLWidget used by the tool.
Reimplemented in BondCentricTool, Editor, and Navigator.
|
virtualslot |
Set the active widget used by the tool, this can be anything derived from QWidget.
|
virtualslot |
Set the GLRenderer used by the tool.
Reimplemented in BondCentricTool, Editor, Manipulator, MeasureTool, Navigator, and SelectionTool.