VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
powerDirectDeterminant.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/rwReal.h>
14 
18 {
19 public:
20 
23 
27  parentRegistry = NULL);
29  parentRegistry = NULL);
31 
35  DtReaderWriterRegistry* parentRegistry = NULL);
37  DtReaderWriterRegistry* parentRegistry = NULL);
39 
41  virtual bool operator==(const DtPowerRangeDeterminant& rhs) const;
42 
44  virtual ~DtPowerDirectDeterminant();
45 
46  virtual DtPowerDirectDeterminant* clone(const DtString& name,
47  DtReaderWriterRegistry* parentRegistry = NULL) const;
48  virtual DtPowerDirectDeterminant* clone(const DtSymbolString& name,
49  DtReaderWriterRegistry* parentRegistry = NULL) const;
50 
52  virtual double detonationPower(double rangeFromShooter, double rangeFromImpact) const;
53 
55  virtual double rangeFromShooterForPower(double power) const;
56 
58  virtual double rangeFromImpactForPower(double power) const;
59 
61  virtual double maximumRangeFromShooter() const;
62 
64  virtual double maximumRangeFromImpact() const;
65 
68 
71  virtual void setDirectPower(double);
72  virtual double directPower() const;
74 
75 protected:
76 
80  virtual void validateRangeFrom();
81 
84 
89 
91 
92 };
93 
94 
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
static DtPowerRangeDeterminant * creator()
Creator function.
Definition: powerDirectDeterminant.h:67
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.
Definition: readerWriterRegistry.h:39
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 bool operator==(const DtPowerRangeDeterminant &rhs) const
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtPowerRangeDeterminant * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const =0
A readable/writable object that indicates the power of a detonation of a given type directly at the p...
Definition: powerDirectDeterminant.h:17
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...
DtRwReal myDirectPower
Parameter Name: direct-power Parameter Description: The power of the munition at the point of impact...
Definition: powerDirectDeterminant.h:88

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)