SMIL  0.9.1
QtImageViewer< T > Class Template Reference

Qt image viewer. More...

#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

virtual void clearOverlay ()
 
template<>
void drawOverlay (const Image< RGB > &)
 
virtual void drawOverlay (const Image< T > &im)
 
virtual RES_T getOverlay (Image< T > &img)
 
virtual void hide ()
 
virtual bool isVisible ()
 
 QtImageViewer (Image< T > &im)
 
virtual void redrawImage ()
 
virtual void resetLookup ()
 
virtual void saveSnapshot (const char *fileName)
 
virtual void setCurSlice (int)
 
template<>
void setImage (Image< RGB > &im)
 
virtual void setImage (Image< T > &im)
 
virtual void setLabelImage (bool val)
 
virtual void setLookup (const map< UINT8, RGB > &lut)
 Set the color table as a 8bits RGB map (keys between 0 and 255)
 
virtual void setName (const char *_name)
 
virtual void show ()
 
virtual void showLabel ()
 
virtual void update ()
 
void updateIcon ()
 
- Public Member Functions inherited from ImageViewer< T >
virtual void disconnect ()
 
virtual Image< T > * getImage ()
 
 ImageViewer (Image< T > &im)
 
- 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)
 
virtual size_t getAllocatedSize () const
 
virtual const char * getClassName () const
 
CoregetCoreInstance ()
 
virtual const char * getInfoString (const char *="") const
 
virtual const char * getName () const
 
BaseObjectoperator= (const BaseObject &rhs)
 
virtual void printSelf (ostream &=std::cout, string="") const
 

Protected Member Functions

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

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
 
- Protected Attributes inherited from ImageViewer< T >
Image< T > * image
 
bool labelImage
 
- Protected Attributes inherited from BaseImageViewer
bool labelImage
 
- Protected Attributes inherited from BaseObject
string className
 
string name
 
bool registered
 

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/diable 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)

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