VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvUtil
DtCartesianCoordinateConverter.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/*********************************************************************
6
** $RCSfile: DtCartesianCoordinateConverter.h,v $ $Revision: 1.11 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DtCartesianCoordinateConverter_H_
13
#define DtCartesianCoordinateConverter_H_
14
15
#include <
vrvUtil/DtCoordinateConverter.h
>
16
17
#include <matrix/vlVector.h>
18
#include <matrix/vlTaitBryan.h>
19
#include <matrix/coordTransform.h>
20
21
namespace
makVrv
22
{
23
27
class
DT_DLL_VRVUTIL
DtCartesianCoordinateConverter
:
public
DtCoordinateConverter
28
{
29
public
:
30
32
DtCartesianCoordinateConverter
();
33
35
virtual
~
DtCartesianCoordinateConverter
();
36
38
virtual
DtCoordinateConverter
* clone()
const
;
39
44
virtual
void
init
(
45
double
x = 0.0,
double
y = 0.0,
double
z = 0.0,
46
double
h = 0.0,
double
p = 0.0,
double
r = 0.0);
47
52
virtual
void
init
(
53
const
DtVector
& translationOffset,
54
const
DtTaitBryan& rotationOffset);
55
59
virtual
bool
init
(
const
std::string& originstring);
60
62
virtual
std::string stringRep();
63
65
virtual
const
DtVector
& translationOffset()
const
;
66
68
virtual
const
DtTaitBryan& rotationOffset()
const
;
69
70
/********************* Conversions *****************************/
72
virtual
void
geocToCig(
const
DtVector
& geoc,
DtVector
& out)
const
;
73
75
virtual
void
cigToGeoc(
const
DtVector
& in,
DtVector
& geoc)
const
;
76
77
virtual
void
setupTopoFrame(
const
DtVector
& truePos);
78
79
virtual
void
cigToEnu_coordTrans(
const
DtVector
& cigPos,
DtVector
& enuPos)
const
;
80
virtual
void
cigToEnu_vecTrans(
const
DtVector
& cigVec,
DtVector
& enuVec)
const
;
81
virtual
void
enuToCig_coordTrans(
const
DtVector
& enuPos,
DtVector
& cigPos)
const
;
82
virtual
void
enuToCig_vecTrans(
const
DtVector
& enuVec,
DtVector
& cigVec)
const
;
83
84
public
:
85
86
static
DtCoordinateConverter
* create();
87
88
private
:
89
91
DtCartesianCoordinateConverter
(
const
DtCartesianCoordinateConverter
& orig);
92
94
DtCartesianCoordinateConverter
& operator=(
const
DtCartesianCoordinateConverter
& orig);
95
96
protected
:
97
98
DtVector
myTranslationOffset
;
99
DtTaitBryan
myRotationOffset
;
100
101
DtCoordTransform
myGeocToLocal
;
102
DtCoordTransform
myLocalToGeoc
;
103
};
104
105
}
106
107
#endif
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)