VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingFlightPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vrfobjcore/simObject.h"
13 #include <readerWriter/rwString.h>
14 #include <readerWriter/rwBoolean.h>
15 #include "readerWriter/rwVector.h"
17 #include <readerWriter/rwInt.h>
18 #include <readerWriter/rwReal.h>
19 #include <vrfutil/rwUUID.h>
20 
25 
27 
30 {
31 public:
34  {
42  StateLanding
43  };
44 
47  const DtString& rwName = DtString::nullString(),
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
52  const DtString& rwName = DtString::nullString(),
53  DtReaderWriterRegistry* parentRegistry = 0);
54 
56  virtual ~DtRotaryWingFlightPSR();
57 
60 
63  const DtString& rwName = DtString::nullString(),
64  DtReaderWriterRegistry* parentRegistry = 0) const;
65 
68  virtual DtString type() const;
69 
73  virtual void setControlObject(const DtUUID&);
74 
76  virtual DtSimObjectReference controlObject() const;
77 
80  virtual void setRoute(const DtUUID&);
81 
83  virtual DtSimObjectReference route() const;
84 
88  virtual void setRouteVertices(const DtLocalVectorIterator& routeIterator,
89  bool useCurrentVertex = false);
90  virtual const DtLocalVertexList& routeVertices() const;
91 
93  virtual void emptyRouteVertices();
94 
97  virtual DtLocalVectorIterator* routeState() const;
98 
101  virtual void setWasMovingToward(bool flag);
102  virtual bool wasMovingToward() const;
103 
106  virtual void setStartingPoint(const DtVector& startingPoint);
107  virtual const DtVector& startingPoint() const;
108 
111  virtual void setDoContinueMoving(const bool go);
112  virtual bool doContinueMoving() const;
113 
115  virtual void setReverseFlag(bool flag);
116  virtual bool reverseFlag() const;
117 
119  virtual void setHeadingToTurnTo(double);
120  virtual double headingToTurnTo() const;
121 
125  virtual void setWorldAimingPoint(const DtVector& pnt);
126  virtual const DtVector& worldAimingPoint() const;
127 
129  virtual void setFirstWaypoint(const DtUUID&);
130  virtual DtSimObjectReference firstWaypoint() const;
131 
133  virtual void setSecondWaypoint(const DtUUID&);
134  virtual DtSimObjectReference secondWaypoint() const;
135 
137  virtual void setEntityToFollow(const DtUUID&);
138  virtual DtSimObjectReference entityToFollow() const;
139 
142  virtual void setFollowOffset(const DtVector& offset);
143  virtual const DtVector& followOffset() const;
144 
146  virtual void setMovingToAltitude(bool movingToAlt);
148  virtual bool movingToAltitude() const;
149 
151  virtual void setMoveToAltitudeValue(double altitude);
153  virtual double moveToAltitudeValue() const;
154 
156  virtual void setOrbitRadius(const double r);
157  virtual double orbitRadius() const;
158 
161  virtual void setLandingState(DtRotaryWingLandingControllerState state);
162  virtual DtRotaryWingLandingControllerState landingState() const;
164 
166 
167  virtual bool isSpinningUp() const;
168  virtual void setIsSpinningUp(bool b);
170 
172 
173  virtual double spinupCompleteTime() const;
174  virtual void setSpinupCompleteTime(double t);
176 
178  virtual void putSelf(std::string& fp, int indentLevel = 0,
179  bool writeUnspecified = false, const DtFilename& path = DtReaderWriter::appPath());
180 
181 public:
182 
184  static DtVrfProcessStateRepository* creator (const DtString& rwName,
185  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
186 
187 protected:
188 
194 
208 
212 
215 
219 
223 
230 
239 
242 
245 
247 
249 
255 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
DtRwReal myOrbitRadius
Definition: rotaryWingFlightPSR.h:246
DtRwBoolean myMovingToAltitude
Definition: rotaryWingFlightPSR.h:243
DtRwBoolean myDoContinueMoving
A flag to indicate if the entity should continue moving when it reaches its goal. ...
Definition: rotaryWingFlightPSR.h:218
File: lclVecIter.h.
Definition: localVectorIterator.h:25
DtRwBoolean myReverseFlag
Moved here from DtRotaryWingPatrolRouteController (rotWingPtrlRt.h).
Definition: rotaryWingFlightPSR.h:222
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: rotaryWingFlightPSR.h:29
DtRwInt myCurrentVertex
Read/write variables to capture route state.
Definition: rotaryWingFlightPSR.h:207
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtRwInt myLandingState
Definition: rotaryWingFlightPSR.h:248
DtLocalVertexList myVertices
my copy of the current route
Definition: rotaryWingFlightPSR.h:205
DtRwReal mySpinupCompleteTime
If myIsSpinningUp is true, this is the simulation time at which spinup is complete.
Definition: rotaryWingFlightPSR.h:254
DtRwSimObjectReference mySecondWaypoint
Definition: rotaryWingFlightPSR.h:226
DtRwVector myFollowOffsetVector
Following offset vector (in body coordinates of the entity to follow, in meters). ...
Definition: rotaryWingFlightPSR.h:238
DtLocalVectorIterator * myRouteState
Route state used to get info about the current route we&#39;re trying to follow (e.g. which vertex to mov...
Definition: rotaryWingFlightPSR.h:203
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: simObjectReference.h:74
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwSimObjectReference myFirstWaypoint
Moved here from DtRotaryWingPatrolBetweenController (rotWngPtlBtwn.h).
Definition: rotaryWingFlightPSR.h:225
DtRwBoolean myIsSpinningUp
True if the RW is currently in the processing of spinning up.
Definition: rotaryWingFlightPSR.h:252
DtRwSimObjectReference myControlObject
Moved here from DtRotaryWingMoveToControllerComponent (rotWngMvToCtl.h).
Definition: rotaryWingFlightPSR.h:193
Description: Readable, Writable int.
Definition: rwInt.h:25
Zeroing out pitch movement at the settling location.
Definition: rotaryWingFlightPSR.h:40
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
Moving to a point attached to a parent, or the end of a route, or a settling location above the landi...
Definition: rotaryWingFlightPSR.h:38
DtRotaryWingLandingControllerState
State for the DtRotaryWingLandingController.
Definition: rotaryWingFlightPSR.h:33
DtRwVector myWorldAimingPoint
World point for move to location tasks.
Definition: rotaryWingFlightPSR.h:241
DtRwReal myMoveToAltitudeValue
Definition: rotaryWingFlightPSR.h:244
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...
DtRwSimObjectReference myEntityToFollow
Set when a patrol between task is received. Reuse the myReverseFlag from DtRotaryWingPatrolRouteContr...
Definition: rotaryWingFlightPSR.h:235
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwBoolean myWasMovingToward
A flag indicating whether or not the last tick was moving toward the current waypoint.
Definition: rotaryWingFlightPSR.h:211
DtRwReal myHeadingToTurnTo
Definition: rotaryWingFlightPSR.h:250
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
Definition: rotaryWingFlightPSR.h:35
voidpf uLong offset
Definition: ioapi.h:42
class DtLocalVertexList:
Definition: localVertexList.h:20
DtRwVector myStartingPoint
A vector indicating the starting point of the current segment.
Definition: rotaryWingFlightPSR.h:214
File: rwVector.h.
static const DtFilename & appPath()
Gets the current working directory. The first time this accessor is called, it determines the current...
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
DtRwSimObjectReference myRoute
Moved here from DtRotaryWingMoveAlongControllerComponent (rotaryWingFlightPSR.h). ...
Definition: rotaryWingFlightPSR.h:200

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)