A custom class for creating an view image widget. More...
#include <aiview.hpp>
Public Slots | |
| void | zooming (bool enable) |
| slot for enabling zooming area | |
Signals | |
| void | zoneZooming (int startx, int starty, int endx, int endy) |
| signal sent within zone zomming is actived | |
| void | enabledChilds (bool e) |
| enable and desable child's | |
Public Member Functions | |
| AiView (QWidget *parent=0) | |
| contructor with optional parent | |
| ~AiView () | |
| destructor | |
| void | makeUpdate () |
| updating view | |
| void | makeUpdate (QImage &image, bool undo) |
| updating view by using a binary image (bytes from QImage) | |
| void | makeUpdate (QString &fileName) |
| updating view from reading a physical image (image path) | |
| void | makeUndoUpdate (QImage &image) |
| updating view by using a binary image from undo command | |
| void | retate (qreal r) |
| retate image in view by x° | |
| void | scale (qreal sx, qreal sy) |
| scale image/ change image size | |
| void | saveAs (QString &fileName) |
| save view image as file | |
| QImage & | image () |
| current view image | |
| const bool | emptyScreen () |
| check if screen is empty no image loaded | |
| const qreal | getScaleX () const |
| get custom scale X | |
| const qreal | getScaleY () const |
| get custom scale Y | |
| void | clearScale () |
| clear scale and set current scale x,y as defauts | |
| const qreal | getRetation () const |
| get custion retation | |
| const int | getImageWidth () |
| get loaded or generated image width | |
| const int | getImageHeight () |
| get loaded or generated image height | |
| void | print () |
| print an image | |
| void | clear () |
| clear screen and set image to null or empty | |
| void | fillToWindow () |
| fill image to window size | |
| void | fillInWindow () |
| fill image in window | |
Public Attributes | |
| QUndoStack * | stack |
| stack of undo framework | |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) |
| void | mouseMoveEvent (QMouseEvent *event) |
| void | mousePressEvent (QMouseEvent *event) |
| void | mouseReleaseEvent (QMouseEvent *event) |
Private Member Functions | |
| int | widthView (int w) |
| get a new width for view | |
| int | heightView (int h) |
| get a new height for view | |
Private Attributes | |
| QImage | m_image |
| main image for view | |
| qreal | m_scaleX |
| custom scale X | |
| qreal | m_scaleY |
| custom scale Y | |
| bool | m_scale |
| allow scalling | |
| bool | m_clearScale |
| clear current scale x,y | |
| qreal | m_retation |
| custom retation | |
| bool | m_canRetate |
| allow to image retation | |
| bool | m_isZooming |
| allow zooming area | |
| int | m_startX |
| start x area zooming | |
| int | m_startY |
| start y area zooming | |
| int | m_endX |
| end x area zooming | |
| int | m_endY |
| end y area zooming | |
| bool | m_fill2Win |
| enable to fill image to window size | |
A custom class for creating an view image widget.
Definition at line 58 of file aiview.hpp.
1.6.1