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. More...
 
 Point (const std::vector< double > &llPosition)
 Constructor. More...
 
 Point (const Point &right)
 Copy Constructor. More...
 
virtual void setXY (const std::vector< double > &aPosition)
 set mercator projection (XY) position More...
 
virtual const std::vector< double > & getXY ()
 get mercator projection (XY) position More...
 
virtual const std::vector< double > & getUserCoords ()
 get user position More...
 
virtual void setUserCoords (const std::vector< double > &uPosition)
 set user position More...
 
void setLL (const std::vector< double > &llPosition)
 set lat/lon position More...
 
const std::vector< double > & getLL ()
 get Lat/Lon position More...
 
PointClone ()
 Clone Self. More...
 
- Public Member Functions inherited from DFLib::Abstract::Point
virtual ~Point ()
 virtual destructor because there should always be one More...
 

Private Member Functions

void mercToLL ()
 
void llToMerc ()
 

Private Attributes

std::vector< double > theMerc
 
bool mercDirty
 
std::vector< double > theLatLon
 
bool llDirty
 
projPJ latlonProj
 
projPJ mercProj
 

Constructor & Destructor Documentation

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

Default Constructor.

Here is the caller graph for this function:

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

Constructor.

Parameters
llPositioncoordinates in Lat Lon
DFLib::LatLon::Point::Point ( const Point right)

Copy Constructor.

Member Function Documentation

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:

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:

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:

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:

void DFLib::LatLon::Point::llToMerc ( )
private

Here is the caller graph for this function:

void DFLib::LatLon::Point::mercToLL ( )
private

Here is the caller graph for this function:

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

set lat/lon position

Parameters
llPositioncoordinates in Lat/Lon
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.

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

projPJ DFLib::LatLon::Point::latlonProj
private
bool DFLib::LatLon::Point::llDirty
private
bool DFLib::LatLon::Point::mercDirty
private
projPJ DFLib::LatLon::Point::mercProj
private
std::vector<double> DFLib::LatLon::Point::theLatLon
private
std::vector<double> DFLib::LatLon::Point::theMerc
private

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