VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
powerRangeEquivalentTntDeterminant.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwString.h>
13 #include <readerWriter/rwReal.h>
15 
16 
21 {
22 public:
23 
26 
30  parentRegistry = NULL);
32  parentRegistry = NULL);
34 
38  DtReaderWriterRegistry* parentRegistry = NULL);
40  DtReaderWriterRegistry* parentRegistry = NULL);
42 
44  virtual bool operator==(const DtPowerRangeDeterminant& rhs) const;
45 
48 
50  DtReaderWriterRegistry* parentRegistry = NULL) const;
52  DtReaderWriterRegistry* parentRegistry = NULL) const;
53 
55  virtual double detonationPower(double rangeFromShooter, double rangeFromImpact) const;
56 
58  virtual double rangeFromShooterForPower(double power) const;
59 
61  virtual double rangeFromImpactForPower(double power) const;
62 
64  virtual double maximumRangeFromShooter() const;
65 
67  virtual double maximumRangeFromImpact() const;
68 
70  virtual void postGetSelf();
71 
74 
76  virtual double minRange() const;
77 
79  virtual double maxRange() const;
80 
84  virtual void setEquivalentTntMass(double);
85  virtual double equivalentTntMass() const;
87 
88 protected:
89 
91  virtual double rangeFromPower(double power) const;
92 
96  virtual void validateRangeFrom();
97 
98  virtual double calculateIncidentPressure(double range) const;
99 
100  virtual double calculateRange(double incidentPressure) const;
101 
104  virtual void determineMinAndMaxRanges();
105 
106 protected:
109 
115 
117 
118  double myMinRange;
119  double myMaxRange;
120 
121 };
122 
123 
virtual double maximumRangeFromShooter() const =0
Gets the maximum effective range from shooter of this detonation.
Definition: symbolString.h:20
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
virtual void validateRangeFrom()=0
Validates the configured range-from setting and restores to a valid default if configuration is unsup...
virtual double maximumRangeFromImpact() const =0
Gets the maximum effective range from impact of this detonation.
DtRwReal myEquivalentTntMass
Parameter Name: equivalent-tnt-mass Parameter Description: The power of an explosive based on the exp...
Definition: powerRangeEquivalentTntDeterminant.h:114
Definition: readerWriterRegistry.h:39
static DtPowerRangeDeterminant * creator()
Creator function.
Definition: powerRangeEquivalentTntDeterminant.h:73
A readable/writable object that indicates the power of a detonation of a given type, potentially at different ranges from the point of impact.
Definition: powerRangeDeterminant.h:17
virtual double rangeFromShooterForPower(double power) const =0
Gets the maximum range from the shooter where the impact point would experience the specified power...
virtual void postGetSelf()
Called after reading in settings.
virtual bool operator==(const DtPowerRangeDeterminant &rhs) const
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
double myMaxRange
Definition: powerRangeEquivalentTntDeterminant.h:119
virtual DtPowerRangeDeterminant * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const =0
const DtPowerRangeDeterminant & operator=(const DtPowerRangeDeterminant &orig)
virtual double detonationPower(double rangeFromShooter, double rangeFromImpact) const =0
Gets the detonation&#39;s power the given range from the shooter and range from the point of impact...
virtual double rangeFromImpactForPower(double power) const =0
Gets the maximum range from the impact point where one would experience the specified power...
A readable/writable object that indicates the power of a detonation of a given type as a function of ...
Definition: powerRangeEquivalentTntDeterminant.h:20
double myMinRange
Definition: powerRangeEquivalentTntDeterminant.h:118

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)