VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
damageProbabilityTable.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
12 #include "vrfutil/simMunition.h"
15 #include <readerWriter/rwReal.h>
16 
21 {
22 public:
25 
28  parentRegistry = NULL);
29 
31  parentRegistry = NULL);
32 
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  DtReaderWriterRegistry* parentRegistry = NULL);
39 
41 
44 
45  virtual ~DtDamageProbabilityTable();
46 
47  virtual DtDamageProbabilityTable* clone(const DtString& name,
48  DtReaderWriterRegistry* parentRegistry = NULL) const;
49 
50  virtual DtDamageProbabilityTable* clone(const DtSymbolString& name,
51  DtReaderWriterRegistry* parentRegistry = NULL) const;
52 
53  virtual void getSelf(DtlObjPtr args,
54  const DtReaderWriter::SearchPaths& searchPaths = SearchPaths(),
55  const DtVariableBindingsList& variableBindings = nullVariableReference());
56 
57  virtual void putSelf(std::string& fp, int indentLevel = 0,
58  bool writeUnspecified = false, const DtFilename& path =
59  DtFilename::nullFilename());
60 
63  virtual const DtString& damageFilename() const;
64  virtual void setDamageFilename(const DtString& filename);
66 
68  virtual void addSurfaceEntry(const DtDmgSurfaceEntry& surfaceEntry);
69 
72  virtual bool getProbabilities(const DtString& surface, DtReal angleOfIncidence,
73  DtReal value, DtPrbValueList* probList) const;
74 
76  virtual double getMaximumInputValue() const;
77 
79  virtual double getMinimumInputValue() const;
80 
82  virtual bool isValid() const;
83 
85  const DtDmgSurfaceTable& damageTable() const
86  {
87  return myDamageTable;
88  }
89 
90  DtDmgSurfaceTable& damageTable()
91  {
92  return myDamageTable;
93  }
94 
96  bool operator==(const DtDamageProbabilityTable& rhs) const;
97  bool operator!=(const DtDamageProbabilityTable& rhs) const
98  {
99  return !(*this == rhs);
100  }
101 
103  static const char* theXmlType();
104 
105  virtual const char* xmlType() const
106  {
107  return theXmlType();
108  }
109 
110  virtual const char* readerWriterType() const;
111 
112 protected:
114  virtual void removeSurfaceEntry(DtDmgSurfaceEntry* surfaceEntry);
115 
116 protected:
120 
125 
130 
132 };
133 
134 

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)