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

DF report in user-specified coordinates. More...

#include <DF_Proj_Report.hpp>

Inheritance diagram for DFLib::Proj::Report:
Inheritance graph
[legend]
Collaboration diagram for DFLib::Proj::Report:
Collaboration graph
[legend]

Public Member Functions

 Report (const std::vector< double > &theLocationUser, const double &bearing, const double &std_dev, const std::string &theName, const std::vector< std::string > &projArgs)
 DF report constructor for user-specified coordinate system. More...
 
 Report (const Report &right)
 Copy constructor. More...
 
Reportoperator= (const Report &rhs)
 assignment operator More...
 
virtual ~Report ()
 virtual destructor because base classes need one More...
 
virtual const std::vector< double > & getReceiverLocation ()
 return receiver location in double vector of XY coords More...
 
virtual Point getReceiverPoint () const
 return a copy (yes, a COPY) of the receiver point object More...
 
virtual double getReportBearingRadians () const
 return reported bearing to target More...
 
virtual double getBearing () const
 
virtual double getBearingStandardDeviationRadians () const
 
virtual double getSigma () const
 
virtual void setReceiverLocationUser (const std::vector< double > &theLocation)
 
virtual void setReceiverLocationMercator (const std::vector< double > &theLocation)
 
virtual void setBearing (double Bearing)
 set bearing in degrees More...
 
virtual void setSigma (double Sigma)
 set standard deviation in degrees More...
 
virtual void setUserProj (const std::vector< std::string > &projArgs)
 allow us to change the projection of the user coordinates More...
 
- Public Member Functions inherited from DFLib::Abstract::Report
 Report (std::string n, bool v)
 constructor for base Report class More...
 
 Report (const Report &right)
 copy constructor for base Report class More...
 
virtual const std::string & getReportName () const
 Return the name of this report. More...
 
virtual void setReportName (const std::string &theName)
 set the name of this report More...
 
virtual void setValid ()
 Set this report as valid. More...
 
virtual void setInvalid ()
 Set this report as invalid. More...
 
virtual void toggleValidity ()
 
virtual bool isValid () const
 check this report's validity More...
 
void computeFixCut (DFLib::Abstract::Report *Report2, Point &returnPoint, double &cutAngle, FixStatus &fs)
 compute point at which the line from this report intersects that from another More...
 
double computeBearingToPoint (std::vector< double > &aPoint)
 compute bearing from this reporting location to some other point More...
 
double computeDistanceToPoint (std::vector< double > &aPoint)
 compute distance from this reporting location to some other point. More...
 

Private Attributes

PointreceiverLocation
 
double bearing
 
double sigma
 

Detailed Description

DF report in user-specified coordinates.

Constructor & Destructor Documentation

DFLib::Proj::Report::Report ( const std::vector< double > &  theLocation,
const double &  Bearing,
const double &  std_dev,
const std::string &  theName,
const std::vector< std::string > &  projArgs 
)

DF report constructor for user-specified coordinate system.

Parameters
theLocationposition vector in lat/lon of this report.
Bearingbearing IN DEGREES
std_devstandard deviation in degrees
projArgsa vector of strings to pass to pj_init in order to define the user coordinate system.
DFLib::Proj::Report::Report ( const Report right)

Copy constructor.

DFLib::Proj::Report::~Report ( )
virtual

virtual destructor because base classes need one

Reimplemented from DFLib::Abstract::Report.

Member Function Documentation

double DFLib::Proj::Report::getBearing ( ) const
inlinevirtual
double DFLib::Proj::Report::getBearingStandardDeviationRadians ( ) const
inlinevirtual

Implements DFLib::Abstract::Report.

Here is the caller graph for this function:

const std::vector< double > & DFLib::Proj::Report::getReceiverLocation ( )
inlinevirtual

return receiver location in double vector of XY coords

Implements DFLib::Abstract::Report.

Point DFLib::Proj::Report::getReceiverPoint ( ) const
virtual

return a copy (yes, a COPY) of the receiver point object

Here is the caller graph for this function:

double DFLib::Proj::Report::getReportBearingRadians ( ) const
inlinevirtual

return reported bearing to target

It is essential that getReportBearingRadians always return the bearing in the correct range $0<\theta<2\pi$.

Returns
bearing in radians, always in the range $0<\theta<2\pi$.

Implements DFLib::Abstract::Report.

Here is the caller graph for this function:

double DFLib::Proj::Report::getSigma ( ) const
inlinevirtual
Report & DFLib::Proj::Report::operator= ( const Report rhs)

assignment operator

Here is the call graph for this function:

void DFLib::Proj::Report::setBearing ( double  Bearing)
inlinevirtual

set bearing in degrees

Here is the caller graph for this function:

void DFLib::Proj::Report::setReceiverLocationMercator ( const std::vector< double > &  theLocation)
inlinevirtual
void DFLib::Proj::Report::setReceiverLocationUser ( const std::vector< double > &  theLocation)
inlinevirtual
void DFLib::Proj::Report::setSigma ( double  Sigma)
inlinevirtual

set standard deviation in degrees

void DFLib::Proj::Report::setUserProj ( const std::vector< std::string > &  projArgs)
inlinevirtual

allow us to change the projection of the user coordinates

Member Data Documentation

double DFLib::Proj::Report::bearing
private
Point* DFLib::Proj::Report::receiverLocation
private
double DFLib::Proj::Report::sigma
private

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