VR-Forces 4.10 Class Documentation
 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();
49 
52 
53  virtual const char* readerWriterType() const;
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 
64 protected:
67 
68  /*
69  DtRwReal myEccentricity;
70  DtRwReal myMeanMotion;
71  DtRwReal myInclination;
72  DtRwReal myLongitudeOfAscendingNode;
73  DtRwReal myArgumentOfPeriapsis;
74  DtRwReal myMeanAnomaly;
75  DtRwReal myEpoch;
76  */
77 
79 
80  mutable double myMutableSemiMajorAxis;
83 };
84 
85 namespace DtBufferSerialize
86 {
89 
95  DT_DLL_vrfutil char *encode(const DtRwKeplerOrbitalElements& val, char *buffer);
96 
102  DT_DLL_vrfutil const char *decode(DtRwKeplerOrbitalElements &val, const char *buffer);
103 };
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.
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
DtRwString myTleLine1
Definition: rwKeplerOrbitalElements.h:65
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
DtOrbitMode DT_DLL_vrfutil DtOrbitModeStringToEnum(const DtString &orbitModeString)
bool myMutableSemiMajorAxisValid
Definition: rwKeplerOrbitalElements.h:81
DtRwString myTleLine2
Definition: rwKeplerOrbitalElements.h:66
DtString DT_DLL_vrfutil DtOrbitModeEnumToString(const DtOrbitMode &orbitModeEnum)
double myMutableSemiMajorAxis
Calculated on demand and stored for optimization.
Definition: rwKeplerOrbitalElements.h:80
Definition: rwKeplerOrbitalElements.h:22
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer.
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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)