Computer Assisted Medical Intervention Tool Kit  version 5.1
HistoryComponent.h
Go to the documentation of this file.
1/*****************************************************************************
2 * $CAMITK_LICENCE_BEGIN$
3 *
4 * CamiTK - Computer Assisted Medical Intervention ToolKit
5 * (c) 2001-2023 Univ. Grenoble Alpes, CNRS, Grenoble INP, 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 HISTORYCOMPONENT_H
27#define HISTORYCOMPONENT_H
28
29// Qt stuffs
30#include <QString>
31
32// CamiTK stuffs
33#include <Component.h>
34
35namespace camitk {
36
37
60public:
73 enum Type {
76 OTHER
77 };
78
79private:
82
84 QString name;
85
88 Type type;
90
91public:
94
99 HistoryComponent(Component* component);
101
104
107 QString getName() const;
108
111 Type getType() const;
113
114
115};
116
117}; // namespace camitk
118
119#endif // HISTORYCOMPONENT_H
#define CAMITK_API
Definition: CamiTKAPI.h:49
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
HistoryComponent class describes the component information (name, type) stored in the history.
Definition: HistoryComponent.h:59
Type
The different Type (of representation) of the associated Component.
Definition: HistoryComponent.h:73
@ IMAGE_COMPONENT
this Component represents a volumic image and its subcomponents can be displayed as slices.
Definition: HistoryComponent.h:74
@ MESH_COMPONENT
this Component represent a 3D mesh, it has a 3D representation which can be displayed in the 3D viewe...
Definition: HistoryComponent.h:75
Definition: Action.cpp:35