DFLib Release 1.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DFLib::LatLon::Point Class Reference

#include <DF_LatLon_Point.hpp>

Inheritance diagram for DFLib::LatLon::Point:
Inheritance graph
[legend]
Collaboration diagram for DFLib::LatLon::Point:
Collaboration graph
[legend]

Public Member Functions

 Point ()
 Default Constructor.
 
 Point (const std::vector< double > &llPosition)
 Constructor.
 
 Point (const Point &right)
 Copy Constructor.
 
bool isUserProjRadians () const
 return true if user projection expects input in radians
 
virtual void setXY (const std::vector< double > &aPosition)
 set mercator projection (XY) position
 
virtual const std::vector< double > & getXY ()
 get mercator projection (XY) position
 
virtual const std::vector< double > & getUserCoords ()
 get user position
 
virtual void setUserCoords (const std::vector< double > &uPosition)
 set user position
 
void setLL (const std::vector< double > &llPosition)
 set lat/lon position
 
const std::vector< double > & getLL ()
 get Lat/Lon position
 
PointClone ()
 Clone Self.
 
 ~Point ()
 virtual destructor because there should always be one
 
virtual ~Point ()
 virtual destructor because there should always be one
 
virtual void setXY (const std::vector< double > &aPosition)=0
 Set X-Y coordinates of the point.
 
virtual const std::vector< double > & getXY ()=0
 Get X-Y coordinates of the point.
 
virtual const std::vector< double > & getUserCoords ()=0
 Get coordinates in the user's coordinate system.
 
virtual void setUserCoords (const std::vector< double > &uPosition)=0
 Set coordinates in the user's coordinate system.
 
virtual PointClone ()=0
 Clone Self.
 

Private Member Functions

void mercToLL ()
 
void llToMerc ()
 

Private Attributes

std::vector< double > theMerc
 
bool mercDirty
 
std::vector< double > theLatLon
 
bool llDirty
 
PJ * convertPJ
 

Constructor & Destructor Documentation

◆ Point() [1/3]

DFLib::LatLon::Point::Point ( )

Default Constructor.

Here is the caller graph for this function:

◆ Point() [2/3]

DFLib::LatLon::Point::Point ( const std::vector< double > &  llPosition)

Constructor.

Parameters
llPositioncoordinates in Lat Lon

◆ Point() [3/3]

DFLib::LatLon::Point::Point ( const Point right)

Copy Constructor.

◆ ~Point()

DFLib::LatLon::Point::~Point ( )
virtual

virtual destructor because there should always be one

Reimplemented from DFLib::Abstract::Point.

Member Function Documentation

◆ Clone()

Point * DFLib::LatLon::Point::Clone ( )
virtual

Clone Self.

Make a copy of yourself, and return a pointer to the copy. This is useful as a prototype: pass a pointer to any concrete implementation to a function, and that function has a way of making other objects of precisely the same type by cloning.

Returns
pointer to

Implements DFLib::Abstract::Point.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLL()

const std::vector< double > & DFLib::LatLon::Point::getLL ( )

get Lat/Lon position

Returns
vector of coordinates in lat/lon
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUserCoords()

virtual const std::vector< double > & DFLib::LatLon::Point::getUserCoords ( )
inlinevirtual

get user position

This is just a wrapper for getLL as needed by the abstract interface

Implements DFLib::Abstract::Point.

Here is the caller graph for this function:

◆ getXY()

const std::vector< double > & DFLib::LatLon::Point::getXY ( )
virtual

get mercator projection (XY) position

Returns
vector of coordinates in mercator projection

Implements DFLib::Abstract::Point.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isUserProjRadians()

bool DFLib::LatLon::Point::isUserProjRadians ( ) const

return true if user projection expects input in radians

Here is the caller graph for this function:

◆ llToMerc()

void DFLib::LatLon::Point::llToMerc ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mercToLL()

void DFLib::LatLon::Point::mercToLL ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLL()

void DFLib::LatLon::Point::setLL ( const std::vector< double > &  llPosition)

set lat/lon position

Parameters
llPositioncoordinates in Lat/Lon

◆ setUserCoords()

virtual void DFLib::LatLon::Point::setUserCoords ( const std::vector< double > &  uPosition)
inlinevirtual

set user position

This is just a wrapper for setLL as needed by the abstract interface

Implements DFLib::Abstract::Point.

◆ setXY()

void DFLib::LatLon::Point::setXY ( const std::vector< double > &  aPosition)
virtual

set mercator projection (XY) position

Parameters
aPositioncoordinates in mercator projection

Implements DFLib::Abstract::Point.

Here is the caller graph for this function:

Member Data Documentation

◆ convertPJ

PJ* DFLib::LatLon::Point::convertPJ
private

◆ llDirty

bool DFLib::LatLon::Point::llDirty
private

◆ mercDirty

bool DFLib::LatLon::Point::mercDirty
private

◆ theLatLon

std::vector<double> DFLib::LatLon::Point::theLatLon
private

◆ theMerc

std::vector<double> DFLib::LatLon::Point::theMerc
private

The documentation for this class was generated from the following files: