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

kalzium

Avogadro::ClickMeasureTool

Avogadro::ClickMeasureTool Class Reference

#include <clickmeasuretool.h>

Inheritance diagram for Avogadro::ClickMeasureTool:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 48 of file clickmeasuretool.h.


Tool Methods

virtual QUndoCommand * mouseMove (GLWidget *widget, const QMouseEvent *event)
virtual QUndoCommand * mousePress (GLWidget *widget, const QMouseEvent *event)
virtual QUndoCommand * mouseRelease (GLWidget *widget, const QMouseEvent *event)
virtual bool paint (GLWidget *widget)
virtual QUndoCommand * wheel (GLWidget *widget, const QWheelEvent *event)

Public Member Functions

 ClickMeasureTool (QObject *parent=0)
virtual ~ClickMeasureTool ()
Description methods
virtual QString description () const
virtual QString name () const

Constructor & Destructor Documentation

Avogadro::ClickMeasureTool::ClickMeasureTool ( QObject *  parent = 0  ) 

Constructor.

Definition at line 46 of file clickmeasuretool.cpp.

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

Destructor.

Definition at line 61 of file clickmeasuretool.cpp.


Member Function Documentation

virtual QString Avogadro::ClickMeasureTool::description (  )  const [inline, virtual]

Tool Description (ie. ClickMeasureTools atoms and bonds).

Reimplemented from Avogadro::Tool.

Definition at line 63 of file clickmeasuretool.h.

QUndoCommand * Avogadro::ClickMeasureTool::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 101 of file clickmeasuretool.cpp.

QUndoCommand * Avogadro::ClickMeasureTool::mousePress ( GLWidget *  widget,
const QMouseEvent *  event 
) [virtual]

Callback methods for ui.actions on the canvas.

List of hits from initial click

Implements Avogadro::Tool.

Definition at line 65 of file clickmeasuretool.cpp.

QUndoCommand * Avogadro::ClickMeasureTool::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 106 of file clickmeasuretool.cpp.

virtual QString Avogadro::ClickMeasureTool::name (  )  const [inline, virtual]

Tool Name (ie ClickMeasureTool).

Implements Avogadro::Tool.

Definition at line 61 of file clickmeasuretool.h.

bool Avogadro::ClickMeasureTool::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 224 of file clickmeasuretool.cpp.

QUndoCommand * Avogadro::ClickMeasureTool::wheel ( GLWidget *  widget,
const QWheelEvent *  event 
) [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 111 of file clickmeasuretool.cpp.


The documentation for this class was generated from the following files:
  • clickmeasuretool.h
  • clickmeasuretool.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