AvogadroLibs  1.90.0
Public Member Functions | List of all members
Navigator Class Reference

The Navigator tool updates the camera in response to user input. More...

#include <avogadro/qtplugins/navigator/navigator.h>

Inheritance diagram for Navigator:
ToolPlugin

Public Member Functions

 Navigator (QObject *parent_=NULL)
 
QString name () const AVO_OVERRIDE
 
QString description () const AVO_OVERRIDE
 
unsigned char priority () const AVO_OVERRIDE
 
QAction * activateAction () const AVO_OVERRIDE
 
QWidget * toolWidget () const AVO_OVERRIDE
 
void setMolecule (QtGui::Molecule *mol) AVO_OVERRIDE
 
void setGLWidget (QtOpenGL::GLWidget *widget) AVO_OVERRIDE
 
void setGLRenderer (Rendering::GLRenderer *renderer) AVO_OVERRIDE
 
QUndoCommand * mousePressEvent (QMouseEvent *e) AVO_OVERRIDE
 
QUndoCommand * mouseReleaseEvent (QMouseEvent *e) AVO_OVERRIDE
 
QUndoCommand * mouseMoveEvent (QMouseEvent *e) AVO_OVERRIDE
 
QUndoCommand * mouseDoubleClickEvent (QMouseEvent *e) AVO_OVERRIDE
 
QUndoCommand * wheelEvent (QWheelEvent *e) AVO_OVERRIDE
 
QUndoCommand * keyPressEvent (QKeyEvent *e) AVO_OVERRIDE
 
QUndoCommand * keyReleaseEvent (QKeyEvent *e) AVO_OVERRIDE
 
- Public Member Functions inherited from ToolPlugin
 ToolPlugin (QObject *parent=0)
 
virtual void draw (Rendering::GroupNode &node)
 

Additional Inherited Members

- Public Slots inherited from ToolPlugin
virtual void setEditMolecule (QtGui::RWMolecule *)
 
virtual void setActiveWidget (QWidget *)
 
- Signals inherited from ToolPlugin
void drawablesChanged ()
 
void updateRequested ()
 

Detailed Description

Author
David C. Lonie

Member Function Documentation

◆ name()

QString name ( ) const
virtual

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()

void setMolecule ( QtGui::Molecule mol)
virtual

Called when the current molecule changes.

Implements ToolPlugin.

◆ setGLWidget()

void setGLWidget ( QtOpenGL::GLWidget )
virtual

Set the GLWidget used by the tool.

Reimplemented from ToolPlugin.

◆ setGLRenderer()

void setGLRenderer ( Rendering::GLRenderer )
virtual

Set the GLRenderer used by the tool.

Reimplemented from ToolPlugin.

◆ mousePressEvent()

QUndoCommand* mousePressEvent ( QMouseEvent *  e)
virtual

Respond to user-input events.

Parameters
eThe QEvent object.
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
eThe QEvent object.
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.

◆ mouseMoveEvent()

QUndoCommand* mouseMoveEvent ( QMouseEvent *  e)
virtual

Respond to user-input events.

Parameters
eThe QEvent object.
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
eThe QEvent object.
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.

◆ wheelEvent()

QUndoCommand* wheelEvent ( QWheelEvent *  e)
virtual

Respond to user-input events.

Parameters
eThe QEvent object.
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.

◆ keyPressEvent()

QUndoCommand* keyPressEvent ( QKeyEvent *  e)
virtual

Respond to user-input events.

Parameters
eThe QEvent object.
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.

◆ keyReleaseEvent()

QUndoCommand* keyReleaseEvent ( QKeyEvent *  e)
virtual

Respond to user-input events.

Parameters
eThe QEvent object.
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.


The documentation for this class was generated from the following file: