This class manipulate the view of an image on a Viewer.
You can add specific overlay to this image using the command addShape
Definition at line 25 of file ImageView.hpp.
Public Slots |
void | lutRandomize () |
void | lutGrayscale () |
void | lutInvertGrayscale () |
void | lutRedHot () |
void | exportView () |
void | splitVertical () |
void | splitHorizontal () |
void | addShape () |
Public Member Functions |
| ImageView (const jafar::image::Image &img) |
| Create an ImageView to use with a Viewer to display a jafar::image::Image in the Viewer.
|
| ImageView (const std::string &filename) |
| Create an ImageView from a file.
|
| ~ImageView () |
| Destructor.
|
void | connectEvents () |
int | imageWidth () const |
int | imageHeight () const |
void | setImage (const jafar::image::Image &img) |
void | addShape (Shape *si) |
void | removeShape (Shape *si) |
void | addLine (Line *li) |
void | removeLine (Line *li) |
void | addPolyLine (qdisplay::PolyLine *pl) |
void | setEventHandler (AbstractEventHandler *eh) |
| Define the event handler for this view.
|
void | exportView (const std::string &_fileName) |
| Exports the view to different image format.
|
QRectF | boundingRect () const |
void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
Protected Member Functions |
void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
Private Attributes |
QAction * | m_lutRandomizeAction |
QAction * | m_lutGrayscaleAction |
QAction * | m_lutInvertGrayscaleAction |
QAction * | m_lutRedHotAction |
QAction * | m_exportView |
QAction * | m_splitVerticalAction |
QAction * | m_splitHorizontalAction |
QAction * | m_addShapeAction |
QImage | m_image |
QGraphicsPixmapItem * | m_pixmapItem |
double | m_currentZ |
AbstractEventHandler * | m_eventHandler |
Viewer * | m_lastViewer |