AvogadroLibs  1.90.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Slots | Public Member Functions | Protected Slots | List of all members
PlayerTool Class Reference

PlayerTool enables playback of trajectories.

#include <playertool.h>

Inheritance diagram for PlayerTool:
ToolPlugin

Public Slots

void setMolecule (QtGui::Molecule *) AVO_OVERRIDE
 
void setGLRenderer (Rendering::GLRenderer *renderer) AVO_OVERRIDE
 
void setActiveWidget (QWidget *widget) AVO_OVERRIDE
 
- Public Slots inherited from ToolPlugin
virtual void setMolecule (QtGui::Molecule *mol)=0
 
virtual void setEditMolecule (QtGui::RWMolecule *)
 
virtual void setGLWidget (QtOpenGL::GLWidget *)
 
virtual void setActiveWidget (QWidget *)
 
virtual void setGLRenderer (Rendering::GLRenderer *)
 

Public Member Functions

 PlayerTool (QObject *p=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
 
QUndoCommand * mousePressEvent (QMouseEvent *e) AVO_OVERRIDE
 
QUndoCommand * mouseReleaseEvent (QMouseEvent *e) AVO_OVERRIDE
 
QUndoCommand * mouseDoubleClickEvent (QMouseEvent *e) AVO_OVERRIDE
 
- Public Member Functions inherited from ToolPlugin
 ToolPlugin (QObject *parent=0)
 
virtual void draw (Rendering::GroupNode &node)
 
virtual QUndoCommand * mouseMoveEvent (QMouseEvent *e)
 
virtual QUndoCommand * wheelEvent (QWheelEvent *e)
 
virtual QUndoCommand * keyPressEvent (QKeyEvent *e)
 
virtual QUndoCommand * keyReleaseEvent (QKeyEvent *e)
 

Protected Slots

void back ()
 
void forward ()
 
void play ()
 
void stop ()
 
void animate (int advance=1)
 
void recordMovie ()
 

Additional Inherited Members

- Signals inherited from ToolPlugin
void drawablesChanged ()
 
void updateRequested ()
 

Member Function Documentation

QString name ( ) const
virtual

The name of the tool, will be displayed in the user interface.

Implements ToolPlugin.

QString description ( ) const
virtual

A description of the tool, may be displayed in the user interface.

Implements ToolPlugin.

unsigned char priority ( ) const
virtual

A priority of the tool for sorting in the user interface.

Implements ToolPlugin.

QAction* activateAction ( ) const
virtual
Returns
The QAction that will cause this tool to become active.

Implements ToolPlugin.

QWidget* toolWidget ( ) const
virtual
Returns
A QWidget that will be displayed to the user while this tool is active.

Implements ToolPlugin.

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.

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.

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.


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