Computer Assited Medical Intervention Tool Kit  version 5.0
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-2021 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 IMAGEACQUISITION_COMPONENT_H
27 #define IMAGEACQUISITION_COMPONENT_H
28 
29 // -- CamiTK Core stuff
30 #include <Component.h>
31 #include <ImageComponent.h>
32 
33 namespace camitk {
56 class CAMITK_API ImageAcquisitionComponent : public Component {
57 
58  Q_OBJECT
59 
60 public:
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 
95  void setImageComponent2D(ImageComponent* input);
96 
98  ImageComponent* getImageComponent2D();
99 
103  void setImageComponent3D(ImageComponent* input);
104 
106  ImageComponent* getImageComponent3D();
107 
109  bool isImaging2D();
110 
112  bool isImaging3D();
113 
114 protected:
115 
117  ImageComponent* workingImageComponent2D;
118 
120  ImageComponent* workingImageComponent3D;
121 
123  bool imaging2D;
124 
126  bool imaging3D;
127 
128 };
129 
130 }
131 #endif //IMAGEACQUISITION_COMPONENT_EXTENSION_H
camitk::ImageAcquisitionComponent::startImaging2D
virtual void startImaging2D()
virtual method to define a way to start the 2D acquisition done with the device (i....
Definition: ImageAcquisitionComponent.cpp:104
camitk::ImageComponent
The manager of the Image Volume data. An image volume data has no concrete 3D representation,...
Definition: ImageComponent.h:77
ImageAcquisitionComponent.h
camitk::ImageAcquisitionComponent::singleAcquisition3D
virtual void singleAcquisition3D()
virtual method to define a way to acquire one 3D ImageComponent by your device
Definition: ImageAcquisitionComponent.cpp:119
camitk::ImageAcquisitionComponent::singleAcquisition2D
virtual void singleAcquisition2D()
virtual method to define a way to acquire one 2D ImageComponent by your device
Definition: ImageAcquisitionComponent.cpp:116
camitk::ImageAcquisitionComponent::stopImaging2D
virtual void stopImaging2D()
virtual method to define a way to stop the 2D continuous acquisition performed by your device
Definition: ImageAcquisitionComponent.cpp:107
Component
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
camitk::ImageAcquisitionComponent::ImageAcquisitionComponent
ImageAcquisitionComponent(Component *component, const QString &name)
constructor
Definition: ImageAcquisitionComponent.cpp:55
camitk::ImageAcquisitionComponent::startImaging3D
virtual void startImaging3D()
virtual method to define a way to start the 3D continuous acquisition performed by your device
Definition: ImageAcquisitionComponent.cpp:110
ImageComponent.h
camitk::ImageAcquisitionComponent::stopImaging3D
virtual void stopImaging3D()
virtual method to define a way to stop the 3D continuous acquisition performed by your device
Definition: ImageAcquisitionComponent.cpp:113
CAMITK_API
#define CAMITK_API
Definition: CamiTKAPI.h:49
camitk
Definition: Action.cpp:35