VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvCoreQt
DtAddTerrainPatchDialog.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtAddTerrainPatchDialog.h,v $ $Revision: 1.13 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtAddTerrainPatchDialog_H_
14
#define DtAddTerrainPatchDialog_H_
15
16
#include <
vrvCoreQt/vrvCoreQt.h
>
17
#include <
vrvCoreQt/DtAddTerrainPatchInterface.h
>
18
#include <
vrvCore/DtDe.h
>
19
#include <QtWidgets/QDialog>
20
21
class
QLineEdit
;
22
class
QLabel
;
23
class
QComboBox
;
24
class
QPushButton
;
25
class
QValidator
;
26
class
QCheckBox
;
27
28
namespace
makVrv
29
{
30
class
DtAddTerrainPatchLogic;
31
34
class
DT_DLL_VRVCOREQT
DtAddTerrainPatchDialog
35
:
public
QDialog
36
,
DtAddTerrainPatchInterface
37
{
38
39
Q_OBJECT;
40
41
public
:
42
44
DtAddTerrainPatchDialog
(
DtDe
& de, QWidget* parent, Qt::WindowFlags f = Qt::Tool);
45
47
virtual
~
DtAddTerrainPatchDialog
();
48
49
virtual
void
displayErrorMessage(
ErrorMessage
msg);
50
52
virtual
void
setFileLabel(
const
std::string& filePath);
53
55
virtual
void
setCoordSystemComboBox(
TerrainCoordinateSystemEnum
index);
56
58
virtual
void
setCoordSystemParams(
const
std::string& params);
59
61
void
virtual
setOkEnabled(
bool
flag);
62
63
public
slots:
64
67
bool
onBrowseClicked();
68
70
virtual
void
onOkClicked();
71
73
virtual
void
onCancelClicked();
74
76
virtual
void
onCoordSysComboChanged(
int
index);
77
79
virtual
void
onDdsFlipChanged(
int
checkState);
80
82
virtual
void
onAlphaToCoverageChanged(
int
currentIndex);
83
84
// This would be nice to have in a Qt utility lib someplace. It doesn't belong in the
85
// FileExtensionManager, because it really is building a *QT* file filter.
86
//
87
93
static
QString fileFilter(
DtDe
& de,
const
std::string& dialogType,
94
const
QString& allSpecifiedString,
bool
includeGlobal);
95
96
protected
:
97
99
void
setupGui();
100
101
protected
:
102
103
DtDe
&
myDe
;
104
DtAddTerrainPatchLogic
*
myLogic
;
105
QLineEdit
*
myFilenameLabel
;
106
QComboBox
*
myCoordSysCombo
;
107
QLineEdit
*
myCoordSysParamsEdit
;
108
QPushButton
*
myOkButton
;
109
QPushButton
*
myCancelButton
;
110
QValidator
*
myUtmValidator
;
111
QValidator
*
myFlatEarthValidator
;
112
QValidator
*
myOriginOffsetValidator
;
113
QValidator
*
myLambertValidator
;
114
QLabel
*
myParamInstructions
;
115
QCheckBox
*
myDdsFlipCheckbox
;
116
QComboBox
*
myAlphaToCoverageCombo
;
117
};
118
}
119
120
#endif
121
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)