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
85 Slice::SliceOrientation getSliceOrientation();
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
This Component manages sub-component of the image component seen as a single orientation only (axial ...
Definition SingleImageComponent.h:62
~SingleImageComponent() override=default
Destructor.
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