• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kalzium

Avogadro::Navigate

Avogadro::Navigate Class Reference

#include <navigate.h>

List of all members.


Detailed Description

Navigation functions common to several tools.

Author:
Marcus D. Hanwell
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 &center, double deltaX, double deltaY)
static void rotate (GLWidget *widget, const Eigen::Vector3d &center, double deltaX, double deltaY, double deltaZ)
static void rotate (GLWidget *widget, const Eigen::Vector3d &center, double deltaX, double deltaY)
static void tilt (GLWidget *widget, const Eigen::Vector3d &center, double delta)
static void tilt (GLWidget *widget, const Eigen::Vector3d &center, 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 (  ) 

Constructor.

Definition at line 32 of file navigate.cpp.

Avogadro::Navigate::~Navigate (  )  [virtual]

Destructor.

Definition at line 36 of file navigate.cpp.

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:
  • src/navigate.h
  • src/tools/navigate.h
  • navigate.cpp
  • tools/navigate.cpp

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal