Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Public Member Functions | Protected Member Functions | Private Attributes
jafar::qdisplay::ImageView Class Reference

This class manipulate the view of an image on a Viewer. More...


Detailed Description

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.

#include <ImageView.hpp>

List of all members.

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
AbstractEventHandlerm_eventHandler
Viewerm_lastViewer

Constructor & Destructor Documentation

jafar::qdisplay::ImageView::ImageView ( const jafar::image::Image img)

Create an ImageView to use with a Viewer to display a jafar::image::Image in the Viewer.

Parameters:
imgthe jafar image to display
jafar::qdisplay::ImageView::ImageView ( const std::string &  filename)

Create an ImageView from a file.

Parameters:
filenamePath to an image file. its format should be readable by jafar::image module (OpenCV)

Member Function Documentation

Parameters:
lia Line to display on the scene.
Parameters:
sia Shape to display on the scene.
Parameters:
lithe Line to remove from this ImageView.
Parameters:
sithe shape to remove from this ImageView

Define the event handler for this view.

Parameters:
ehthe event handler Note: event handler can be shared between views, so it won't be deleted when this view is deleted

Definition at line 75 of file ImageView.hpp.

Parameters:
imga jafar image to display

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1
LAAS-CNRS