Computer Assisted Medical Intervention Tool Kit  version 5.2
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-2024 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 
33 namespace camitk {
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 
118 
121 
123  bool imaging2D;
124 
126  bool imaging3D;
127 
128 };
129 
130 }
131 #endif //IMAGEACQUISITION_COMPONENT_EXTENSION_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:303
This class describes what is a generic Image Acquisition Component which derives from Component.
Definition: ImageAcquisitionComponent.h: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
virtual void initImager()=0
pure virtual method to define a way to initialize your acquisition device
ImageComponent * workingImageComponent3D
A pointer to the working 3D ImageComponent, either create by user or automatically created by ImageAc...
Definition: ImageAcquisitionComponent.h:120
~ImageAcquisitionComponent() override=default
destructor
bool imaging2D
A boolean to know is the ImageAcquisitionComponent is imaging in 2D.
Definition: ImageAcquisitionComponent.h:123
The manager of the Image Volume data.
Definition: ImageComponent.h:77
Definition: Action.cpp:36