VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dmgSurfaceEntry.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <vlutil/vlMachineTypes.h>
15 #include <readerWriter/rwList.h>
16 
17 class DtString;
19 class DtPrbValueList;
22 
30 {
31 public:
32 
33  //default constructor
35 
38  parentRegistry = NULL);
40  parentRegistry = NULL);
41 
43  DtDmgSurfaceEntry(const DtString& surface, const DtDmgSurfaceEntry& orig,
44  DtReaderWriterRegistry* parentRegistry = NULL);
46  DtReaderWriterRegistry* parentRegistry = NULL);
47  DtDmgSurfaceEntry(const DtSymbolString& surface, const DtDmgSurfaceEntry& orig,
48  DtReaderWriterRegistry* parentRegistry = NULL);
49 
50  const DtDmgSurfaceEntry& operator=(const DtDmgSurfaceEntry & orig);
51 
53  virtual ~DtDmgSurfaceEntry();
54 
55  virtual DtDmgSurfaceEntry* clone(const DtString& surface,
56  DtReaderWriterRegistry* parentRegistry = NULL) const;
57  virtual DtDmgSurfaceEntry* clone(const DtSymbolString& surface,
58  DtReaderWriterRegistry* parentRegistry = NULL) const;
59 
62  virtual void addAngleOfIncidenceTable(const DtDmgAngleOfIncidenceTable& angleTable);
63 
69  virtual bool getProbabilities(DtReal angle, DtReal inputValue,
70  DtPrbValueList* probList) const;
71 
74  virtual double getMaximumInputValue() const;
75 
78  virtual double getMinimumInputValue() const;
79 
81  static void setFactory(DtDmgAngleOfIncidenceTableFactory* factory);
82 
86 
87  bool operator==(const DtDmgSurfaceEntry&) const;
88  bool operator!=(const DtDmgSurfaceEntry& rhs) const
89  {
90  return !(*this == rhs);
91  }
92 
94  virtual bool isValid() const;
95 
96 protected:
97 
99  virtual DtDmgAngleOfIncidenceTable* createAngleOfIncidenceTable(const DtString& tableType);
100 
103  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
104  const DtVariableBindingsList& variableBindings);
105 
106  virtual void emptyList();
107  virtual void copyList(const DtDmgSurfaceEntry & orig);
108  virtual void addAngleOfIncidenceTable(DtDmgAngleOfIncidenceTable* angleTable);
109 
110 protected:
111 
114 
115 };
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtDmgAngleOfIncidenceTable is an abstract class whose deriving classes will have one of the two forms...
Definition: dmgAngleOfIncidenceTable.h:29
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)=0
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
bool operator!=(const DtDmgSurfaceEntry &rhs) const
Definition: dmgSurfaceEntry.h:88
Definition: readerWriterRegistry.h:39
static DtReaderWriterFactory * factory()
DtPrbValueList.
Definition: prbValueList.h:19
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
Factory for creating angle of incidence damage tables.
Definition: dmgAngleOfIncidenceTable.h:110
bool operator==(const DtRwList &rhs) const
Iterates over all items and calls the factory to compare.
DtDmgSurfaceEntry is a readable/writable list of angle of incidence tables; the name of the list is a...
Definition: dmgSurfaceEntry.h:29
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
static DtDmgAngleOfIncidenceTableFactory * theFactory
Static pointer to the factory for angle of incidence tables.
Definition: dmgSurfaceEntry.h:113

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)