VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fixedWingFlightPSR.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 
14 #include <readerWriter/rwReal.h>
15 #include "readerWriter/rwVector.h"
16 #include <readerWriter/rwBoolean.h>
17 #include <readerWriter/rwString.h>
19 #include <readerWriter/rwInt.h>
21 #include <vrfutil/rwUUID.h>
23 
27 {
28  DtFWTaxiing = 0, //default if none specified during construction
32 };
33 
40 
42 {
43 public:
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 ~DtFixedWingFlightPSR() override;
57 
60 
63  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
64 
67  virtual DtString type() const override;
68 
70  virtual void setMaxThrustAccleration(double acceleration);
71  virtual double maxThrustAcceleration() const;
72 
73  virtual void setNormalizedBodyVelocity(const DtVector& velocity);
74  virtual const DtVector& normalizedBodyVelocity() const;
75 
76  virtual void setLocalAngularVelocity(double velocity);
77  virtual double localAngularVelocity() const;
78 
79  virtual void setSpeedRatioSquared(double value);
80  virtual double speedRatioSquared() const;
81 
82  virtual void setFinishing(bool flag);
83  virtual bool isFinishing() const;
84 
85  virtual void setApproachingVertex(bool flag);
86  virtual bool isApproachingVertex() const;
87 
88  virtual void setBanking(bool flag);
89  virtual bool isBanking() const;
90 
91  virtual void setLastDistanceSquared(double value);
92  virtual double lastDistanceSquared() const;
93 
94  virtual void setDistanceSquared(double value);
95  virtual double distanceSquared() const;
96 
97  virtual void setTakeOffDir(const DtVector& takeOffDir);
98  virtual const DtVector& takeOffDir() const;
99 
100  virtual void setTakeoffDestination(const DtVector& takeOffDir);
101  virtual const DtVector& takeoffDestination() const;
102 
103  virtual void setLandingDir(const DtVector& landingDir);
104  virtual const DtVector& landingDir() const;
105 
107  virtual void setEntityToFollow(const DtUUID& objectName);
108  virtual DtSimObjectReference entityToFollow() const;
109 
112  virtual void setFollowOffsetVector(const DtVector& offset);
113  virtual const DtVector& followOffsetVector() const;
114 
117  virtual void setLoiterRadius(double radius);
118  virtual double loiterRadius() const;
119 
122  virtual void setLoiterClockwise(bool flag);
123  virtual bool loiterClockwise() const;
124 
126  virtual void setLoiterCenter(const DtVector& center);
127  virtual const DtVector& loiterCenter() const;
128 
130  virtual void setObjectToOrbit(const DtUUID&);
131 
132  virtual DtSimObjectReference objectToOrbit() const;
133 
135  virtual void setTimeToEndOrbit(double t);
136  virtual double timeToEndOrbit() const;
137 
139  virtual void setControlPoint(const DtUUID& objectName);
140 
142  virtual void setWorldAimingPoint(const DtVector& location);
143 
147  virtual void setControlPointWithAimingOffset(const DtUUID& objectName, const DtVector& location);
148 
149  virtual const DtRwPositionReference& controlPoint();
150 
152  virtual DtVector localAimingPoint() const;
153  virtual DtVector worldAimingPoint() const;
154 
156  virtual bool createdControlPoint() const;
157 
160  virtual void setMovementStatus(const DtFixedWingMovementStatus movementStatus);
161  virtual const DtFixedWingMovementStatus movementStatus() const;
162 
163  virtual void setPreviousAltitude(const double speed);
164  virtual const double previousAltitude() const;
165 
168  virtual void setFirstWaypoint(const DtUUID&);
169 
171  virtual DtSimObjectReference firstWaypoint() const;
172 
175  virtual void setSecondWaypoint(const DtUUID&);
176 
178  virtual DtSimObjectReference secondWaypoint() const;
179 
181  virtual void setReversePatrol(bool reverse);
182  virtual bool reversePatrol() const;
183 
186  virtual void setRoute(const DtUUID&);
187 
189  virtual DtSimObjectReference route() const;
190 
192  virtual void setUseFixedPitch(bool);
193  virtual bool useFixedPitch() const;
194 
197  virtual void setRouteVertices(const DtLocalVectorIterator& routeIterator);
198  virtual const DtLocalVertexList& routeVertices() const;
199 
201  virtual void emptyRouteVertices();
202 
205  virtual DtLocalVectorIterator* routeState() const;
206 
208  virtual void putSelf(std::string& fp, int indentLevel = 0, bool writeUnspecified = false,
209  const DtFilename& path = DtReaderWriter::appPath()) override;
210 
212  virtual void resetRouteState();
213 
215  virtual void setMovingToAltitude(bool movingToAlt);
217  virtual bool movingToAltitude() const;
218 
220  virtual void setMoveToAltitudeValue(double altitude);
222  virtual double moveToAltitudeValue() const;
223 
226  virtual void setTurningToBeginApproachToRoute(bool);
227  virtual bool turningToBeginApproachToRoute() const;
228 
231 
232  virtual void setWaitingToSetMovementStatus(bool);
233  virtual bool waitingToSetMovementStatus() const;
235 
239  virtual void setInitTime(const double initTime);
240  virtual DtReal initTime() const;
242 
247  virtual void setAltitudeSpecified(const bool isSpecified);
248  virtual const bool isAltitudeSpecified() const;
250 
251 
252 public:
253 
255  static DtVrfProcessStateRepository* creator (const DtString& rwName,
256  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
257 
258 protected:
260  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
261  const DtVariableBindingsList& variableBindings) override;
262 
263 protected:
264 
268 
273 
277 
279 
284 
288 
295 
301 
305 
309 
317 
322 
330 
344 
348 
350 
352 
354 
357 
364 };
365 
double myMaxThrustAcceleration
Moved here from DtFixedWingPilotController (fixWngPltCtl.h)
Definition: fixedWingFlightPSR.h:272
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwReal myDistanceSquared
Definition: fixedWingFlightPSR.h:283
DtRwReal myPreviousAltitude
Intended to hold the previous altitude when flying or taxiing so the current altitude can be compared...
Definition: fixedWingFlightPSR.h:321
Definition: fixedWingFlightPSR.h:28
DtRwSimObjectReference myEntityToFollow
Moved here from DtFixedWingFollowEntityController (fixWngFolwCtl.h).
Definition: fixedWingFlightPSR.h:293
Definition: fixedWingFlightPSR.h:29
Definition: fixedWingFlightPSR.h:30
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
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: fixedWingFlightPSR.h:339
DtRwBoolean myBanking
Definition: fixedWingFlightPSR.h:281
DtRwBoolean myTurningToBeginApproachToRoute
Definition: fixedWingFlightPSR.h:349
Holds a position of some form. May be an absolute position, or a reference to another object...
Definition: rwPositionReference.h:21
DtRwReal myInitTime
Definition: fixedWingFlightPSR.h:355
DtRwBoolean myWaitingToSetMovementStatus
Definition: fixedWingFlightPSR.h:353
DtRwBoolean myCreatedControlPoint
Definition: fixedWingFlightPSR.h:356
File: lclVecIter.h.
Definition: localVectorIterator.h:25
DtRwReal myLocalAngularVelocity
Definition: fixedWingFlightPSR.h:275
DtRwReal mySpeedRatioSquared
Definition: fixedWingFlightPSR.h:276
DtRwVector myLandingDir
Definition: fixedWingFlightPSR.h:287
Definition: readerWriterRegistry.h:39
DtRwBoolean myApproachingVertex
Definition: fixedWingFlightPSR.h:280
Contains the DtUUID class declaration.
DtRwInt myCurrentVertex
Read/write variables to capture route state.
Definition: fixedWingFlightPSR.h:343
DtRwVector myNormalizedBodyVelocity
Definition: fixedWingFlightPSR.h:274
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
DtLocalVertexList myVertices
my copy of the current route
Definition: fixedWingFlightPSR.h:341
DtRwSimObjectReference myObjectToOrbit
If tasked() is true, this is the name of the object we&#39;re orbiting.
Definition: fixedWingFlightPSR.h:304
class DtFixedWingFlightPSR:
Definition: fixedWingFlightPSR.h:41
DtRwVector myTakeOffDestination
Definition: fixedWingFlightPSR.h:286
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
DtRwReal myTimeToEndOrbit
The time to end the current orbit task. Generally -1, which means the task is indefinite, but can be set when waiting at a hold point.
Definition: fixedWingFlightPSR.h:308
DtRwVector myTakeOffDir
Definition: fixedWingFlightPSR.h:285
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwVector myLoiterCircleCenter
Location of loiter circle center.
Definition: fixedWingFlightPSR.h:300
DtRwBoolean myClockwise
Definition: fixedWingFlightPSR.h:298
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtRwSimObjectReference myRoute
Moved here from DtFixedWingMoveAlongController (fixWngMvAlg.h).
Definition: fixedWingFlightPSR.h:336
DtRwReal myLastDistanceSquared
Definition: fixedWingFlightPSR.h:282
DtRwReal myRadius
Moved here from DtFixedWingDefaultController (fixWngDefCtl.h).
Definition: fixedWingFlightPSR.h:297
DtRwSimObjectReference mySecondWaypoint
Definition: fixedWingFlightPSR.h:328
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...
DtRwBoolean myAltitudeSpecified
For the flight-command-controller: indicate whether an altitude has been specified, or the task can complete when the heading is achieved.
Definition: fixedWingFlightPSR.h:362
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwSimObjectReference myFirstWaypoint
Moved here from DtFixedWingPatrolBetweenController (fixWngPtlBtwn.h)
Definition: fixedWingFlightPSR.h:327
Definition: fixedWingFlightPSR.h:31
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 myUseFixedPitch
Definition: fixedWingFlightPSR.h:351
DtRwPositionReference myPositionReference
Moved here from DtFixedWingMoveToController (fixWngMvToCtl.h)
Definition: fixedWingFlightPSR.h:315
DtRwBoolean myMovingToAltitude
Indicates that a move-to-altitude is being processed.
Definition: fixedWingFlightPSR.h:346
DtRwVector myOffsetVector
Definition: fixedWingFlightPSR.h:294
DtRwInt myMovementStatus
Definition: fixedWingFlightPSR.h:316
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
voidpf uLong offset
Definition: ioapi.h:42
class DtLocalVertexList:
Definition: localVertexList.h:20
DtRwBoolean myFinishing
Definition: fixedWingFlightPSR.h:278
DtFixedWingMovementStatus
Delineates the type of movement being performed by the FW entity during move to or move along tasks...
Definition: fixedWingFlightPSR.h:26
DtRwBoolean myReverseFlag
Definition: fixedWingFlightPSR.h:329
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.
Definition: localObject.h:98
DtRwReal myMoveToAltitudeValue
Definition: fixedWingFlightPSR.h:347

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)