Forward declaration of the File class.
More...
|
| | CoordinateConverter (const CoordinateProjection &to_projection, const CoordinateProjection &from_projection) |
| | Constructs a CoordinateConverter with the given source and destination projections.
|
|
virtual | ~CoordinateConverter () |
| | Virtual destructor for safe polymorphic deletion.
|
| virtual Bounds< 2, fltp08 > | convert (const Bounds< 2, fltp08 > &location, bool inverse=false) const =0 |
| | Converts a 2D bounding box from one projection to another.
|
| virtual Bounds< 3, fltp08 > | convert (const Bounds< 3, fltp08 > &location, bool inverse=false) const =0 |
| | Converts a 3D bounding box from one projection to another.
|
| virtual Matrix< fltp08 > | convert (const Matrix< fltp08 > &location, bool inverse=false) const =0 |
| | Converts a transformation matrix from one projection to another.
|
| virtual Vertex< 2, fltp08 > | convert (const Vertex< 2, fltp08 > &location, bool inverse=false) const =0 |
| | Converts a 2D vertex from one projection to another.
|
| virtual Vertex< 3, fltp08 > | convert (const Vertex< 3, fltp08 > &location, bool inverse=false) const =0 |
| | Converts a 3D vertex from one projection to another.
|
| CoordinateProjection | fromProjection () |
| | Returns the source coordinate projection.
|
| virtual void | setDestinationProjection (const CoordinateProjection &to_projection)=0 |
| | Sets the destination coordinate projection.
|
| virtual void | setSourceProjection (const CoordinateProjection &from_projection)=0 |
| | Sets the source coordinate projection.
|
| CoordinateProjection | toProjection () |
| | Returns the destination coordinate projection.
|
Forward declaration of the File class.
Stores different projections and then converts data from one projection into another.
- See also
- CoordinateProjection, CoordinateProjectionManager
Definition at line 45 of file CoordinateConverter.h.
◆ CoordinateConverter()
◆ convert() [1/5]
| virtual Bounds< 2, fltp08 > CoordinateConverter::convert |
( |
const Bounds< 2, fltp08 > & | location, |
|
|
bool | inverse = false ) const |
|
pure virtual |
Converts a 2D bounding box from one projection to another.
- Parameters
-
| [in] | location | The 2D bounds to convert. |
| [in] | inverse | If true, performs the inverse conversion (destination to source). |
- Returns
- The converted 2D bounds.
Implemented in Proj4CoordinateConverter.
◆ convert() [2/5]
| virtual Bounds< 3, fltp08 > CoordinateConverter::convert |
( |
const Bounds< 3, fltp08 > & | location, |
|
|
bool | inverse = false ) const |
|
pure virtual |
Converts a 3D bounding box from one projection to another.
- Parameters
-
| [in] | location | The 3D bounds to convert. |
| [in] | inverse | If true, performs the inverse conversion (destination to source). |
- Returns
- The converted 3D bounds.
Implemented in Proj4CoordinateConverter.
◆ convert() [3/5]
Converts a transformation matrix from one projection to another.
- Parameters
-
| [in] | location | The matrix to convert. |
| [in] | inverse | If true, performs the inverse conversion (destination to source). |
- Returns
- The converted matrix.
Implemented in Proj4CoordinateConverter.
◆ convert() [4/5]
| virtual Vertex< 2, fltp08 > CoordinateConverter::convert |
( |
const Vertex< 2, fltp08 > & | location, |
|
|
bool | inverse = false ) const |
|
pure virtual |
Converts a 2D vertex from one projection to another.
- Parameters
-
| [in] | location | The 2D coordinate to convert. |
| [in] | inverse | If true, performs the inverse conversion (destination to source). |
- Returns
- The converted 2D coordinate.
Implemented in Proj4CoordinateConverter.
◆ convert() [5/5]
| virtual Vertex< 3, fltp08 > CoordinateConverter::convert |
( |
const Vertex< 3, fltp08 > & | location, |
|
|
bool | inverse = false ) const |
|
pure virtual |
Converts a 3D vertex from one projection to another.
- Parameters
-
| [in] | location | The 3D coordinate to convert. |
| [in] | inverse | If true, performs the inverse conversion (destination to source). |
- Returns
- The converted 3D coordinate.
Implemented in Proj4CoordinateConverter.
◆ fromProjection()
◆ setDestinationProjection()
| virtual void CoordinateConverter::setDestinationProjection |
( |
const CoordinateProjection & | to_projection | ) |
|
|
pure virtual |
Sets the destination coordinate projection.
- Parameters
-
| [in] | to_projection | The new destination projection. |
Implemented in Proj4CoordinateConverter.
◆ setSourceProjection()
| virtual void CoordinateConverter::setSourceProjection |
( |
const CoordinateProjection & | from_projection | ) |
|
|
pure virtual |
Sets the source coordinate projection.
- Parameters
-
| [in] | from_projection | The new source projection. |
Implemented in Proj4CoordinateConverter.
◆ toProjection()
Returns the destination coordinate projection.
- Returns
- The projection that output coordinates will be converted into.
Definition at line 71 of file CoordinateConverter.h.
References m_to_projection.
The documentation for this class was generated from the following file: