Computer Assisted Medical Intervention Tool Kit  version 6.0
Loading...
Searching...
No Matches
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-2025 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
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#include "Slice.h"
33
34// -- QT stuff classes
35class QMenu;
36
37// -- VTK stuff
38#include <vtkImageReslice.h>
39#include <vtkWindowLevelLookupTable.h>
40#include <vtkActor.h>
41
42// -- VTK stuff classes
43class vtkImageClip;
44
45namespace camitk {
63 Q_OBJECT
64
65public:
67 SingleImageComponent(Component* parentComponent, Slice::SliceOrientation, const QString& name, vtkSmartPointer<vtkWindowLevelLookupTable> lut);
68
70 ~SingleImageComponent() override = default;
71
73 virtual void pixelPicked(double, double, double) override;
74
76 virtual void setSelected(const bool, const bool) override;
77
79 virtual void singleImageSelected(const bool);
80
82 vtkSmartPointer<vtkActor> get3DCursor() override;
83
86
87protected:
89 virtual void initRepresentation() override final;
90
92 Slice::SliceOrientation sliceOrientation;
93
95 vtkSmartPointer<vtkWindowLevelLookupTable> lut;
96
99 vtkSmartPointer<vtkActor> cursorActor;
100};
101
102}
103
104#endif
#define CAMITK_API
Definition CamiTKAPI.h:66
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition sdk/libraries/core/component/Component.h:304
Component(QString file, QString name, Representation rep=NO_REPRESENTATION, bool createDefaultFrame=true)
Component constructor for top-level component (please use the other constructor for sub-level compone...
Definition sdk/libraries/core/component/Component.cpp:56
virtual void singleImageSelected(const bool)
new method used to call the Component set selected
Definition SingleImageComponent.cpp:76
Slice::SliceOrientation sliceOrientation
orientation of the single image component
Definition SingleImageComponent.h:92
virtual void setSelected(const bool, const bool) override
rewritten to synchronize everyone
Definition SingleImageComponent.cpp:66
vtkSmartPointer< vtkWindowLevelLookupTable > lut
Look up table used for this image.
Definition SingleImageComponent.h:95
vtkSmartPointer< vtkActor > get3DCursor() override
Returns a 3D cross cursor vtkActor to show the picked voxel.
Definition SingleImageComponent.cpp:116
SingleImageComponent(Component *parentComponent, Slice::SliceOrientation, const QString &name, vtkSmartPointer< vtkWindowLevelLookupTable > lut)
Constructor.
Definition SingleImageComponent.cpp:51
virtual void initRepresentation() override final
The concrete building of the Service (Slice in this case, for a 2D representation).
Definition SingleImageComponent.cpp:84
virtual void pixelPicked(double, double, double) override
rewritten from Component so that the Component can call the ManagerComponent
Definition SingleImageComponent.cpp:107
~SingleImageComponent() override=default
Destructor.
vtkSmartPointer< vtkActor > cursorActor
cursor (3D cross) actor of this slice to show the picked voxel location should be used by one viewer ...
Definition SingleImageComponent.h:99
Slice::SliceOrientation getSliceOrientation()
get the slice orientation
Definition SingleImageComponent.cpp:112
Display a slice (i.e.
Definition Slice.h:124
SliceOrientation
Common slices orientation: axial, sagittal, coronal axial_neuro.
Definition Slice.h:149
Definition Action.cpp:40