#include <ImageLabel.h>
Collaboration diagram for ImageLabel:
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 | |
MainWindow * | m_guiParent |
pointer to the MainWindow parent |
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
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) |
Definition at line 26 of file ImageLabel.h.
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] |
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:
MainWindow* ImageLabel::m_guiParent [private] |
pointer to the MainWindow parent
Definition at line 43 of file ImageLabel.h.
Referenced by mousePressEvent(), and mouseReleaseEvent().