VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwIntelCollectionArea.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/vrfutilDefines.h"
13 #include "vrfutil/vrfRwTypes.h"
14 
21 
23 {
24 public:
25 
28  {
29  }
30 
32  DtRwIntelCollectionArea(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL)
33  : DtRwTemplatedRealList(name, parentRegistry)
34  {
35  }
36 
39  {
40  }
41 
44  const DtRwIntelCollectionArea& orig,
45  DtReaderWriterRegistry* const parentRegistry = NULL)
46  : DtRwTemplatedRealList(name, orig, parentRegistry)
47  {
48  }
49 
52  {
54 
55  return *this;
56  }
57 
61  virtual const char* readerWriterType() const
62  {
64  }
65 
67  static const char* theXmlType()
68  {
70  }
71 
72  virtual const char* xmlType() const
73  {
74  return theXmlType();
75  }
76 
77  virtual double modifierForForce(int force)
78  {
79  DtIteratorBase<DtRwReal> iter(*this);
80  double baseModifier = 1.0;
81 
82  while (iter.current())
83  {
84  int modForce = atoi(iter.current()->name().c_str());
85 
86  if (modForce == -1)
87  {
88  baseModifier = *(iter.current());
89  }
90  else if (modForce == force)
91  {
92  return *(iter.current());
93  }
94  ++iter;
95  }
96 
97  return baseModifier;
98  }
99 };

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)