VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
terrainCS
csysutil.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: csysutil.h,v $ $Revision: 1.17 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef csysutil_H_
9
#define csysutil_H_
10
11
//
12
// \file csysutil.h This file contains coordinate conversion convenience routines.
13
//
14
#include "
terrainCS/terrainCSDefines.h
"
15
#include "
terrainCS/coordSystem.h
"
16
#include <matrix/utmCoord.h>
17
#include <vl/utmView.h>
18
19
#define LAT_MIN_DEGREES -90.0
20
#define LAT_MAX_DEGREES 90.0
21
#define LON_MIN_DEGREES -180
22
#define LON_MAX_DEGREES 180.0
23
24
#define LAT_MIN_RADIANS DtDeg2Rad(LAT_MIN_DEGREES)
25
#define LAT_MAX_RADIANS DtDeg2Rad(LAT_MAX_DEGREES)
26
#define LON_MIN_RADIANS DtDeg2Rad(LON_MIN_DEGREES)
27
#define LON_MAX_RADIANS DtDeg2Rad(LON_MAX_DEGREES)
28
29
DT_DLL_terrainCS
void
setDtDegMinSecFromDegrees
(DtDegMinSec &dms,
double
deg);
30
31
// DMS string is of format <deg>:<min>:<sec>
32
DT_DLL_terrainCS
void
setDtDegMinSecFromString
(DtDegMinSec &dms,
const
char
* dmsString);
33
DT_DLL_terrainCS
void
setLatDtDegMinSecFromString
(DtDegMinSec &dms,
const
char
* dmsString);
34
DT_DLL_terrainCS
void
setLonDtDegMinSecFromString
(DtDegMinSec &dms,
const
char
* dmsString);
35
36
DT_DLL_terrainCS
void
setLatDtDegMinSecFromDegrees
(DtDegMinSec &dms,
double
deg);
37
DT_DLL_terrainCS
void
setLonDtDegMinSecFromDegrees
(DtDegMinSec &dms,
double
deg);
38
DT_DLL_terrainCS
void
setUtmOriginLatLonFromZone
(
long
zone,
double
northing,
double
easting,
double
scaleFactor = 0.9996);
39
DT_DLL_terrainCS
void
degreesFromDegMinSec
(
double
& deg, DtDegMinSec &dms);
40
41
DT_DLL_terrainCS
void
newGeod2Utm
(
double
lat,
double
lon,
long
*zone,
double
*northing,
double
*easting);
42
DT_DLL_terrainCS
void
newUtm2Geod
(
double
northing,
double
easting,
long
zone,
double
*lat,
double
*lon);
43
44
DT_DLL_terrainCS
bool
operator==
(
const
DtDegMinSec& lhs,
const
DtDegMinSec& rhs);
45
DT_DLL_terrainCS
bool
operator!=
(
const
DtDegMinSec& lhs,
const
DtDegMinSec& rhs);
46
47
DT_DLL_terrainCS
void
xformLocationViaGeocentric
(
Coordinate_System
* csFrom,
Coordinate_System
* csTo,
DtPoint
& in,
DtPoint
& out,
const
DtVector
* offset=0);
48
DT_DLL_terrainCS
void
xformLocationViaGeodetic
(
Coordinate_System
* csFrom,
Coordinate_System
* csTo,
DtPoint
& in,
DtPoint
& out,
const
DtVector
* offset=0);
49
50
#endif
51
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)