kalzium
Avogadro::Navigate Class Reference
#include <navigate.h>
Detailed Description
Navigation functions common to several tools.This class contains navigation functions that are used by several tools.
Definition at line 43 of file src/navigate.h.
Public Member Functions | |
| Navigate () | |
| Navigate () | |
| virtual | ~Navigate () |
| virtual | ~Navigate () |
Static Public Member Functions | |
| static void | rotate (GLWidget *widget, const Eigen::Vector3d ¢er, double deltaX, double deltaY) |
| static void | rotate (GLWidget *widget, const Eigen::Vector3d ¢er, double deltaX, double deltaY, double deltaZ) |
| static void | rotate (GLWidget *widget, const Eigen::Vector3d ¢er, double deltaX, double deltaY) |
| static void | tilt (GLWidget *widget, const Eigen::Vector3d ¢er, double delta) |
| static void | tilt (GLWidget *widget, const Eigen::Vector3d ¢er, double delta) |
| static void | translate (GLWidget *widget, const Eigen::Vector3d &what, const QPoint &from, const QPoint &to) |
| static void | translate (GLWidget *widget, const Eigen::Vector3d &what, const QPoint &from, const QPoint &to) |
| static void | zoom (GLWidget *widget, const Eigen::Vector3d &goal, double delta) |
| static void | zoom (GLWidget *widget, const Eigen::Vector3d &goal, double delta) |
Constructor & Destructor Documentation
| Avogadro::Navigate::Navigate | ( | ) |
| Avogadro::Navigate::~Navigate | ( | ) | [virtual] |
| Avogadro::Navigate::Navigate | ( | ) |
Constructor.
| virtual Avogadro::Navigate::~Navigate | ( | ) | [virtual] |
Destructor.
Member Function Documentation
| static void Avogadro::Navigate::rotate | ( | GLWidget * | widget, | |
| const Eigen::Vector3d & | center, | |||
| double | deltaX, | |||
| double | deltaY | |||
| ) | [static] |
Rotate about center by the amounts deltaX and deltaY in tha x and y axes.
- Parameters:
-
widget the GLWidget being operated on. center the point at the center of rotation. deltaX the amount to rotate about the x axis in degrees. deltaY the amount to rotate about the y axis in degrees.
| void Avogadro::Navigate::rotate | ( | GLWidget * | widget, | |
| const Eigen::Vector3d & | center, | |||
| double | deltaX, | |||
| double | deltaY, | |||
| double | deltaZ | |||
| ) | [static] |
Rotate about center by deltaX, deltaY, and deltaZ in the x, y and z axes A generalization of the rotate() and tilt() methods.
- Parameters:
-
widget the GLWidget being operated on. center the point at the center of rotation. deltaX the amount to rotate about the x axis in degrees. deltaY the amount to rotate about the y axis in degrees. deltaZ the amount to rotate about the z axis in degrees.
Definition at line 74 of file navigate.cpp.
| void Avogadro::Navigate::rotate | ( | GLWidget * | widget, | |
| const Eigen::Vector3d & | center, | |||
| double | deltaX, | |||
| double | deltaY | |||
| ) | [static] |
Rotate about center by the amounts deltaX and deltaY in tha x and y axes.
- Parameters:
-
widget the GLWidget being operated on. center the point at the center of rotation. deltaX the amount to rotate about the x axis in degrees. deltaY the amount to rotate about the y axis in degrees.
Definition at line 63 of file navigate.cpp.
| static void Avogadro::Navigate::tilt | ( | GLWidget * | widget, | |
| const Eigen::Vector3d & | center, | |||
| double | delta | |||
| ) | [static] |
Tilt about center by the amount delta z axis.
- Parameters:
-
widget the GLWidget being operated on. center the point at the center of rotation. delta the amount to rotate about the z axis in degrees.
| void Avogadro::Navigate::tilt | ( | GLWidget * | widget, | |
| const Eigen::Vector3d & | center, | |||
| double | delta | |||
| ) | [static] |
Tilt about center by the amount delta z axis.
- Parameters:
-
widget the GLWidget being operated on. center the point at the center of rotation. delta the amount to rotate about the z axis in degrees.
Definition at line 69 of file navigate.cpp.
| static void Avogadro::Navigate::translate | ( | GLWidget * | widget, | |
| const Eigen::Vector3d & | what, | |||
| const QPoint & | from, | |||
| const QPoint & | to | |||
| ) | [static] |
Translate between the from and to positions relative to what.
- Parameters:
-
widget the GLWidget being operated on. what the point that is being translated about. from the starting position. to the ending position.
| void Avogadro::Navigate::translate | ( | GLWidget * | widget, | |
| const Eigen::Vector3d & | what, | |||
| const QPoint & | from, | |||
| const QPoint & | to | |||
| ) | [static] |
Translate between the from and to positions relative to what.
- Parameters:
-
widget the GLWidget being operated on. what the point that is being translated about. from the starting position. to the ending position.
Definition at line 56 of file navigate.cpp.
| static void Avogadro::Navigate::zoom | ( | GLWidget * | widget, | |
| const Eigen::Vector3d & | goal, | |||
| double | delta | |||
| ) | [static] |
Zooms toward a given point by the given amount.
- Parameters:
-
widget the GLWidget being operated on. goal the point that is being zoomed toward. delta the amount to zoom by.
| void Avogadro::Navigate::zoom | ( | GLWidget * | widget, | |
| const Eigen::Vector3d & | goal, | |||
| double | delta | |||
| ) | [static] |
Zooms toward a given point by the given amount.
- Parameters:
-
widget the GLWidget being operated on. goal the point that is being zoomed toward. delta the amount to zoom by.
Definition at line 40 of file navigate.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference