kalzium
Avogadro::AutoRotateTool Class Reference
#include <autorotatetool.h>

Detailed Description
Automatic molecule rotation.This class handles the automatic rotation of the view so that the molecule can be shown in more detail.
Definition at line 52 of file autorotatetool.h.
Constructor & Destructor Documentation
| Avogadro::AutoRotateTool::AutoRotateTool | ( | QObject * | parent = 0 |
) |
| Avogadro::AutoRotateTool::~AutoRotateTool | ( | ) | [virtual] |
Member Function Documentation
| virtual QString Avogadro::AutoRotateTool::description | ( | ) | const [inline, virtual] |
Tool Description.
Reimplemented from Avogadro::Tool.
Definition at line 67 of file autorotatetool.h.
| void Avogadro::AutoRotateTool::disableTimer | ( | ) | [slot] |
Definition at line 218 of file autorotatetool.cpp.
| void Avogadro::AutoRotateTool::enableTimer | ( | ) | [slot] |
Definition at line 209 of file autorotatetool.cpp.
| QUndoCommand * Avogadro::AutoRotateTool::mouseMove | ( | GLWidget * | widget, | |
| const QMouseEvent * | event | |||
| ) | [virtual] |
Response to mouse movement.
- Parameters:
-
widget the GLWidget where the even occurred event the mouse event information
Implements Avogadro::Tool.
Definition at line 137 of file autorotatetool.cpp.
| QUndoCommand * Avogadro::AutoRotateTool::mousePress | ( | GLWidget * | widget, | |
| const QMouseEvent * | event | |||
| ) | [virtual] |
Callback methods for ui.actions on the canvas.
Implements Avogadro::Tool.
Definition at line 82 of file autorotatetool.cpp.
| QUndoCommand * Avogadro::AutoRotateTool::mouseRelease | ( | GLWidget * | widget, | |
| const QMouseEvent * | event | |||
| ) | [virtual] |
Response to mouse release.
- Parameters:
-
widget the GLWidget where the even occurred event the mouse event information
Implements Avogadro::Tool.
Definition at line 96 of file autorotatetool.cpp.
| virtual QString Avogadro::AutoRotateTool::name | ( | ) | const [inline, virtual] |
| bool Avogadro::AutoRotateTool::paint | ( | GLWidget * | widget | ) | [virtual] |
Called by the GLWidget allowing overlay painting by the tool.
Tools get painted last in the overall scheme.
- Parameters:
-
widget the GLWidget to paint to
Reimplemented from Avogadro::Tool.
Definition at line 150 of file autorotatetool.cpp.
| void Avogadro::AutoRotateTool::resetRotation | ( | int | i | ) | [signal] |
| void Avogadro::AutoRotateTool::resetRotations | ( | ) | [slot] |
Definition at line 228 of file autorotatetool.cpp.
| void Avogadro::AutoRotateTool::rotate | ( | ) | const [protected] |
Definition at line 64 of file autorotatetool.cpp.
| QWidget * Avogadro::AutoRotateTool::settingsWidget | ( | ) | [virtual] |
- Returns:
- the settings widget for the tool.
Reimplemented from Avogadro::Tool.
Definition at line 234 of file autorotatetool.cpp.
| void Avogadro::AutoRotateTool::setXRotation | ( | int | i | ) | [slot] |
Definition at line 184 of file autorotatetool.cpp.
| void Avogadro::AutoRotateTool::setYRotation | ( | int | i | ) | [slot] |
Definition at line 189 of file autorotatetool.cpp.
| void Avogadro::AutoRotateTool::setZRotation | ( | int | i | ) | [slot] |
Definition at line 194 of file autorotatetool.cpp.
| void Avogadro::AutoRotateTool::timerEvent | ( | QTimerEvent * | event | ) | [protected] |
| void Avogadro::AutoRotateTool::toggleTimer | ( | ) | [slot] |
Definition at line 199 of file autorotatetool.cpp.
| int Avogadro::AutoRotateTool::usefulness | ( | ) | const [virtual] |
Determines the ordering of the tools.
More useful tools are placed first. It is up to the tool designer to be humble about their usefulness value.
- Returns:
- usefulness value
Reimplemented from Avogadro::Tool.
Definition at line 59 of file autorotatetool.cpp.
| virtual QUndoCommand* Avogadro::AutoRotateTool::wheel | ( | GLWidget * | widget, | |
| const QWheelEvent * | event | |||
| ) | [inline, virtual] |
Response to mouse wheel movement.
- Parameters:
-
widget the GLWidget where the even occurred event the mouse wheel event information
Implements Avogadro::Tool.
Definition at line 78 of file autorotatetool.h.
Member Data Documentation
QPushButton* Avogadro::AutoRotateTool::m_buttonStartStop [protected] |
Definition at line 114 of file autorotatetool.h.
Definition at line 103 of file autorotatetool.h.
GLWidget* Avogadro::AutoRotateTool::m_glwidget [protected] |
Definition at line 99 of file autorotatetool.h.
bool Avogadro::AutoRotateTool::m_leftButtonPressed [protected] |
Definition at line 100 of file autorotatetool.h.
int Avogadro::AutoRotateTool::m_maxRotation [protected] |
Definition at line 108 of file autorotatetool.h.
bool Avogadro::AutoRotateTool::m_midButtonPressed [protected] |
Definition at line 101 of file autorotatetool.h.
QWidget* Avogadro::AutoRotateTool::m_settingsWidget [protected] |
Definition at line 113 of file autorotatetool.h.
QSlider* Avogadro::AutoRotateTool::m_sliderX [protected] |
Definition at line 115 of file autorotatetool.h.
QSlider* Avogadro::AutoRotateTool::m_sliderY [protected] |
Definition at line 116 of file autorotatetool.h.
QSlider* Avogadro::AutoRotateTool::m_sliderZ [protected] |
Definition at line 117 of file autorotatetool.h.
Definition at line 102 of file autorotatetool.h.
int Avogadro::AutoRotateTool::m_timerId [protected] |
Definition at line 104 of file autorotatetool.h.
int Avogadro::AutoRotateTool::m_xRotation [protected] |
Definition at line 105 of file autorotatetool.h.
int Avogadro::AutoRotateTool::m_yRotation [protected] |
Definition at line 106 of file autorotatetool.h.
int Avogadro::AutoRotateTool::m_zRotation [protected] |
Definition at line 107 of file autorotatetool.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference