VR-Forces 4.7 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
simulationObjectEditorImpl
damageTableConfigurationDialog.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2018 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include "
simulationObjectEditorImpl/simulationObjectEditorImplDefines.h
"
12
#include <vlutil/vlString.h>
13
#include <
vrvUtil/DtVirtualBaseClass.h
>
14
15
#include <QtWidgets/QDialog>
16
17
class
QHBoxLayout;
18
class
QVBoxLayout;
19
class
QGridLayout;
20
class
QPushButton
;
21
class
QLabel
;
22
class
QLineEdit
;
23
class
QListWidget;
24
class
QRadioButton;
25
class
QDoubleValidator;
26
class
DtDamageProbabilityTable
;
27
class
DtDmgSurfaceEntry
;
28
class
DtDmgAngleOfIncidenceCalcTable
;
29
32
class
DT_DLL_simulationObjectEditorimpl
DtDamageTableConfigurationDialog
:
public
QDialog
33
{
34
Q_OBJECT
35
36
public
:
37
DtDamageTableConfigurationDialog
(
makVrv::DtDe
& de, QWidget* parent,
const
Qt::WindowFlags& flags = Qt::Tool);
38
virtual
~
DtDamageTableConfigurationDialog
();
39
41
virtual
DtDamageProbabilityTable
* damageTable()
const
;
42
43
virtual
void
init
(
const
DtString
& selectedPower,
bool
isHumanDamage);
44
45
virtual
void
setPower(
const
DtString
&);
46
47
virtual
DtString
selectedPower()
const
;
48
49
protected
:
50
virtual
DtDmgSurfaceEntry
* createDamageLookupSurface(
const
DtString
&)
const
;
51
virtual
DtDmgSurfaceEntry
* createDamageCalcSurface(
const
DtString
&)
const
;
52
virtual
void
addCalcKillType(
DtDmgAngleOfIncidenceCalcTable
*,
const
DtString
&,
QLineEdit
*)
const
;
53
54
protected
slots:
55
virtual
void
updateOKButton();
56
virtual
void
functionTypeChanged();
57
virtual
void
onPowerSelected();
58
59
public
:
60
QVBoxLayout*
myMainLayout
;
61
QHBoxLayout*
myButtonLayout
;
62
QPushButton
*
myOKButton
;
63
QPushButton
*
myCancelButton
;
64
65
QLabel
*
myPowersLabel
;
66
QListWidget*
myPowers
;
67
68
QRadioButton*
myRangeListCaclulation
;
69
QRadioButton*
myRangeCoefficientCalculation
;
70
71
QGridLayout*
myDataLayout
;
72
QLabel
*
myLargestPowerLabel
;
73
QLineEdit
*
myLargestPower
;
74
75
QLabel
*
myCatastrophicKillLabel
;
76
QLineEdit
*
myCatastrophicKill
;
77
QLabel
*
myFirepowerKillLabel
;
78
QLineEdit
*
myFirepowerKill
;
79
QLabel
*
myMobilityKillLabel
;
80
QLineEdit
*
myMobilityKill
;
81
82
QDoubleValidator*
myPowerValidator
;
83
QDoubleValidator*
myPercentValidator
;
84
85
protected
:
86
makVrv::DtDe
&
myDe
;
87
DtString
mySelectedPower
;
88
bool
myIsHumanDamage
;
89
};
90
92
class
DT_DLL_simulationObjectEditorimpl
DtDamageTableConfigurationDialogCreator
:
public
makVrv::DtVirtualBaseClass
93
{
94
public
:
96
DtDamageTableConfigurationDialogCreator
(
makVrv::DtDe
&);
97
99
virtual
~
DtDamageTableConfigurationDialogCreator
();
100
102
static
DtDamageTableConfigurationDialogCreator
& instance(
makVrv::DtDe
&);
103
105
static
void
registerInstance(
makVrv::DtDe
&,
DtDamageTableConfigurationDialogCreator
*);
106
108
virtual
DtDamageTableConfigurationDialog
* create(QWidget* parent);
109
110
protected
:
111
makVrv::DtDe
&
myDe
;
112
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)