VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
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
48
virtual
~
DtPowerRangeListDeterminant
();
49
50
virtual
DtPowerRangeListDeterminant
*
clone
(
const
DtString
& name,
51
DtReaderWriterRegistry
* parentRegistry = NULL)
const
;
52
virtual
DtPowerRangeListDeterminant
*
clone
(
const
DtSymbolString
& name,
53
DtReaderWriterRegistry
* parentRegistry = NULL)
const
;
54
56
virtual
double
detonationPower
(
double
rangeFromShooter,
double
rangeFromImpact)
const
;
57
59
virtual
double
rangeFromShooterForPower
(
double
power)
const
;
60
62
virtual
double
rangeFromImpactForPower
(
double
power)
const
;
63
65
virtual
double
maximumRangeFromShooter
()
const
;
66
68
virtual
double
maximumRangeFromImpact
()
const
;
69
71
static
DtPowerRangeDeterminant
*
creator
() {
return
new
DtPowerRangeListDeterminant
(); }
72
73
protected
:
74
76
virtual
double
powerFromRange(
double
range)
const
;
77
79
virtual
double
rangeFromPower(
double
power)
const
;
80
84
virtual
void
validateRangeFrom
();
85
88
95
DtPowerRangeList
myRangeList
;
96
98
};
99
100
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)