#include <eyaadvanced.h>
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 |
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)
| EyaAdvancedBlackboardScribbleArea::EyaAdvancedBlackboardScribbleArea | ( | QString | filename = QString(), |
|
| QWidget * | parent = 0, |
|||
| Qt::WindowFlags | f = 0 | |||
| ) |
SCRIBBLEAREA.
| EyaAdvancedBlackboardScribbleArea::~EyaAdvancedBlackboardScribbleArea | ( | ) |
| 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.
int EyaAdvancedBlackboardScribbleArea::cnt [private] |
QImage EyaAdvancedBlackboardScribbleArea::imageToShow [private] |
bool EyaAdvancedBlackboardScribbleArea::modeTarget [private] |
bool EyaAdvancedBlackboardScribbleArea::onPoints [private] |
QPoint EyaAdvancedBlackboardScribbleArea::points[4] [private] |
QPoint EyaAdvancedBlackboardScribbleArea::targetPoints[4] [private] |
double EyaAdvancedBlackboardScribbleArea::zoom [private] |
1.5.8