Computer Assited Medical Intervention Tool Kit  version 4.0
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-2016 Univ. Grenoble Alpes, 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 {
56  Q_OBJECT
57 
59  Q_PROPERTY(bool viewSliceIn3D READ getViewSliceIn3D WRITE setViewSliceIn3D)
60 
61 
62 public:
64  SingleImageComponent(Component *parentComponent, InterfaceBitMap::PossibleOrientation, const QString & name, vtkSmartPointer<vtkWindowLevelLookupTable> lut);
65 
67 
69  virtual void pixelPicked(double, double, double);
70 
72  virtual void setSelected(const bool, const bool );
73 
76  virtual void setTransformFromParent(vtkSmartPointer<vtkTransform>);
77 
79  void singleImageSelected(const bool);
80 
81  bool getViewSliceIn3D() const;
82  void setViewSliceIn3D(bool);
83 
84 
85 protected:
86 
89  Component * getMyParentComponent();
90 
92  virtual void initRepresentation();
93 
94 protected:
95  InterfaceBitMap::PossibleOrientation sliceOrientation;
96 
97  vtkSmartPointer<vtkWindowLevelLookupTable> lut;
98 
100  bool viewSliceIn3D;
101 
102 };
103 
105  return (camitk::Component *) myParentNode;
106 }
107 }
108 
109 #endif
This Component manages a set of images, destined to be seen in a single orientation only (axial OR sa...
Definition: SingleImageComponent.h:55
Definition: Action.cpp:40
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
#define CAMITK_API
Definition: CamiTKAPI.h:49
InterfaceBitMap::PossibleOrientation sliceOrientation
Definition: SingleImageComponent.h:95
vtkSmartPointer< vtkWindowLevelLookupTable > lut
Definition: SingleImageComponent.h:97
Component * getMyParentComponent()
this method simplify the code, and avoid to cast all the time the myParentNode to a ImageManager...
Definition: SingleImageComponent.h:104