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
vrfobjparam
powerRangeListDeterminant.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2016 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrfobjparam/powerRangeDeterminant.h
>
12
#include <
vrfobjparam/prbStepFunction.h
>
13
#include <
vrfobjparam/vrfobjparamDefines.h
>
14
17
class
DT_DLL_vrfobjparam
DtPowerRangeListDeterminant
:
public
DtPowerRangeDeterminant
18
{
22
typedef
DtPrbStepFunction
DtPowerRangeList
;
23
24
public
:
25
27
DtPowerRangeListDeterminant
();
28
31
DtPowerRangeListDeterminant
(
const
DtString
& surface,
DtReaderWriterRegistry
*
32
parentRegistry = NULL);
33
DtPowerRangeListDeterminant
(
const
DtSymbolString
& surface,
DtReaderWriterRegistry
*
34
parentRegistry = NULL);
36
39
DtPowerRangeListDeterminant
(
const
DtString
& name,
const
DtPowerRangeListDeterminant
& orig,
40
DtReaderWriterRegistry
* parentRegistry = NULL);
41
DtPowerRangeListDeterminant
(
const
DtSymbolString
& name,
const
DtPowerRangeListDeterminant
& orig,
42
DtReaderWriterRegistry
* parentRegistry = NULL);
44
45
const
DtPowerRangeListDeterminant
&
operator=
(
const
DtPowerRangeListDeterminant
& orig);
46
virtual
bool
operator==
(
const
DtPowerRangeDeterminant
& rhs)
const
;
47
49
virtual
~
DtPowerRangeListDeterminant
();
50
51
virtual
DtPowerRangeListDeterminant
*
clone
(
const
DtString
& name,
52
DtReaderWriterRegistry
* parentRegistry = NULL)
const
;
53
virtual
DtPowerRangeListDeterminant
*
clone
(
const
DtSymbolString
& name,
54
DtReaderWriterRegistry
* parentRegistry = NULL)
const
;
55
57
virtual
double
detonationPower
(
double
rangeFromShooter,
double
rangeFromImpact)
const
;
58
60
virtual
double
rangeFromShooterForPower
(
double
power)
const
;
61
63
virtual
double
rangeFromImpactForPower
(
double
power)
const
;
64
66
virtual
double
maximumRangeFromShooter
()
const
;
67
69
virtual
double
maximumRangeFromImpact
()
const
;
70
73
virtual
void
setRangeList(
const
DtPowerRangeList
& rangeList);
74
virtual
const
DtPowerRangeList
& rangeList()
const
;
75
virtual
DtPowerRangeList
& rangeList();
77
79
static
DtPowerRangeDeterminant
*
creator
() {
return
new
DtPowerRangeListDeterminant
(); }
80
81
protected
:
82
84
virtual
double
powerFromRange(
double
range)
const
;
85
87
virtual
double
rangeFromPower(
double
power)
const
;
88
92
virtual
void
validateRangeFrom
();
93
96
103
DtPowerRangeList
myRangeList
;
104
106
};
107
108
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
)