Computer Assisted Medical Intervention Tool Kit  version 6.0
Loading...
Searching...
No Matches
ImageAcquisitionComponent.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 IMAGEACQUISITION_COMPONENT_H
27#define IMAGEACQUISITION_COMPONENT_H
28
29// -- CamiTK Core stuff
30#include "Component.h"
31#include "ImageComponent.h"
32
33namespace camitk {
55
57
58 Q_OBJECT
59
60public:
61
63 ImageAcquisitionComponent(Component* component, const QString& name);
64
66 ImageAcquisitionComponent(const QString& file, const QString& name);
67
69 ~ImageAcquisitionComponent() override = default;
70
72 virtual void initImager() = 0;
73
75 virtual void startImaging2D();
76
78 virtual void stopImaging2D();
79
81 virtual void startImaging3D();
82
84 virtual void stopImaging3D();
85
87 virtual void singleAcquisition2D();
88
90 virtual void singleAcquisition3D();
91
96
99
104
107
109 bool isImaging2D();
110
112 bool isImaging3D();
113
114protected:
115
118
121
124
127
128};
129
130}
131#endif //IMAGEACQUISITION_COMPONENT_EXTENSION_H
#define CAMITK_API
Definition CamiTKAPI.h:66
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
ImageComponent * workingImageComponent2D
A pointer to the working 2D ImageComponent, either create by user or automatically created by ImageAc...
Definition ImageAcquisitionComponent.h:117
bool imaging3D
A boolean to know is the ImageAcquisitionComponent is imaging in 3D.
Definition ImageAcquisitionComponent.h:126
bool isImaging3D()
Method to know if ImageAcquisitionComponent is currently imaging in 3D.
Definition ImageAcquisitionComponent.cpp:76
bool isImaging2D()
Method to know if ImageAcquisitionComponent is currently imaging in 2D.
Definition ImageAcquisitionComponent.cpp:71
void setImageComponent3D(ImageComponent *input)
Method to set the 3D ImageComponent used by ImageAcquisitionComponent param input the 3D ImageCompone...
Definition ImageAcquisitionComponent.cpp:61
virtual void initImager()=0
pure virtual method to define a way to initialize your acquisition device
virtual void startImaging3D()
virtual method to define a way to start the 3D continuous acquisition performed by your device
Definition ImageAcquisitionComponent.cpp:87
virtual void singleAcquisition2D()
virtual method to define a way to acquire one 2D ImageComponent by your device
Definition ImageAcquisitionComponent.cpp:93
virtual void startImaging2D()
virtual method to define a way to start the 2D acquisition done with the device (i....
Definition ImageAcquisitionComponent.cpp:81
ImageComponent * workingImageComponent3D
A pointer to the working 3D ImageComponent, either create by user or automatically created by ImageAc...
Definition ImageAcquisitionComponent.h:120
ImageAcquisitionComponent(Component *component, const QString &name)
constructor
Definition ImageAcquisitionComponent.cpp:32
~ImageAcquisitionComponent() override=default
destructor
ImageComponent * getImageComponent3D()
Method to get the 3D ImageComponent used by ImageAcquisitionComponent.
Definition ImageAcquisitionComponent.cpp:66
void setImageComponent2D(ImageComponent *input)
Method to set the 2D ImageComponent used by ImageAcquisitionComponent param input the 2D ImageCompone...
Definition ImageAcquisitionComponent.cpp:51
virtual void stopImaging3D()
virtual method to define a way to stop the 3D continuous acquisition performed by your device
Definition ImageAcquisitionComponent.cpp:90
virtual void singleAcquisition3D()
virtual method to define a way to acquire one 3D ImageComponent by your device
Definition ImageAcquisitionComponent.cpp:96
bool imaging2D
A boolean to know is the ImageAcquisitionComponent is imaging in 2D.
Definition ImageAcquisitionComponent.h:123
virtual void stopImaging2D()
virtual method to define a way to stop the 2D continuous acquisition performed by your device
Definition ImageAcquisitionComponent.cpp:84
ImageComponent * getImageComponent2D()
Method to get the 2D ImageComponent used by ImageAcquisitionComponent.
Definition ImageAcquisitionComponent.cpp:56
The manager of the Image Volume data.
Definition ImageComponent.h:76
Definition Action.cpp:40