MeasureTool displays distances and angles between selected atoms.
More...
#include <measuretool.h>
Based on the Avogadro 1.x implementation by Donald Ephraim Curtis and Marcus D. Hanwell.
◆ name()
The name of the tool, will be displayed in the user interface.
Implements ToolPlugin.
◆ description()
QString description |
( |
| ) |
const |
|
virtual |
A description of the tool, may be displayed in the user interface.
Implements ToolPlugin.
◆ priority()
unsigned char priority |
( |
| ) |
const |
|
virtual |
A priority of the tool for sorting in the user interface.
Implements ToolPlugin.
◆ activateAction()
QAction* activateAction |
( |
| ) |
const |
|
virtual |
- Returns
- The QAction that will cause this tool to become active.
Implements ToolPlugin.
◆ toolWidget()
QWidget* toolWidget |
( |
| ) |
const |
|
virtual |
- Returns
- A QWidget that will be displayed to the user while this tool is active.
Implements ToolPlugin.
◆ setMolecule()
Called when the current molecule changes.
Implements ToolPlugin.
◆ setGLRenderer()
Set the GLRenderer used by the tool.
Reimplemented from ToolPlugin.
◆ mousePressEvent()
QUndoCommand* mousePressEvent |
( |
QMouseEvent * |
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 NULL.
Reimplemented from ToolPlugin.
◆ mouseReleaseEvent()
QUndoCommand* mouseReleaseEvent |
( |
QMouseEvent * |
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 NULL.
Reimplemented from ToolPlugin.
◆ mouseDoubleClickEvent()
QUndoCommand* mouseDoubleClickEvent |
( |
QMouseEvent * |
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 NULL.
Reimplemented from ToolPlugin.
◆ draw()
Override this method to add drawables to the scene graph.
Reimplemented from ToolPlugin.
The documentation for this class was generated from the following file: