Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
defaulttool.h
Go to the documentation of this file.
1 #ifndef DEFAULTTOOL_H
2 #define DEFAULTTOOL_H
3 
4 #include "tool.h"
5 
6 class DefaultTool : public Tool {
7 
8 public:
10  enum { Type = 0 };
11  static const int supportedFormats = ( ( int ) Modality::BW2D | ( int ) Modality::BW3D | ( int ) Modality::RGB2D );
12 
13  /* Tool interface */
14 public:
15  int type( );
16 
17  void mouseReleased( QPointF pt, Qt::MouseButtons buttons, size_t axis );
18  void mouseClicked( QPointF pt, Qt::MouseButtons buttons, size_t axis );
19  void mouseDragged( QPointF pt, Qt::MouseButtons buttons, size_t axis );
20  void mouseMoved( QPointF pt, size_t axis );
21  void sliceChanged( size_t axis, size_t slice );
22  void updateOverlay( QPointF pt, size_t axis );
23 private:
32  void changeOtherSlices( QPointF posF, size_t view );
33 
34 };
35 
36 #endif /* DEFAULTTOOL_H */
void mouseMoved(QPointF pt, size_t axis)
Definition: defaulttool.cpp:38
GuiImage * guiImage
Definition: tool.h:13
Definition: tool.h:10
ImageViewer * viewer
Definition: tool.h:14
The GuiImage class is a bridge to the Bial::Image data structure to the QImage data structure...
Definition: guiimage.h:20
void mouseReleased(QPointF pt, Qt::MouseButtons buttons, size_t axis)
Definition: defaulttool.cpp:14
void sliceChanged(size_t axis, size_t slice)
Definition: defaulttool.cpp:86
void updateOverlay(QPointF pt, size_t axis)
Definition: defaulttool.cpp:63
DefaultTool(GuiImage *guiImage, ImageViewer *viewer)
Definition: defaulttool.cpp:6
static const int supportedFormats
Definition: defaulttool.h:11
void mouseClicked(QPointF pt, Qt::MouseButtons buttons, size_t axis)
Definition: defaulttool.cpp:22
void mouseDragged(QPointF pt, Qt::MouseButtons buttons, size_t axis)
Definition: defaulttool.cpp:30