MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkToFScreenshotMaker.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found 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
32
class
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
38
public
:
39
40
static
const
std::string
VIEW_ID
;
41
42
QmitkToFScreenshotMaker
();
43
~QmitkToFScreenshotMaker
()
override
;
44
45
void
SetFocus
()
override
;
46
47
void
CreateQtPartControl
(QWidget *parent)
override
;
48
49
50
protected
slots:
51
55
void
OnMakeScreenshotClicked
();
56
60
void
OnSelectCamera
();
61
62
protected
:
63
64
Ui::QmitkToFScreenshotMakerControls
m_Controls
;
65
66
private
:
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
QmitkToFScreenshotMaker Select a ToF image source in the GUI to make a screenshot of the provided dat...
Definition
QmitkToFScreenshotMaker.h:33
QmitkToFScreenshotMaker::~QmitkToFScreenshotMaker
~QmitkToFScreenshotMaker() override
Definition
QmitkToFScreenshotMaker.cpp:34
QmitkToFScreenshotMaker::m_Controls
Ui::QmitkToFScreenshotMakerControls m_Controls
Definition
QmitkToFScreenshotMaker.h:64
QmitkToFScreenshotMaker::CreateQtPartControl
void CreateQtPartControl(QWidget *parent) override
Definition
QmitkToFScreenshotMaker.cpp:42
QmitkToFScreenshotMaker::OnMakeScreenshotClicked
void OnMakeScreenshotClicked()
OnMakeScreenshotClicked Slot called when the "Make screenshot" button is pressed.
Definition
QmitkToFScreenshotMaker.cpp:112
QmitkToFScreenshotMaker::OnSelectCamera
void OnSelectCamera()
OnSelectCamera Slot called to update the GUI according to the selected image source.
Definition
QmitkToFScreenshotMaker.cpp:60
QmitkToFScreenshotMaker::VIEW_ID
static const std::string VIEW_ID
Definition
QmitkToFScreenshotMaker.h:40
QmitkToFScreenshotMaker::QmitkToFScreenshotMaker
QmitkToFScreenshotMaker()
Definition
QmitkToFScreenshotMaker.cpp:28
QmitkToFScreenshotMaker::SetFocus
void SetFocus() override
Definition
QmitkToFScreenshotMaker.cpp:38
mitk::ToFCameraDevice
Virtual interface and base class for all Time-of-Flight devices.
Definition
mitkToFCameraDevice.h:38
Plugins
org.mitk.gui.qt.tofutil
src
internal
QmitkToFScreenshotMaker.h
Generated by
1.12.0