9 using namespace RdAirplane::DataWriterUtil;
12 using namespace boost;
17 (*pStream) << pPoint->
GetX(pCoordinateSystem) <<
" "
18 << pPoint->
GetY(pCoordinateSystem) <<
" "
19 << pPoint->
GetZ(pCoordinateSystem) <<
" ";
23 (*pStream) << pVector->
GetX(pCoordinateSystem) <<
" "
24 << pVector->
GetY(pCoordinateSystem) <<
" "
25 << pVector->
GetZ(pCoordinateSystem) <<
" ";
29 (*pStream) << pPoint->
GetR(pCoordinateSystem) <<
" "
30 << pPoint->
GetPhi(pCoordinateSystem) <<
" "
31 << pPoint->
GetTheta(pCoordinateSystem) <<
" ";
36 (*pStream) << utmPoint.get<0>()/
degree <<
" "
37 << utmPoint.get<1>()/
degree <<
" "
38 << utmPoint.get<2>()/
meter <<
" ";
42 Point origin(0,0,0,pCoordinateSystem);
43 Vector eX(1,0,0,pCoordinateSystem);
44 Vector eY(0,1,0,pCoordinateSystem);
45 Vector eZ(0,0,1,pCoordinateSystem);
double GetPhi(const CoordinateSystemPtr &coordinateSystem) const
azimuth (phi) angle in spherical and cylindrical coordinates
void writeCoordinateSystemToStream(utl::CoordinateSystemPtr pCoordinateSystem, utl::CoordinateSystemPtr pGlobalCoordinateSystem, std::ofstream *pStream)
double GetR(const CoordinateSystemPtr &coordinateSystem) const
radius r in spherical coordinates coordinates (distance to origin)
double GetTheta(const CoordinateSystemPtr &coordinateSystem) const
zenith (theta) angle in spherical coordinates
Class to hold and convert a point in geodetic coordinates.
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
void writeCoordinatesToStream_spheric(const utl::Point *pPoint, utl::CoordinateSystemPtr pCoordinateSystem, std::ofstream *pStream)
double GetX(const CoordinateSystemPtr &coordinateSystem) const
double GetY(const CoordinateSystemPtr &coordinateSystem) const
void writeVectorToStream_cartesian(const utl::Vector *pVector, utl::CoordinateSystemPtr pCoordinateSystem, std::ofstream *pStream)
void writeCoordinatesToStream_geodetic(const utl::Point *pPoint, std::ofstream *pStream)
void writeCoordinatesToStream_cartesian(const utl::Point *pPoint, utl::CoordinateSystemPtr pCoordinateSystem, std::ofstream *pStream)
double GetZ(const CoordinateSystemPtr &coordinateSystem) const
boost::tuple< double, double, double > GetGeodeticCoordinates() const
Get geodetic latitude, longitude, height.