Main Page | Packages | Class Hierarchy | Alphabetical List | Compound List | Namespace Members | Compound Members | Related Pages

SRM.Coord Class Reference

The Coord abstract class is the base class for all coordinate types. More...

Inheritance diagram for SRM.Coord:

Inheritance graph
[legend]
List of all members.

Public Member Functions

BaseSRF getSRF ()
 Returns the SRF this coordassocSRFinate belongs to.

abstract double[] getValues ()
 Returns an array containing the coordinate component values.

Coord_ClassType getClassType ()
 Returns the class type of this coordinate.

Coord makeClone () throws SrmException
 Returns the copy of this coordinate object instance.

abstract boolean isEqual (Coord coord)
 Returns TRUE if the coordinate component values are "equal".

abstract String toString ()
 Returns the string with coordinate component labels and values.


Protected Member Functions

 Coord (BaseSRF assocSRF, Coord_ClassType type)
 Constructor setting the associated SRF and the concrete class type.


Detailed Description

The Coord abstract class is the base class for all coordinate types.

Coordinates can be allocated on the stack, by using "new", or by using the SRF class methods.

Author:
David Shen
See also:
Coord2D, Coord3D


Member Function Documentation

abstract double [] SRM.Coord.getValues  )  [pure virtual]
 

Returns an array containing the coordinate component values.

The returned array is of size 2 for 2D and surface, and size 3 for 3D

Implemented in SRM.Coord2D, SRM.Coord3D, and SRM.CoordSurf.

abstract boolean SRM.Coord.isEqual Coord  coord  )  [pure virtual]
 

Returns TRUE if the coordinate component values are "equal".

Note:
Two components of type "double" are equal if their difference is within Const.EPSILON

Implemented in SRM.Coord2D, SRM.Coord2D_LocalSpaceAzimuthal, SRM.Coord2D_LocalSpacePolar, SRM.Coord2D_LocalSpaceRectangular2D, SRM.Coord3D, SRM.Coord3D_Celestiodetic, SRM.Coord3D_EquidistantCylindrical, SRM.Coord3D_Mercator, and SRM.CoordSurf.


The documentation for this class was generated from the following file:
Spatial Reference Model Java API Version 4.4.0 - January 21, 2010
Copyright © 2010 SEDRIS Docs by Doxygen 1.3.2