SMIL  1.1.1-dev
QtImageViewer< T > Class Template Reference

Qt image viewer. More...

Detailed Description

template<class T>
class smil::QtImageViewer< T >

Qt image viewer.

Requires the Qt libraries. To use it, you must set the option USE_QT to ON.

Keyboard shortcuts:

  • Z/A Zoom In/Out
  • V Show/Hide the value of the pixel under the mouse cursor
  • M Show/Hide the magnifying window
  • R Enable/disable the auto-adjust range feature (allows to automatically adjust range for low contrasted images).
  • H SHow the histogram window (requires the Qwt library)
  • P SHow the plot window (requires the Qwt library)

#include <DQtImageViewer.hpp>

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

Public Types

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

 QtImageViewer (Image< T > &im)
virtual void setImage (Image< T > &im)
virtual void hide ()
virtual void show ()
virtual void showLabel ()
virtual bool isVisible ()
virtual void setName (const char *_name)
virtual void update ()
virtual void saveSnapshot (const char *fileName)
virtual void redrawImage ()
void updateIcon ()
virtual void drawOverlay (const Image< T > &im)
virtual void clearOverlay ()
virtual RES_T getOverlay (Image< T > &img)
virtual void setLookup (const map< UINT8, RGB > &lut)
 Set the color table as a 8bits RGB map (keys between 0 and 255)
virtual void resetLookup ()
virtual void setCurSlice (int)
virtual void setLabelImage (bool val)
virtual void displayHistogram (bool update=false)
virtual void displayProfile (bool update=false)
void setImage (Image< RGB > &im)
void drawOverlay (const Image< RGB > &)
void displayHistogram (bool)
void displayProfile (bool)
- Public Member Functions inherited from ImageViewer< T >
 ImageViewer (Image< T > &im)
virtual Image< T > * getImage ()
virtual void disconnect ()
- Public Member Functions inherited from BaseImageViewer
 BaseImageViewer (const char *_className="BaseImageViewer")
- 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

virtual void displayPixelValue (size_t x, size_t y, size_t z)
virtual void displayMagnifyView (size_t x, size_t y, size_t z)
virtual void drawImage ()
virtual void overlayDataChanged (bool triggerEvents=true)
virtual void dropEvent (QDropEvent *de)
void drawImage ()
void drawImage ()
void drawImage ()
void drawImage ()
void drawImage ()
void displayPixelValue (size_t x, size_t y, size_t z)
- Protected Member Functions inherited from ImageViewer< T >
virtual void onSizeChanged (size_t, size_t, size_t)

Protected Attributes

- 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

Additional Inherited Members

- Public Attributes inherited from ImageViewer< T >
Signal onOverlayModified
- Public Attributes inherited from BaseImageViewer
MemberFunctionSlot< BaseImageViewerupdateSlot
- Public Attributes inherited from BaseObject
bool triggerEvents

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