VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
parabolicTrajectoryPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <vlutil/vlTime.h>
13 #include <readerWriter/rwReal.h>
14 #include "readerWriter/rwVector.h"
15 
16 
21 
24 {
25 public:
26 
29  const DtString& rwName = DtString::nullString(),
30  DtReaderWriterRegistry* parentRegistry = 0);
31 
34  const DtString& rwName = DtString::nullString(),
35  DtReaderWriterRegistry* parentRegistry = 0);
36 
38  virtual ~DtParabolicTrajectoryPSR();
39 
42 
45  const DtString& rwName = DtString::nullString(),
46  DtReaderWriterRegistry* parentRegistry = 0) const;
47 
50  virtual void setDetonationAltitude(double alt);
51  virtual double detonationAltitude() const;
53 
56  virtual void setLaunchGeocentricLocation(const DtVector& loc);
57  virtual const DtVector& launchGeocentricLocation() const;
59 
62  virtual DtString type() const;
63 
66  virtual void setLaunchTime(DtTime t);
67  virtual DtTime launchTime() const;
69 
72  virtual void setTargetGeocentricLocation(const DtVector& loc);
73  virtual const DtVector& targetGeocentricLocation() const;
75 
78  virtual void getTrajectoryParameters( double& a_coefficient,
79  double& b_coefficient,
80  double& c_coefficient,
81  double& flight_time,
82  double& distance,
83  double& apogee) const;
84 
85  virtual void setTrajectoryParameters(double& a_coefficient,
86  double& b_coefficient,
87  double& c_coefficient,
88  double& flight_time,
89  double& distance,
90  double& apogee);
92 
95  virtual void setNEDTrajectoryVector(const DtVector& ned);
96  virtual const DtVector& nedTrajectoryVector() const;
98 
101  virtual void postGetSelf();
102  virtual void postPutSelf();
103  virtual void prePutSelf();
105 
107 
108 
110 
111 
112 public:
113 
115  static DtVrfProcessStateRepository* creator (const DtString& rwName,
116  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
117 
118 protected:
119 
122 
125 
128 
131 
134 
137 
140 };
DtRwVector myLaunchGeocentricLocation
Initial Launch location (meters, geocentric coordinates).
Definition: parabolicTrajectoryPSR.h:124
virtual void prePutSelf()
Called before either version of put self (file or environment). Default is no-op. ...
DtRwVector myTrajectoryParameters
Trajectory parameters (time seconds, great-circle-distance meters, altitude meters) ...
Definition: parabolicTrajectoryPSR.h:136
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
Definition: readerWriterRegistry.h:39
DtRwVector myNEDTrajectoryVector
Trajectory North East Down vector, great circle heading from launch location to target location...
Definition: parabolicTrajectoryPSR.h:139
DtRwVector myTargetGeocentricLocation
Target location (meters, geocentric coordinates).
Definition: parabolicTrajectoryPSR.h:130
Definition: rwVector.h:23
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwVector myTrajectoryCoefficients
Trajectory coefficients (a, b, c).
Definition: parabolicTrajectoryPSR.h:133
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myDetonationAltitude
Altitude at which to detonate on arrival.
Definition: parabolicTrajectoryPSR.h:121
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
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwReal myLaunchTime
Time missile was launched.
Definition: parabolicTrajectoryPSR.h:127
class DtParabolicTrajectoryPSR:
Definition: parabolicTrajectoryPSR.h:23
File: rwVector.h.
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
virtual void postPutSelf()
Called after either version of put self (file or environment). Default is no-op.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)