VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwKeplerOrbitalElements.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 
11 #include "vrfutil/vrfutilDefines.h"
14 #include <readerWriter/rwReal.h>
15 #include <readerWriter/rwString.h>
16 
17 
19 {
23 };
24 
27 
32 {
33 public:
34 
37 
39  parentRegistry = 0);
40 
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
48  virtual ~DtRwKeplerOrbitalElements() override;
49 
52 
53  virtual const char* readerWriterType() const override;
54 
55  virtual DtString tleLine1() const;
56  virtual void setTleLine1(const DtString& s);
57 
58  virtual DtString tleLine2() const;
59  virtual void setTleLine2(const DtString& s);
60 
61  virtual DtString stringRep() const;
62 
63  virtual DtString prettyPrint() const override;
64 
65 
66 protected:
69 
70  /*
71  DtRwReal myEccentricity;
72  DtRwReal myMeanMotion;
73  DtRwReal myInclination;
74  DtRwReal myLongitudeOfAscendingNode;
75  DtRwReal myArgumentOfPeriapsis;
76  DtRwReal myMeanAnomaly;
77  DtRwReal myEpoch;
78  */
79 
81 
82  mutable double myMutableSemiMajorAxis;
85 };
86 
87 namespace DtBufferSerialize
88 {
91 
97  DT_DLL_vrfutil char *encode(const DtRwKeplerOrbitalElements& val, char *buffer);
98 
104  DT_DLL_vrfutil const char *decode(DtRwKeplerOrbitalElements &val, const char *buffer);
105 };
DtRwKeplerOrbitalElements is a set of Kepler Orbital Elements describing an earth orbit...
Definition: rwKeplerOrbitalElements.h:31
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...
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
DtRwString myTleLine1
Definition: rwKeplerOrbitalElements.h:67
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
Definition: rwKeplerOrbitalElements.h:20
virtual DtString prettyPrint() const
Routine to return a human readable form of the reader/writer variable. Not all reader/writer classes ...
DtOrbitMode DT_DLL_vrfutil DtOrbitModeStringToEnum(const DtString &orbitModeString)
bool myMutableSemiMajorAxisValid
Calculated on demand and stored for optimization.
Definition: rwKeplerOrbitalElements.h:83
DtRwString myTleLine2
Definition: rwKeplerOrbitalElements.h:68
DtString DT_DLL_vrfutil DtOrbitModeEnumToString(const DtOrbitMode &orbitModeEnum)
double myMutableSemiMajorAxis
Calculated on demand and stored for optimization.
Definition: rwKeplerOrbitalElements.h:82
Definition: rwKeplerOrbitalElements.h:22
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
Definition: rwKeplerOrbitalElements.h:21
#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
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
DtOrbitMode
Definition: rwKeplerOrbitalElements.h:18

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)