VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
refuelPointsList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfutil/rwEntityType.h"
14 #include <readerWriter/rwReal.h>
15 #include <readerWriter/rwString.h>
17 #include "vrfutil/vrfRwTypes.h"
18 
20 #include "scriptGeometry.h"
21 #include "readerWriter/rwVector.h"
22 
28 {
29 public:
31  DtRefuelPoint();
32 
34  DtRefuelPoint(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
35  DtRefuelPoint(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  DtRefuelPoint(const DtRefuelPoint& orig);
39 
40  DtRefuelPoint(const DtString& name,
41  const DtRefuelPoint& orig,
42  DtReaderWriterRegistry* parentRegistry = NULL);
43 
44  DtRefuelPoint(const DtSymbolString& name,
45  const DtRefuelPoint& orig,
46  DtReaderWriterRegistry* parentRegistry = NULL);
47 
49  const DtRefuelPoint& operator=(const DtRefuelPoint & orig);
50 
51  virtual ~DtRefuelPoint();
52 
53  virtual DtRefuelPoint* clone(const DtString& name,
54  DtReaderWriterRegistry* parentRegistry = NULL) const;
55 
56  virtual DtRefuelPoint* clone(const DtSymbolString& name,
57  DtReaderWriterRegistry* parentRegistry = NULL) const;
58 
59 
62  virtual const bool isPointEnabled() const;
63  virtual void setPointEnabled(const bool state);
65 
70  virtual const int pointPart() const;
71  virtual void setPointPart(const int pointPart);
73 
76  virtual const DtVectorOffset3D pointOffset() const;
77  virtual void setPointOffset(const DtVectorOffset3D& offset);
79 
82  virtual const DtString& pointType() const;
84 
88  virtual const char* readerWriterType() const;
89 
91  static const char* theXmlType();
92 
93  virtual const char* xmlType() const
94  {
95  return theXmlType();
96  }
97 
98  bool operator==(const DtRefuelPoint&) const;
99  bool operator!=(const DtRefuelPoint& rhs) const { return !(*this == rhs); };
100 
101 protected:
105 
110 
114 
119 
124 };
125 
126 
127 class DT_DLL_vrfutil DtRefuelPointsList : public DtRwTemplatedListPtr<DtRefuelPoint, true>
128 {
129 public:
132 
134  DtRefuelPointsList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL)
135  : DtRwTemplatedListPtr<DtRefuelPoint, true>(name, parentRegistry) {};
136 
137  DtRefuelPointsList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL)
138  : DtRwTemplatedListPtr<DtRefuelPoint, true>(name, parentRegistry) {};
139 
141  DtReaderWriterRegistry* parentRegistry = NULL)
142  : DtRwTemplatedListPtr<DtRefuelPoint, true>(name, orig, parentRegistry) {};
143 
145  DtReaderWriterRegistry* parentRegistry = NULL)
146  : DtRwTemplatedListPtr<DtRefuelPoint, true>(name, orig, parentRegistry) {};
147 
149  DtReaderWriterRegistry* parentRegistry = NULL)
150  : DtRwTemplatedListPtr<DtRefuelPoint, true>(orig, parentRegistry) {};
151 
152  virtual const char* readerWriterType() const
153  {
154  return DtRefuelPointsListType;
155  }
156 };
bool operator==(const DtReaderWriter &) const
Equivalence operator.
DtRefuelPointsList(const DtSymbolString &name, const DtRefuelPointsList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: refuelPointsList.h:144
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...
Definition: symbolString.h:20
DtRefuelPoint.
Definition: refuelPointsList.h:27
DtRwString myRefuelPointType
Parameter Name: refuel-point-type Parameter Description: Whether the refuel point is a boom or drogue...
Definition: refuelPointsList.h:122
DtRefuelPointsList(const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: refuelPointsList.h:137
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
DtRefuelPointsList()
default constructor
Definition: refuelPointsList.h:131
bool operator!=(const DtRefuelPoint &rhs) const
Definition: refuelPointsList.h:99
VectorOffset3D is a direction vector that is relative to some direction specified by a Vector3D...
Definition: scriptGeometry.h:424
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwBoolean myRefuelPointState
Parameter Name: refuel-point-enabled Parameter Description: Whether the refuel point is enabled or di...
Definition: refuelPointsList.h:109
DtRefuelPointsList(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
real constructor
Definition: refuelPointsList.h:134
DtRwInt myRefuelPointPart
Parameter Name: refuel-point-part Parameter Description: The art part of the refuel point...
Definition: refuelPointsList.h:113
virtual const char * xmlType() const
Definition: refuelPointsList.h:93
Specialized vector that can be used for the knowledge of an &quot;offset&quot; rather than location vector...
Definition: rwVector.h:109
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
A version of DtRwList that contains a homogeneous list of a templated RW type. The templated type spe...
Definition: rwTemplatedList.h:26
DtRwOffsetVector myRefuelPointOffset
Parameter Name: refuel-point-offset Parameter Description: The vector offset at which the refuel posi...
Definition: refuelPointsList.h:118
const char DtRefuelPointsListType[]
Definition: vrfRwTypes.h:173
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
Definition: refuelPointsList.h:127
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...
Definition: refuelPointsList.h:152
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
voidpf uLong offset
Definition: ioapi.h:42
DtRefuelPointsList(const DtString &name, const DtRefuelPointsList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: refuelPointsList.h:140
DtRefuelPointsList(const DtRefuelPointsList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: refuelPointsList.h:148
File: rwVector.h.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)