VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
damagePointsTable.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
12 #include "vrfutil/simMunition.h"
14 #include <readerWriter/rwReal.h>
15 
20 {
21 public:
24 
27  parentRegistry = NULL);
28 
30  parentRegistry = NULL);
31 
33  DtDamagePointsTable(const DtString& name, const DtDamagePointsTable& orig,
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
40 
43 
44  virtual ~DtDamagePointsTable() override;
45 
46  virtual DtDamagePointsTable* clone(const DtString& name,
47  DtReaderWriterRegistry* parentRegistry = NULL) const;
48 
49  virtual DtDamagePointsTable* clone(const DtSymbolString& name,
50  DtReaderWriterRegistry* parentRegistry = NULL) const;
51 
52  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths = SearchPaths(),
53  const DtVariableBindingsList& variableBindings = nullVariableReference()) override;
54 
55  virtual void putSelf(std::string& fp, int indentLevel = 0, bool writeUnspecified = false,
56  const DtFilename& path = DtFilename::nullFilename()) override;
57 
59  virtual void addSurfaceEntry(const DtDmgSurfaceEntry& surfaceEntry);
60 
61  virtual std::vector<DtString> zoneNames() const;
62 
65  virtual bool getDamagePoints(const DtString& surface, DtReal angleOfIncidence,
66  DtReal value, DtPrbValueList* probList) const;
67 
69  virtual double getMaximumInputValue() const;
70 
72  virtual double getMinimumInputValue() const;
73 
75  virtual bool isValid() const;
76 
79  {
80  return myDamageTable;
81  }
82 
84  {
85  return myDamageTable;
86  }
87 
89  bool operator==(const DtDamagePointsTable& rhs) const;
90  bool operator!=(const DtDamagePointsTable& rhs) const
91  {
92  return !(*this == rhs);
93  }
94 
96  static const char* theXmlType();
97 
98  virtual const char* xmlType() const override {
99  return theXmlType();
100  }
101 
102  virtual const char* readerWriterType() const override;
103 
104 protected:
106  virtual void removeSurfaceEntry(DtDmgSurfaceEntry* surfaceEntry);
107 
108 protected:
112 
117 
119 };
120 
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
Instances of DtDmgSurfaceTable are (readable/writable) lists of DtDmgSurfaceEntrys. A string hash index is maintained for quick lookup. Given a surface, angle, and some input value, this class&#39;s getProbabilities() method will fill in the supplied DtPrbValueList.
Definition: dmgSurfaceTable.h:25
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
This file contains the class declaration for the.
DtDmgSurfaceTable myDamageTable
Parameter Name: damage-table Parameter Description: The damage table used to determine damage based o...
Definition: damagePointsTable.h:116
DtDamagePointsTable.
Definition: damagePointsTable.h:19
DtPrbValueList.
Definition: prbValueList.h:19
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
virtual const char * xmlType() const override
Definition: damagePointsTable.h:98
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtDmgSurfaceTable & damageTable()
Definition: damagePointsTable.h:83
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
static const DtVariableBindingsList & nullVariableReference()
DtDmgSurfaceEntry is a readable/writable list of angle of incidence tables; the name of the list is a...
Definition: dmgSurfaceEntry.h:29
bool operator!=(const DtDamagePointsTable &rhs) const
Definition: damagePointsTable.h:90
const DtDmgSurfaceTable & damageTable() const
Return the damage table.
Definition: damagePointsTable.h:78
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)