VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
powerRangeCoefficientsDeterminant.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 
13 #include <readerWriter/rwString.h>
15 
21 {
22 public:
25 
27  DtPowerCoefficients(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL)
28  : DtPrbProbabilityCoefficients(name, parentRegistry) {}
29 
30  DtPowerCoefficients(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL)
31  : DtPrbProbabilityCoefficients(name, parentRegistry) {}
32 
35  DtReaderWriterRegistry* parentRegistry = NULL)
36  : DtPrbProbabilityCoefficients(name, orig, parentRegistry) {}
37 
39  DtReaderWriterRegistry* parentRegistry = NULL)
40  : DtPrbProbabilityCoefficients(name, orig, parentRegistry) {}
41 
43  virtual ~DtPowerCoefficients() {}
44 
46  virtual DtReal powerAtRange(DtReal range) const;
47 
48 };
49 
50 
54 {
55 public:
56 
59 
63  parentRegistry = NULL);
65  parentRegistry = NULL);
67 
71  DtReaderWriterRegistry* parentRegistry = NULL);
73  DtReaderWriterRegistry* parentRegistry = NULL);
75 
77  virtual bool operator==(const DtPowerRangeDeterminant& rhs) const;
78 
81 
83  DtReaderWriterRegistry* parentRegistry = NULL) const;
85  DtReaderWriterRegistry* parentRegistry = NULL) const;
86 
88  virtual double detonationPower(double rangeFromShooter, double rangeFromImpact) const;
89 
91  virtual double rangeFromShooterForPower(double power) const;
92 
94  virtual double rangeFromImpactForPower(double power) const;
95 
97  virtual double maximumRangeFromShooter() const;
98 
100  virtual double maximumRangeFromImpact() const;
101 
104 
106  virtual double solveForMaximum() const;
107 
110  virtual DtPowerCoefficients& coefficients();
111  virtual const DtPowerCoefficients& coefficients() const;
112  virtual void setCoefficients(const DtPowerCoefficients&);
114 
115 protected:
116 
118  virtual double rangeFromPower(double power) const;
119 
123  virtual void validateRangeFrom();
124 
127 
138 
140 
141 };
142 
143 

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)