WXP::EarthPoints Class Reference
[Utility objects]

This class creates an array a earth points (lat, lon). More...

#include "../include/EarthPoints.h"

List of all members.

Public Member Functions

int init ()
int init (int size)
 EarthPoints ()
 EarthPoints (int size)
 ~EarthPoints ()
 EarthPoints (const EarthPoints &data)
EarthPoints operator= (const EarthPoints &data)
int copy (const EarthPoints &data)
int clear ()
int expand (int size)
int add (float lat, float lon)
int add (EarthPoint ept)
int add1 (EarthPoint ept)
int add (int ind)
int add1 (int ind)
int set (int ind, float rlat, float rlon)
int set (int ind, EarthPoint &ept)
int get (int ind, EarthPoint &ept)
EarthPoint get (int ind)
float getLat (int ind)
float getLon (int ind)
float getLat1 (int ind)
float getLon1 (int ind)
int getNum ()
int offset (int ind, float rlat, float rlon)
int within (EarthPoint &ept)
int print ()

Detailed Description

This class creates an array a earth points (lat, lon).

Author:
Dan Vietor

Constructor & Destructor Documentation

EarthPoints::EarthPoints (  ) 

Constructor. Initializes the values.

References init().

EarthPoints::EarthPoints ( int  size  ) 

Constructor. Size the arrays.

References init().

EarthPoints::~EarthPoints (  ) 

Destructor.

EarthPoints::EarthPoints ( const EarthPoints data  ) 

Copy constructor.

Parameters:
data Strings class to copy from

References copy().


Member Function Documentation

int EarthPoints::add ( int  ind  ) 

Adds a new point from the existing list.

Parameters:
ind Index of point to copy to and of list

References add().

int EarthPoints::add ( EarthPoint  ept  ) 

Adds a new point.

Parameters:
pt EarthPoint class with values

References WXP::EarthPoint::lat, and WXP::EarthPoint::lon.

int EarthPoints::add ( float  rlat,
float  rlon 
)

Adds a new point.

Parameters:
rlat Sets lat
rlon Sets lon

Referenced by add().

int EarthPoints::copy ( const EarthPoints data  ) 

Copy data.

Parameters:
epts Strings class to copy from

References init().

Referenced by EarthPoints(), and operator=().

EarthPoint EarthPoints::get ( int  ind  ) 

Gets a specific point value from array.

Parameters:
ind Index of value to get
Returns:
Output EarthPoint class with values
int EarthPoints::get ( int  ind,
EarthPoint ept 
)

Gets a specific point value from array.

Parameters:
ind Index of value to get
Return values:
ept Output EarthPoint class with values

References WXP::EarthPoint::lat, and WXP::EarthPoint::lon.

Referenced by WXP::Plot::drawLine().

int WXP::EarthPoints::getNum (  )  [inline]

Return the number of points

Referenced by WXP::Plot::drawLine().

int EarthPoints::init ( int  size  ) 

Initializes the values

int EarthPoints::init (  ) 

Initializes the values

Referenced by copy(), and EarthPoints().

int EarthPoints::offset ( int  ind,
float  rlat,
float  rlon 
)

Offsets a specific point value in array.

Parameters:
ind Index of value to set
rx New x value
ry New y value
EarthPoints EarthPoints::operator= ( const EarthPoints data  ) 

Assignment operator. Used to overload copying

Parameters:
data String class to copy from

References copy().

int EarthPoints::print (  ) 

Prints the values to standard output.

int EarthPoints::set ( int  ind,
EarthPoint ept 
)

Sets a specific point value in array.

Parameters:
ind Index of value to set
ept New values

References WXP::EarthPoint::lat, and WXP::EarthPoint::lon.

int EarthPoints::set ( int  ind,
float  rlat,
float  rlon 
)

Sets a specific point value in array.

Parameters:
ind Index of value to set
rlat New lat value
rlon New lon value

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

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1