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

SRM.Coord3D Class Reference

The Coord3D abstract class is used for representing 3D coordinates. More...

Inheritance diagram for SRM.Coord3D:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

void setValues (double[] values) throws SrmException
 Sets the coordinate component values as an array.

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

void copyTo (Coord3D coord) throws SrmException
 Copies the component values from this coordinate to the parameter coordinate.

String getMGRS (int precision) throws SrmException
void setCoord (String strMGRS) throws SrmException

Protected Member Functions

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

String impl_get_mgrs (int precision) throws SrmException
void impl_set_coord (String strMGRS) throws SrmException

Protected Attributes

double[] _values = new double[3]
 An array to store the coordinate component values.


Detailed Description

The Coord3D abstract class is used for representing 3D coordinates.

See also:
Coord


Member Function Documentation

void SRM.Coord3D.copyTo Coord3D  coord  )  throws SrmException
 

Copies the component values from this coordinate to the parameter coordinate.

Note:
The parameter coordinate and this coordinate must be associated with the same SRF.

double [] SRM.Coord3D.getValues  )  [virtual]
 

Returns the coordinate component values as an array.

Returns:
an array of size 3 containing the 3D coordinate component values

Implements SRM.Coord.

boolean SRM.Coord3D.isEqual Coord  coord  )  [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

Implements SRM.Coord.

Reimplemented in SRM.Coord3D_Celestiodetic, SRM.Coord3D_EquidistantCylindrical, and SRM.Coord3D_Mercator.

void SRM.Coord3D.setValues double  values[]  )  throws SrmException
 

Sets the coordinate component values as an array.

Parameters:
values in: array of size 3 containing the 3D coordinate component values


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