VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCoreQt
DtContourizationWidget.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2011 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
/*****************************************************************************
6
* $RCSfile: DtContourizationWidget.h,v $ $Revision: 1.8 $ $State: Exp $
7
*****************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCoreQt/vrvCoreQt.h
>
16
17
#include <
vrvCoreQt/DtContourizationInterface.h
>
18
19
#include <QtGui/QWidget>
20
21
class
QFrame;
22
class
QCheckBox
;
23
class
QLineEdit;
24
class
QLabel
;
25
class
QPushButton;
26
class
QDoubleSpinBox;
27
class
QVBoxLayout;
28
class
QSpacerItem;
29
class
QGroupBox;
30
31
namespace
makVrv
32
{
33
34
class
DtDe;
35
class
DtUnicode;
36
39
class
DT_DLL_VRVCOREQT
DtContourizationWidget
40
:
public
QWidget
41
,
public
DtContourizationInterface
42
{ Q_OBJECT;
43
public
:
44
46
DtContourizationWidget
(
QWidget
* parent,
47
Qt::WindowFlags f = Qt::Widget );
48
50
virtual
~
DtContourizationWidget
();
51
55
58
virtual
void
setCurrentInterval(
double
interval );
59
62
virtual
void
setIntervalUnits(
const
DtUnicode
& units );
63
66
virtual
void
setIntervalDecimals(
int
decimals );
67
70
virtual
void
setCurrentThickness(
double
thickness );
71
74
virtual
void
setIntermediateLines(
bool
enabled );
75
78
virtual
void
setContoursEnabled(
bool
enabled );
79
81
85
87
virtual
double
currentInterval();
88
90
virtual
double
currentThickness();
91
93
virtual
bool
intermediateLines();
94
96
virtual
bool
contoursEnabled();
97
99
100
protected
slots:
101
105
107
virtual
void
onIntervalChanged(
double
value );
108
110
virtual
void
onThicknessChanged(
double
value );
111
113
virtual
void
onContoursEnabledChanged(
int
enabled );
114
116
virtual
void
onIntermediateLinesChanged(
int
enabled );
117
119
120
protected
:
121
124
void
setupGui();
125
126
protected
:
127
128
QVBoxLayout*
myGroupLayout
;
129
QGroupBox*
myGroupBox
;
130
QVBoxLayout*
myMainLayout
;
131
QCheckBox
*
myEnableContourLinesCheckBox
;
132
QFrame*
line
;
133
QLabel
*
myIntervalLabel
;
134
QDoubleSpinBox*
myIntervalSpinBox
;
135
QLabel
*
myThicknessLabel
;
136
QDoubleSpinBox*
myThicknessSpinBox
;
137
QSpacerItem*
spacerItem
;
138
QCheckBox
*
myIntermediateLinesCheckBox
;
139
QSpacerItem*
spacerItem1
;
140
141
};
142
143
}
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)