Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SingleImageComponent.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2014 UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef SINGLEIMAGEVOLUMECOMPONENT_H
27 #define SINGLEIMAGEVOLUMECOMPONENT_H
28 
29 
30 // -- Core stuff
31 #include "Component.h"
32 
33 // -- QT stuff classes
34 class QMenu;
35 
36 // -- VTK stuff
37 #include <vtkImageReslice.h>
38 #include <vtkWindowLevelLookupTable.h>
39 #include <vtkImageChangeInformation.h>
40 
41 // -- VTK stuff classes
42 class vtkImageClip;
43 
44 namespace camitk
45 {
57 {
58  Q_OBJECT
59 
61  Q_PROPERTY(bool viewSliceIn3D READ getViewSliceIn3D WRITE setViewSliceIn3D)
62 
63 
64 public:
66  SingleImageComponent(Component *parentComponent, InterfaceBitMap::PossibleOrientation, const QString & name, vtkSmartPointer<vtkWindowLevelLookupTable> lut);
67 
69 
71  virtual void pixelPicked(double, double, double);
72 
74  virtual void setSelected(const bool, const bool );
75 
77  void singleImageSelected(const bool);
78 
79  bool getViewSliceIn3D() const;
80  void setViewSliceIn3D(bool);
81 
82 
83 protected:
84 
87  Component * getMyParentComponent();
88 
90  virtual void initRepresentation();
91 
92 protected:
94 
95  vtkSmartPointer<vtkWindowLevelLookupTable> lut;
96 
98  bool viewSliceIn3D;
99 
100 };
101 
103  return (camitk::Component *) myParentNode;
104 }
105 }
106 
107 #endif
InterfaceNode * myParentNode
who is the boss? The Component!
Definition: sdk/libraries/core/component/Component.h:721
This Component manages a set of images, destined to be seen in a single orientation only (axial OR sa...
Definition: SingleImageComponent.h:56
PossibleOrientation
Common slices orientation: axial, sagittal, coronal or anything else.
Definition: InterfaceBitMap.h:90
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:292
#define CAMITK_API
Definition: CamiTKAPI.h:49
InterfaceBitMap::PossibleOrientation sliceOrientation
Definition: SingleImageComponent.h:93
vtkSmartPointer< vtkWindowLevelLookupTable > lut
Definition: SingleImageComponent.h:95
Component * getMyParentComponent()
this method simplify the code, and avoid to cast all the time the myParentNode to a ImageManager...
Definition: SingleImageComponent.h:102