SMIL  1.0.4
QVtkViewer< T > Class Template Reference

QVtk image viewer. More...

Detailed Description

template<class T>
class smil::QVtkViewer< T >

QVtk image viewer.

Requires the Qt, Vtk and QVtk libraries.

Keyboard shortcuts:

#include <DQVtkViewer.hpp>

+ Inheritance diagram for QVtkViewer< T >:
+ Collaboration diagram for QVtkViewer< T >:

Public Types

enum  RepresentationType { NONE , COMPOSITE , MIP }
 
typedef ImageViewer< T > parentClass
 
- Public Types inherited from ImageViewer< T >
typedef BaseImageViewer parentClass
 
- Public Types inherited from BaseImageViewer
typedef BaseObject parentClass
 
- Public Types inherited from BaseObject
typedef void parentClass
 
typedef void(BaseObject::* voidMemberFunc) ()
 

Public Member Functions

 QVtkViewer (Image< T > &im)
 
virtual void setImage (Image< T > &im)
 
virtual void setAutoRange (bool on)
 
virtual void onSizeChanged (size_t, size_t, size_t)
 
virtual void drawImage ()
 
virtual void hide ()
 
virtual void show ()
 
virtual void show (Image< T > &im)
 
virtual void showLabel ()
 
virtual bool isVisible ()
 
virtual void setName (const char *_name)
 
virtual void drawOverlay (const Image< T > &)
 
virtual void clearOverlay ()
 
virtual void setCurSlice (int)
 
void setRepresentationType (RepresentationType type)
 
void showAxes ()
 
void hideAxes ()
 
void setInterpolationTypeToLinear ()
 
void setInterpolationTypeToNearest ()
 
- Public Member Functions inherited from ImageViewer< T >
 ImageViewer (Image< T > &im)
 
virtual Image< T > * getImage ()
 
virtual void disconnect ()
 
virtual void update ()
 
virtual RES_T getOverlay (Image< T > &)
 
virtual void setLookup (const map< UINT8, RGB > &)
 Set the color table as a 8bits RGB map (keys between 0 and 255)
 
virtual void resetLookup ()
 
- Public Member Functions inherited from BaseImageViewer
 BaseImageViewer (const char *_className="BaseImageViewer")
 
virtual void saveSnapshot (const char *)
 
- Public Member Functions inherited from BaseObject
 BaseObject (const char *_className, bool _register=true)
 
 BaseObject (const BaseObject &rhs, bool _register=true)
 
BaseObjectoperator= (const BaseObject &rhs)
 
CoregetCoreInstance ()
 
virtual const char * getInfoString (const char *="") const
 
virtual void printSelf (ostream &=std::cout, string="") const
 
virtual const char * getClassName () const
 
virtual const char * getName () const
 
virtual size_t getAllocatedSize () const
 

Protected Member Functions

void initLookup (int typeMax)
 
- Protected Member Functions inherited from QVtkViewerWidget
void initLookup (int typeMax)
 
void setRepresentationType (RepresentationType type)
 
void showAxes ()
 
void showNormal ()
 
void showLabel ()
 
void hideAxes ()
 
void setInterpolationTypeToLinear ()
 
void setInterpolationTypeToNearest ()
 
virtual void setLabelImage (bool val)
 
 QVtkViewerWidget (QWidget *parent=0)
 
virtual void update ()
 
- Protected Member Functions inherited from ImageViewerWidget
void initColorTables ()
 
void updatePixmaps (QImage *image, QList< QGraphicsPixmapItem * > *pixmaps)
 
void createActions ()
 
void updateTitle ()
 
void displayHint (QString msg, int timerVal=1000)
 
virtual void dropEvent (QDropEvent *)
 
void dragMoveEvent (QDragMoveEvent *de)
 
void dragEnterEvent (QDragEnterEvent *event)
 
void scrollContentsBy (int dx, int dy)
 
 ImageViewerWidget (QWidget *parent=0)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *)
 
virtual void keyPressEvent (QKeyEvent *)
 
virtual void leaveEvent (QEvent *event)
 
virtual void displayPixelValue (size_t, size_t, size_t)
 
virtual void displayMagnifyView (size_t, size_t, size_t)
 
virtual void displayMagnifyView ()
 
virtual void redrawImage ()
 
virtual void createOverlayImage ()
 
virtual void deleteOverlayImage ()
 
void setName (QString name)
 
void setImageSize (int w, int h, int d=1)
 
void dataChanged ()
 
virtual void displayHistogram (bool=false)
 
virtual void displayProfile (bool=false)
 
