Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
QmitkTransferFunctionGeneratorWidget.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 QmitkTransferFunctionGeneratorWidget_h
14
#define QmitkTransferFunctionGeneratorWidget_h
15
16
#include "
MitkQtWidgetsExtExports.h
"
17
#include "ui_QmitkTransferFunctionGeneratorWidget.h"
18
19
#include <
mitkCommon.h
>
20
21
#include <QWidget>
22
23
#include <
mitkDataNode.h
>
24
#include <
mitkTransferFunctionProperty.h
>
25
26
class
MITKQTWIDGETSEXT_EXPORT
QmitkTransferFunctionGeneratorWidget
:
public
QWidget,
27
public
Ui::QmitkTransferFunctionGeneratorWidget
28
{
29
Q_OBJECT
30
31
public
:
32
QmitkTransferFunctionGeneratorWidget
(QWidget *parent =
nullptr
, Qt::WindowFlags f = {});
33
~
QmitkTransferFunctionGeneratorWidget
()
override
;
34
35
void
SetDataNode(
mitk::DataNode
*node,
mitk::TimeStepType
timestep = 0);
36
37
int
AddPreset(
const
QString &presetName);
38
39
void
SetPresetsTabEnabled(
bool
enable);
40
void
SetThresholdTabEnabled(
bool
enable);
41
void
SetBellTabEnabled(
bool
enable);
42
43
public
slots:
44
45
void
OnSavePreset();
46
void
OnLoadPreset();
47
48
void
OnDeltaLevelWindow(
int
dx,
int
dy);
49
void
OnDeltaThreshold(
int
dx,
int
dy);
50
51
signals:
52
53
void
SignalTransferFunctionModeChanged(
int
);
54
void
SignalUpdateCanvas();
55
56
protected
slots:
57
58
void
OnPreset(
int
mode);
59
60
protected
:
61
mitk::TransferFunctionProperty::Pointer
tfpToChange
;
62
63
double
histoMinimum
;
64
double
histoMaximum
;
65
66
double
thPos
;
67
double
thDelta
;
68
69
double
deltaScale
;
70
double
deltaMax
;
71
double
deltaMin
;
72
73
const
mitk::Image::HistogramType
*
histoGramm
;
74
75
QString
presetFileName
;
76
77
double
ScaleDelta(
int
d)
const
;
78
};
79
80
#endif
QmitkTransferFunctionGeneratorWidget::histoMaximum
double histoMaximum
Definition:
QmitkTransferFunctionGeneratorWidget.h:64
QmitkTransferFunctionGeneratorWidget
Definition:
QmitkTransferFunctionGeneratorWidget.h:26
mitk::Image::HistogramType
itk::Statistics::Histogram< double > HistogramType
Definition:
mitkImage.h:89
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition:
MitkQtWidgetsExtExports.h:15
QmitkTransferFunctionGeneratorWidget::thDelta
double thDelta
Definition:
QmitkTransferFunctionGeneratorWidget.h:67
QmitkTransferFunctionGeneratorWidget::deltaMax
double deltaMax
Definition:
QmitkTransferFunctionGeneratorWidget.h:70
itk::SmartPointer< Self >
QmitkTransferFunctionGeneratorWidget::histoGramm
const mitk::Image::HistogramType * histoGramm
Definition:
QmitkTransferFunctionGeneratorWidget.h:73
QmitkTransferFunctionGeneratorWidget::deltaMin
double deltaMin
Definition:
QmitkTransferFunctionGeneratorWidget.h:71
QmitkTransferFunctionGeneratorWidget::histoMinimum
double histoMinimum
Definition:
QmitkTransferFunctionGeneratorWidget.h:63
mitkTransferFunctionProperty.h
mitkCommon.h
QmitkTransferFunctionGeneratorWidget::thPos
double thPos
Definition:
QmitkTransferFunctionGeneratorWidget.h:66
QmitkTransferFunctionGeneratorWidget::tfpToChange
mitk::TransferFunctionProperty::Pointer tfpToChange
Definition:
QmitkTransferFunctionGeneratorWidget.h:61
mitkDataNode.h
mitk::TimeStepType
std::size_t TimeStepType
Definition:
mitkTimeGeometry.h:27
QmitkTransferFunctionGeneratorWidget::deltaScale
double deltaScale
Definition:
QmitkTransferFunctionGeneratorWidget.h:69
MitkQtWidgetsExtExports.h
QmitkTransferFunctionGeneratorWidget::presetFileName
QString presetFileName
Definition:
QmitkTransferFunctionGeneratorWidget.h:75
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:63
src
MITK
Modules
QtWidgetsExt
include
QmitkTransferFunctionGeneratorWidget.h
Generated on Mon Jun 17 2024 12:43:31 for Medical Imaging Interaction Toolkit by
1.8.17