MainDisplay Class Reference

Collaboration diagram for MainDisplay:
Collaboration graph
[legend]

List of all members.

Public Types

enum  ActionMode { Edit, Add, Remove, Rotate }
 

The three ways to manipulate annotation objects.

More...

Public Slots

void zoomIn ()
 Scale our Graphics View up.
void zoomOut ()
 Scale our Graphics View down.
void setActionMode_Cursor ()
 Set the current action mode to 'cursor' and change the mouse icon.
void setActionMode_AddVertex ()
 Set the current action mode to 'add vertex' and change the mouse icon.
void setActionMode_RemVertex ()
 Set the current action mode to 'remove vertex' and change the mouse icon.
void setActionMode_Rotate ()
 Set the current action mode to 'rotate' and change the mouse icon.

Signals

void addVertex (QPointF)
 Emit a signal telling the Object Manager to tell the appropriate object to add a vertex.
void removeVertex (QPointF)
 Emit a signal telling the Object Manager to tell the appropriate object to remove a vertex.

Public Member Functions

 MainDisplay (QWidget *parent=0)
 Construct the Main Display.
void setImage (QImage img)
 Set the background image.
void addObject (AnnotationObject *object)
 Add a new annotation object to be displayed/maniuplated.

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 Perform an action based on the current action mode.

Detailed Description

Definition at line 15 of file MainDisplay.qt.H.


Member Enumeration Documentation

The three ways to manipulate annotation objects.

Which of these is the current itsActionMode will determine how mouse events are handled, and whether they are passed through to the Qt subsystem

Definition at line 34 of file MainDisplay.qt.H.


Constructor & Destructor Documentation

MainDisplay::MainDisplay ( QWidget *  parent = 0  ) 

Construct the Main Display.

Set all sorts of Qt related parameters, and preload the cursor icons

Definition at line 10 of file MainDisplay.qt.C.


Member Function Documentation

void MainDisplay::addObject ( AnnotationObject object  ) 

Add a new annotation object to be displayed/maniuplated.

Definition at line 81 of file MainDisplay.qt.C.

Referenced by MainWindow::addObject().

void MainDisplay::addVertex ( QPointF   )  [signal]

Emit a signal telling the Object Manager to tell the appropriate object to add a vertex.

Referenced by mousePressEvent().

void MainDisplay::mousePressEvent ( QMouseEvent *  event  )  [protected]

Perform an action based on the current action mode.

Definition at line 57 of file MainDisplay.qt.C.

References addVertex(), and removeVertex().

void MainDisplay::removeVertex ( QPointF   )  [signal]

Emit a signal telling the Object Manager to tell the appropriate object to remove a vertex.

Referenced by mousePressEvent().

void MainDisplay::setActionMode_AddVertex (  )  [slot]

Set the current action mode to 'add vertex' and change the mouse icon.

Definition at line 92 of file MainDisplay.qt.C.

void MainDisplay::setActionMode_Cursor (  )  [slot]

Set the current action mode to 'cursor' and change the mouse icon.

Definition at line 86 of file MainDisplay.qt.C.

void MainDisplay::setActionMode_RemVertex (  )  [slot]

Set the current action mode to 'remove vertex' and change the mouse icon.

Definition at line 98 of file MainDisplay.qt.C.

void MainDisplay::setActionMode_Rotate (  )  [slot]

Set the current action mode to 'rotate' and change the mouse icon.

Definition at line 104 of file MainDisplay.qt.C.

void MainDisplay::setImage ( QImage  img  ) 

Set the background image.

Definition at line 40 of file MainDisplay.qt.C.

Referenced by MainWindow::updateFrame().

void MainDisplay::zoomIn (  )  [slot]

Scale our Graphics View up.

Definition at line 47 of file MainDisplay.qt.C.

void MainDisplay::zoomOut (  )  [slot]

Scale our Graphics View down.

Definition at line 52 of file MainDisplay.qt.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:37 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3