VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
serializableUtmCS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: ser_utm.h,v $ $Revision: 1.13 $ $State: Exp $
7 *********************************************************************/
8 #ifndef serializableUtmCS_H_
9 #define serializableUtmCS_H_
10 
11 //
12 // \file ser_utm.h Contains the serializable UTM coordinate system class declaration.
13 //
15 #include <stdio.h>
16 #include "tdbutil/serializable.h"
17 #include "terrainCS/utmCS.h"
18 
19 //
20 // DtSerializableUtmCS is a serializable version of the DtUtmCS.
21 //
23 {
24 public:
25  DtSerializableUtmCS(FILE* fp, int gdbVersion = 0, double scaleFactor = 0.9996);
26 
27  DtSerializableUtmCS(int zone, DtFloat64 northing, DtFloat64 easting, double scaleFactor = 0.9996);
28 
29  DtSerializableUtmCS(double refLatitude, // in Radians
30  double refLongitude, // in Radians
31  int standardOffsets,
32  long zone = 0,
33  bool setUseDynamicSceneOrigin = false,
34  double dynamicSceneOriginDeadband = 0.0,
35  double scaleFactor = 0.9996);
36 
37  DtSerializableUtmCS(const DtDegMinSec &refLatitude,
38  const DtDegMinSec &refLongitude,
39  int standardOffsets,
40  long zone = 0,
41  bool setUseDynamicSceneOrigin = false,
42  double dynamicSceneOriginDeadband = 0.0,
43  double scaleFactor = 0.9996);
44 
45  // Copy Constructor
47 
48  // Destructor
49  virtual ~DtSerializableUtmCS();
50 
51  // Assignment operator
53 
54  // Clone operator
55  virtual Coordinate_System* clone() const;
56 
57  // Note that in readFrom and writeTo, the std offsets is now comprised of
58  // two words -- the high word is the zone that this gdb needs to be placed
59  // in and the low word is whether or not to use std offsets
60  virtual bool readFrom(FILE* fp);
61  virtual bool writeTo(FILE* fp);
62 
63 protected:
65 };
66 
67 #endif
virtual Coordinate_System * clone() const
Definition: utmCS.h:29
DtUtmCS & operator=(const DtUtmCS &orig)
Definition: coordSystem.h:54
virtual bool writeTo(FILE *fp)=0
Definition: serializableUtmCS.h:22
double DtFloat64
Definition: vrvControlStructTypes.h:36
Definition: serializable.h:30
#define DT_DLL_terrainCS
Definition: terrainCSDefines.h:23
int myGdbVersion
Definition: serializableUtmCS.h:64
virtual bool readFrom(FILE *fp)=0

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)