VR-Forces 4.0.4 Class Documentation
include/terrainCS/ser_utm.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: ser_utm.h,v $ $Revision: 1.13 $ $State: Exp $
00007 *********************************************************************/
00008 #ifndef ser_utm_H_
00009 #define ser_utm_H_
00010 
00011 //
00012 // \file ser_utm.h Contains the serializable UTM coordinate system class declaration.
00013 //
00014 #include "terrainCS/terrainCSDefines.h"
00015 #include <stdio.h>
00016 #include "tdbutil/serializ.h"
00017 #include "terrainCS/utmCoordSys.h"
00018 
00019 //
00020 // DtSerializableUtmCS is a serializable version of the DtUtmCS.
00021 //
00022 class DT_DLL_terrainCS DtSerializableUtmCS: public DtUtmCS, public DtSerializable
00023 {
00024 public:
00025    DtSerializableUtmCS(FILE* fp, int gdbVersion = 0, double scaleFactor = 0.9996);
00026    
00027    DtSerializableUtmCS(int zone, DtFloat64 northing, DtFloat64 easting, double scaleFactor = 0.9996);
00028 
00029    DtSerializableUtmCS(double refLatitude,  // in Radians
00030                        double refLongitude, // in Radians
00031                        int standardOffsets,
00032                        long zone = 0,
00033                        bool setUseDynamicSceneOrigin = false,
00034                        double dynamicSceneOriginDeadband = 0.0,
00035                        double scaleFactor = 0.9996);
00036    
00037    DtSerializableUtmCS(const DtDegMinSec &refLatitude,
00038                        const DtDegMinSec &refLongitude, 
00039                        int standardOffsets,
00040                        long zone = 0,
00041                        bool setUseDynamicSceneOrigin = false,
00042                        double dynamicSceneOriginDeadband = 0.0,
00043                        double scaleFactor = 0.9996);
00044 
00045    // Copy Constructor
00046    DtSerializableUtmCS(const DtSerializableUtmCS& orig);
00047 
00048    // Destructor
00049    virtual ~DtSerializableUtmCS();
00050 
00051    // Assignment operator
00052    DtSerializableUtmCS& operator=(const DtSerializableUtmCS& orig);
00053 
00054    // Clone operator
00055    virtual Coordinate_System* clone() const;
00056 
00057    // Note that in readFrom and writeTo, the std offsets is now comprised of 
00058    // two words -- the high word is the zone that this gdb needs to be placed 
00059    // in and the low word is whether or not to use std offsets
00060    virtual bool readFrom(FILE* fp);
00061    virtual bool writeTo(FILE* fp);
00062 
00063 protected:
00064    int myGdbVersion;
00065 };
00066 
00067 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)