MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkToFScreenshotMaker.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef QmitkToFScreenshotMaker_h
14#define QmitkToFScreenshotMaker_h
15
16
17#include <ui_QmitkToFScreenshotMakerControls.h>
18#include <QmitkAbstractView.h>
19#include <QStringList>
20#include <ui_QmitkToFUtilViewControls.h>
21
22
32class QmitkToFScreenshotMaker : public QmitkAbstractView
33{
34 // this is needed for all Qt objects that should have a Qt meta-object
35 // (everything that derives from QObject and wants to have signal/slots)
36 Q_OBJECT
37
38public:
39
40 static const std::string VIEW_ID;
41
43 ~QmitkToFScreenshotMaker() override;
44
45 void SetFocus() override;
46
47 void CreateQtPartControl(QWidget *parent) override;
48
49
50protected slots:
51
56
60 void OnSelectCamera();
61
62protected:
63
64 Ui::QmitkToFScreenshotMakerControls m_Controls;
65
66private:
67
77 void UpdateGUIElements(mitk::ToFCameraDevice* device, const char *ToFImageType, QCheckBox *saveCheckBox,
78 QComboBox *saveTypeComboBox, QStringList fileExentions, const char *preferredFormat);
79
88 void SaveImage(mitk::Image::Pointer image, bool saveImage, std::string path, std::string name, std::string extension);
89
93 int m_SavingCounter;
94};
95
96#endif
QmitkToFScreenshotMaker Select a ToF image source in the GUI to make a screenshot of the provided dat...
Ui::QmitkToFScreenshotMakerControls m_Controls
void CreateQtPartControl(QWidget *parent) override
void OnMakeScreenshotClicked()
OnMakeScreenshotClicked Slot called when the "Make screenshot" button is pressed.
void OnSelectCamera()
OnSelectCamera Slot called to update the GUI according to the selected image source.
static const std::string VIEW_ID
Virtual interface and base class for all Time-of-Flight devices.