Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#ifndef QMITKTRANSFERFUNCTIONGENERATORWIDGET_H
18
#define QMITKTRANSFERFUNCTIONGENERATORWIDGET_H
19
20
#include "
MitkQtWidgetsExtExports.h
"
21
#include "ui_QmitkTransferFunctionGeneratorWidget.h"
22
23
#include <
mitkCommon.h
>
24
25
#include <QWidget>
26
27
#include <
mitkDataNode.h
>
28
#include <
mitkTransferFunctionProperty.h
>
29
30
class
MITKQTWIDGETSEXT_EXPORT
QmitkTransferFunctionGeneratorWidget
:
public
QWidget,
31
public
Ui::QmitkTransferFunctionGeneratorWidget
32
{
33
Q_OBJECT
34
35
public
:
36
QmitkTransferFunctionGeneratorWidget
(QWidget *parent =
nullptr
, Qt::WindowFlags f =
nullptr
);
37
~
QmitkTransferFunctionGeneratorWidget
();
38
39
void
SetDataNode
(
mitk::DataNode
*node);
40
41
int
AddPreset(
const
QString &presetName);
42
43
void
SetPresetsTabEnabled(
bool
enable);
44
void
SetThresholdTabEnabled(
bool
enable);
45
void
SetBellTabEnabled(
bool
enable);
46
47
public
slots:
48
49
void
OnSavePreset();
50
void
OnLoadPreset();
51
52
void
OnDeltaLevelWindow(
int
dx,
int
dy);
53
void
OnDeltaThreshold(
int
dx,
int
dy);
54
55
signals:
56
57
void
SignalTransferFunctionModeChanged(
int
);
58
void
SignalUpdateCanvas();
59
60
protected
slots:
61
62
void
OnPreset(
int
mode);
63
64
protected
:
65
mitk::TransferFunctionProperty::Pointer
tfpToChange
;
66
67
double
histoMinimum
;
68
double
histoMaximum
;
69
70
double
thPos
;
71
double
thDelta
;
72
73
double
deltaScale
;
74
double
deltaMax
;
75
double
deltaMin
;
76
77
const
mitk::Image::HistogramType
*
histoGramm
;
78
79
QString
presetFileName
;
80
81
double
ScaleDelta(
int
d)
const
;
82
};
83
84
#endif
QmitkTransferFunctionGeneratorWidget::thPos
double thPos
Definition:
QmitkTransferFunctionGeneratorWidget.h:70
QmitkTransferFunctionGeneratorWidget::deltaMin
double deltaMin
Definition:
QmitkTransferFunctionGeneratorWidget.h:75
mitkCommon.h
QmitkTransferFunctionGeneratorWidget::histoGramm
const mitk::Image::HistogramType * histoGramm
Definition:
QmitkTransferFunctionGeneratorWidget.h:77
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition:
MitkQtWidgetsExtExports.h:15
mitk::Image::HistogramType
itk::Statistics::Histogram< double > HistogramType
Definition:
mitkImage.h:94
QmitkTransferFunctionGeneratorWidget::histoMaximum
double histoMaximum
Definition:
QmitkTransferFunctionGeneratorWidget.h:68
mitkDataNode.h
QmitkTransferFunctionGeneratorWidget::deltaScale
double deltaScale
Definition:
QmitkTransferFunctionGeneratorWidget.h:73
QmitkTransferFunctionGeneratorWidget::thDelta
double thDelta
Definition:
QmitkTransferFunctionGeneratorWidget.h:71
QmitkTransferFunctionGeneratorWidget::tfpToChange
mitk::TransferFunctionProperty::Pointer tfpToChange
Definition:
QmitkTransferFunctionGeneratorWidget.h:65
QmitkTransferFunctionGeneratorWidget::deltaMax
double deltaMax
Definition:
QmitkTransferFunctionGeneratorWidget.h:74
QmitkTransferFunctionGeneratorWidget::histoMinimum
double histoMinimum
Definition:
QmitkTransferFunctionGeneratorWidget.h:67
mitk::SetDataNode
virtual void SetDataNode(DataNode *dataNode) override
mitkTransferFunctionProperty.h
MitkQtWidgetsExtExports.h
QmitkTransferFunctionGeneratorWidget::presetFileName
QString presetFileName
Definition:
QmitkTransferFunctionGeneratorWidget.h:79
itk::SmartPointer< Self >
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:66
QmitkTransferFunctionGeneratorWidget
Definition:
QmitkTransferFunctionGeneratorWidget.h:30
git
MITK
Modules
QtWidgetsExt
include
QmitkTransferFunctionGeneratorWidget.h
Generated on Fri Feb 3 2017 20:52:15 for Medical Imaging Interaction Toolkit by
1.8.9.1