-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefaulttool.h
More file actions
39 lines (30 loc) · 1.05 KB
/
defaulttool.h
File metadata and controls
39 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef DEFAULTTOOL_H
#define DEFAULTTOOL_H
#include "tool.h"
class DefaultTool : public Tool {
public:
DefaultTool( GuiImage *guiImage, ImageViewer *viewer );
enum{Type = 0};
static const int supportedFormats =
( ( int ) Modality::BW2D | ( int ) Modality::BW3D | ( int ) Modality::RGB2D );
/* Tool interface */
public:
int type( );
void mouseReleased( QPointF pt, Qt::MouseButtons buttons, size_t axis );
void mouseClicked( QPointF pt, Qt::MouseButtons buttons, size_t axis );
void mouseDragged( QPointF pt, Qt::MouseButtons buttons, size_t axis );
void mouseMoved( QPointF pt, size_t axis );
void sliceChanged( size_t axis, size_t slice );
private:
/**
*
* @brief changeOthersSlices is called when the mouse is clicked over
* an 3d image view (axial, sagittal and coronal).
* @param posF is the mouse pointer position in the scene.
* @param view is the number of the view's axis.
*
*/
void changeOtherSlices( QPointF posF, size_t view );
void updateOverlay( QPointF pt, size_t axis );
};
#endif /* DEFAULTTOOL_H */