EyaAdvancedBlackboardScribbleArea Class Reference

Scribble area for blackboard processing. More...

#include <eyaadvanced.h>

List of all members.

Public Slots

void slotResetZoom ()
 Reset the zoom properties.
void slotDecZoom ()
 Decrement the zoom level.

Public Member Functions

 EyaAdvancedBlackboardScribbleArea (QString filename=QString(), QWidget *parent=0, Qt::WindowFlags f=0)
 SCRIBBLEAREA.
 ~EyaAdvancedBlackboardScribbleArea ()
bool loadImage (QString)
QPolygon getPoints ()
QPolygon getTargetPoints ()
void resetPoints ()
 To reset the original point of the perspective.
void resetTargetPoints ()
 To reset the original target points of the perspective.
void hidePoints ()
void showPoints ()
QSize getImageSize ()
void showTargetPoints ()
void showBasePoints ()
 To show the TARGET points.
void setZoom (double)
 To show the BASE points (the region to straithen).

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseMoveEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)

Private Attributes

QPoint points [4]
QPoint targetPoints [4]
bool onPoints
bool modeTarget
double zoom
int cnt
QImage imageToShow


Detailed Description

Scribble area for blackboard processing.

This class implements the methods to manage the painting of the photos. The class can show some additional points to select a region of the shown photo (to seletc the perspective transformation)


Constructor & Destructor Documentation

EyaAdvancedBlackboardScribbleArea::EyaAdvancedBlackboardScribbleArea ( QString  filename = QString(),
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

SCRIBBLEAREA.

EyaAdvancedBlackboardScribbleArea::~EyaAdvancedBlackboardScribbleArea (  ) 


Member Function Documentation

QSize EyaAdvancedBlackboardScribbleArea::getImageSize (  )  [inline]

QPolygon EyaAdvancedBlackboardScribbleArea::getPoints (  ) 

QPolygon EyaAdvancedBlackboardScribbleArea::getTargetPoints (  ) 

void EyaAdvancedBlackboardScribbleArea::hidePoints (  )  [inline]

bool EyaAdvancedBlackboardScribbleArea::loadImage ( QString  name  ) 

void EyaAdvancedBlackboardScribbleArea::mouseMoveEvent ( QMouseEvent *  event  )  [protected, virtual]

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

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

void EyaAdvancedBlackboardScribbleArea::paintEvent ( QPaintEvent *  event  )  [protected, virtual]

void EyaAdvancedBlackboardScribbleArea::resetPoints (  ) 

To reset the original point of the perspective.

void EyaAdvancedBlackboardScribbleArea::resetTargetPoints (  ) 

To reset the original target points of the perspective.

void EyaAdvancedBlackboardScribbleArea::setZoom ( double  z  ) 

To show the BASE points (the region to straithen).

To manage the zoom of this area

void EyaAdvancedBlackboardScribbleArea::showBasePoints (  )  [inline]

To show the TARGET points.

void EyaAdvancedBlackboardScribbleArea::showPoints (  )  [inline]

void EyaAdvancedBlackboardScribbleArea::showTargetPoints (  )  [inline]

void EyaAdvancedBlackboardScribbleArea::slotDecZoom (  )  [slot]

Decrement the zoom level.

void EyaAdvancedBlackboardScribbleArea::slotResetZoom (  )  [slot]

Reset the zoom properties.


Member Data Documentation


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

Generated on Mon Aug 24 14:01:38 2009 for openeya by  doxygen 1.5.8