SMIL  0.9.1
ImageViewerWidget Class Reference
+ Inheritance diagram for ImageViewerWidget:
+ Collaboration diagram for ImageViewerWidget:

Public Slots

void load (const QString fileName)
void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
virtual void overlayDataChanged (bool triggerEvents=true)
void saveAs (const char *fileName=NULL)
void scale (double factor, bool absolute=true)
void setCursorMode (const int &mode)
void setDrawPenColor (const QColor &color)
void showContextMenu (const QPoint &pos)
void showHelp ()
void sliderChanged (int newVal)
void updateIcon ()
void zoomIn ()
void zoomOut ()


void onDataChanged ()
void onKeyPressEvent (QKeyEvent *)
void onRescaled (double scaleFactor)
void onScrollBarPositionChanged (int dx, int dy)

Public Member Functions

virtual void clearOverlay ()
virtual void createOverlayImage ()
void dataChanged ()
virtual void deleteOverlayImage ()
virtual void displayHistogram (bool=false)
virtual void displayMagnifyView (size_t, size_t, size_t)
virtual void displayMagnifyView ()
virtual void displayPixelValue (size_t, size_t, size_t)
virtual void displayProfile (bool=false)
 ImageViewerWidget (QWidget *parent=0)
virtual void keyPressEvent (QKeyEvent *)
virtual void leaveEvent (QEvent *event)
void linkViewer (ImageViewerWidget *viewer)
virtual void mouseMoveEvent (QMouseEvent *event)
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void redrawImage ()
virtual void setCurSlice (int)
void setImageSize (int w, int h, int d=1)
virtual void setLabelImage (bool val)
void setName (QString name)
void unlinkViewer (ImageViewerWidget *viewer)
virtual void wheelEvent (QWheelEvent *)

Public Attributes

bool autoRange
bool drawLabelized
QImage::Format imageFormat
QImage * qImage
QVector< QImage * > qOverlayImage
QStatusBar * statusBar

Protected Types

enum  cursorMode { cursorMove, cursorDraw, cursorDrawLine, cursorDrawBox }

Protected Slots

void setScrollBarPosition (int x, int y)

Protected Member Functions

void createActions ()
void displayHint (QString msg, int timerVal=1000)
void dragEnterEvent (QDragEnterEvent *event)
void dragMoveEvent (QDragMoveEvent *de)
virtual void dropEvent (QDropEvent *)
void initColorTables ()
void scrollContentsBy (int dx, int dy)
void updatePixmaps (QImage *image, QList< QGraphicsPixmapItem *> *pixmaps)
void updateTitle ()

Protected Attributes

QMap< QString, QAction * > actionMap
QVector< QRgb > baseColorTable
int cursorMode
bool drawing
QPen drawPen
QLabel * hintLabel
QTimer * hintTimer
QTimer * iconTimer
QList< QGraphicsPixmapItem * > imagePixmaps
size_t imDepth
size_t imHeight
size_t imWidth
QVector< QRgb > labelColorTable
int lastPixX
int lastPixY
int lastPixZ
QGridLayout * layout
QGraphicsLineItem * line
QList< ImageViewerWidget * > linkedWidgets
bool magnActivated
QString name
QVector< QRgb > overlayColorTable
QList< QGraphicsPixmapItem * > overlayPixmaps
QVector< QRgb > rainbowColorTable
double scaleFactor
QSlider * slider
QLabel * valueLabel
bool valueLblActivated

Private Slots

void sceneMouseMoveEvent (QGraphicsSceneMouseEvent *event)
void sceneMousePressEvent (QGraphicsSceneMouseEvent *event)
void sceneMouseReleaseEvent (QGraphicsSceneMouseEvent *event)

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