void linkViewer (ImageViewerWidget *viewer)
 
void unlinkViewer (ImageViewerWidget *viewer)
 

Additional Inherited Members

- Signals inherited from ImageViewerWidget
void onRescaled (double scaleFactor)
 
void onDataChanged ()
 
void onKeyPressEvent (QKeyEvent *)
 
void onScrollBarPositionChanged (int dx, int dy)
 
- Public Attributes inherited from ImageViewer< T >
Signal onOverlayModified
 
- Public Attributes inherited from BaseImageViewer
MemberFunctionSlot< BaseImageViewerupdateSlot
 
- Public Attributes inherited from BaseObject
bool triggerEvents
 
- Protected Types inherited from QVtkViewerWidget
enum  RepresentationType { NONE , COMPOSITE , MIP }
 
typedef ImageViewerWidget parentClass
 
- Protected Types inherited from ImageViewerWidget
enum  cursorMode { cursorMove , cursorDraw , cursorDrawLine , cursorDrawBox }
 
- Protected Slots inherited from QVtkViewerWidget
void showContextMenu (vtkObject *, unsigned long, void *, void *, vtkCommand *command)
 
void keyPressed (vtkObject *, unsigned long, void *, void *, vtkCommand *command)
 
- Protected Slots inherited from ImageViewerWidget
void setScrollBarPosition (int x, int y)
 
void load (const QString fileName)
 
void zoomIn ()
 
void zoomOut ()
 
void scale (double factor, bool absolute=true)
 
void sliderChanged (int newVal)
 
virtual void overlayDataChanged (bool triggerEvents=true)
 
void updateIcon ()
 
void showContextMenu (const QPoint &pos)
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
void setCursorMode (const int &mode)
 
void setDrawPenColor (const QColor &color)
 
void showHelp ()
 
void saveAs (const char *fileName=NULL)
 
- Protected Attributes inherited from ImageViewer< T >
Image< T > * image
 
bool labelImage
 
- Protected Attributes inherited from BaseImageViewer
bool labelImage
 
- Protected Attributes inherited from BaseObject
bool registered
 
string className
 
string name
 
- Protected Attributes inherited from QVtkViewerWidget
vtkRenderer * renderer
 
vtkRenderWindow * renderWindow
 
vtkRenderWindowInteractor * interactor
 
vtkCamera * camera
 
vtkImageImport * imageImport
 
RepresentationType representationType
 
vtkVolumeRayCastFunction * volumeRayCastFunction
 
vtkVolumeRayCastMapper * volumeRayCastMapper
 
vtkVolume * volume
 
vtkVolumeProperty * volumeProperty
 
vtkPiecewiseFunction * opacityTransfertFunction
 
vtkPiecewiseFunction * colorOpacityTransfertFunction
 
vtkDiscretizableColorTransferFunction * colorTransfertFunction
 
vtkCubeSource * cube
 
vtkOutlineFilter * outline
 
vtkPolyDataMapper * outlineMapper
 
vtkActor * outlineActor
 
vtkAxesActor * axesActor
 
vtkOrientationMarkerWidget * orientationMarker
 
vtkEventQtSlotConnect * vtkQtEventConnect
 
QVTKWidget * qvtkWidget
 
- Protected Attributes inherited from ImageViewerWidget
QGridLayout * layout
 
QVector< QRgb > baseColorTable
 
QVector< QRgb > rainbowColorTable
 
QVector< QRgb > labelColorTable
 
QVector< QRgb > overlayColorTable
 
double scaleFactor
 
QImageGraphicsSceneimScene
 
QList< QGraphicsPixmapItem * > imagePixmaps
 
QList< QGraphicsPixmapItem * > overlayPixmaps
 
QLabel * valueLabel
 
QLabel * hintLabel
 
QTimer * hintTimer
 
QTimer * iconTimer
 
MagnifyViewmagnView
 
size_t imWidth
 
size_t imHeight
 
size_t imDepth
 
int lastPixX
 
int lastPixY
 
int lastPixZ
 
bool magnActivated
 
bool valueLblActivated
 
QMap< QString, QAction * > actionMap
 
QString name
 
QSlider * slider
 
int cursorMode
 
QGraphicsLineItem * line
 
QList< ImageViewerWidget * > linkedWidgets
 
ColorPickercolorPicker
 
QPen drawPen
 
bool drawing
 
QStatusBar * statusBar
 
QImage * qImage
 
QVector< QImage * > qOverlayImage
 
QImage::Format imageFormat
 
bool drawLabelized
 
bool autoRange
 

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