ImageLabel Class Reference

The ImageLabel is space for loading the image in the gui. More...

#include <ImageLabel.h>

Collaboration diagram for ImageLabel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ImageLabel (MainWindow *guiParent, QWidget *parent=0, Qt::WFlags f=0)
 constructor of the ImageLabel: Space for Image loading; inherited by QLabel
virtual ~ImageLabel (void)
 destructor

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event)
 event triggered when mouse button pressed
virtual void mouseReleaseEvent (QMouseEvent *event)
 event triggered when mouse button released

Private Attributes

MainWindowm_guiParent
 pointer to the MainWindow parent

Detailed Description

The ImageLabel is space for loading the image in the gui.

The ImageLabel is space for loading the image in the gui. It is inherited from QLabel and so does include all functionality of the QLabel from Qt. In addition the events when the mouse is pressed are implemented. The mouse events are used to select an inital region of interest for the inital snake curve. The ellipse is fitted in the bounding box

Parameters:
guiParent represents the internal gui parent
parent is the parent that is passed on to the QLabel
f the Qt::WFlags are described in the Qt Reference Manual (QAssistant)
Todo:
make the ellipse selection more sufficient. There would be more exact result if the curve segments can be selected in a more general way. At least a rotation should be added when placing the ellipse in the image.

Definition at line 26 of file ImageLabel.h.


Constructor & Destructor Documentation

ImageLabel::ImageLabel ( MainWindow guiParent,
QWidget *  parent = 0,
Qt::WFlags  f = 0 
)

constructor of the ImageLabel: Space for Image loading; inherited by QLabel

Definition at line 8 of file ImageLabel.cpp.

ImageLabel::~ImageLabel ( void   )  [virtual]

destructor

Definition at line 15 of file ImageLabel.cpp.


Member Function Documentation

void ImageLabel::mousePressEvent ( QMouseEvent *  event  )  [protected, virtual]

event triggered when mouse button pressed

Definition at line 20 of file ImageLabel.cpp.

References MainWindow::getULPt(), m_guiParent, and MainWindow::setULPt().

Here is the call graph for this function:

void ImageLabel::mouseReleaseEvent ( QMouseEvent *  event  )  [protected, virtual]

event triggered when mouse button released

Definition at line 27 of file ImageLabel.cpp.

References MainWindow::getLRPt(), m_guiParent, and MainWindow::setLRPt().

Here is the call graph for this function:


Member Data Documentation

MainWindow* ImageLabel::m_guiParent [private]

pointer to the MainWindow parent

Definition at line 43 of file ImageLabel.h.

Referenced by mousePressEvent(), and mouseReleaseEvent().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 23:17:02 2006 for Snake Ballooning by  doxygen 1.4.7