API Documentation
Loading...
Searching...
No Matches
Proj4CoordinateConverter.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
4namespace NDEVR
5{
7 {
8 public:
9 Proj4CoordinateConverter(const CoordinateProjection& to_projection, const CoordinateProjection& from_projection);
10 void setSourceProjection(const CoordinateProjection& from_projection) override;
11 void setDestinationProjection(const CoordinateProjection& to_projection) override;
12 Vertex<3, fltp08> convert(const Vertex<3, fltp08>& location, bool inverse = false) const override;
13 Vertex<2, fltp08> convert(const Vertex<2, fltp08>& location, bool inverse = false) const override;
14 Bounds<3, fltp08> convert(const Bounds<3, fltp08>& location, bool inverse = false) const override;
15 Bounds<2, fltp08> convert(const Bounds<2, fltp08>& location, bool inverse = false) const override;
16 Matrix<fltp08> convert(const Matrix<fltp08>& location, bool inverse = false) const override;
17 protected:
18 void* m_pj_to;
19 void* m_pj_from;
20 };
21
23 {
24 public:
25 static void SetupAsDefaultEngine();
26 virtual CoordinateConverter* createConverter(const CoordinateProjection& to_projection, const CoordinateProjection& from_projection) override;
27 };
28}
#define COORDINATE_PROJECTION_API
Definition DLLInfo.h:58
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:52
Allows for the creation of Coordinate spaces.
Definition CoordinateConverter.h:69
Stores different projections and then converts data from one projection into another.
Definition CoordinateConverter.h:44
Definition Matrix.hpp:176
Definition Proj4CoordinateConverter.h:23
virtual CoordinateConverter * createConverter(const CoordinateProjection &to_projection, const CoordinateProjection &from_projection) override
Definition Proj4CoordinateConverter.h:7
Bounds< 2, fltp08 > convert(const Bounds< 2, fltp08 > &location, bool inverse=false) const override
Vertex< 2, fltp08 > convert(const Vertex< 2, fltp08 > &location, bool inverse=false) const override
Bounds< 3, fltp08 > convert(const Bounds< 3, fltp08 > &location, bool inverse=false) const override
void setDestinationProjection(const CoordinateProjection &to_projection) override
void * m_pj_from
Definition Proj4CoordinateConverter.h:19
void * m_pj_to
Definition Proj4CoordinateConverter.h:18
Proj4CoordinateConverter(const CoordinateProjection &to_projection, const CoordinateProjection &from_projection)
Matrix< fltp08 > convert(const Matrix< fltp08 > &location, bool inverse=false) const override
void setSourceProjection(const CoordinateProjection &from_projection) override
Vertex< 3, fltp08 > convert(const Vertex< 3, fltp08 > &location, bool inverse=false) const override
A vertex or point. A specific type of Vector used primarily for spacial location information.
Definition Vertex.hpp:48
Definition ACIColor.h:37
Basic data about a particular coordinate projection. See https://ndevr.org/coordinate-projection/.
Definition CoordinateProjection.h:44