Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

srm::Coord3D Class Reference

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

#include <Coord.h>

Inheritance diagram for srm::Coord3D:

Inheritance graph
[legend]
Collaboration diagram for srm::Coord3D:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool isA (Coord_ClassType type) const
 Returns true if this coordinate is of the given class type.

const SRM_Long_FloatgetValues () const
 Returns the coordinate component values as an array.

void setValues (const Vector3 &values)
 Sets the coordinate component values as an array.

virtual const char * toString ()
 Returns a string of the 3D coodinate component values.

virtual const char * getMGRS (SRM_Integer precision)
 Return MGRS String corresponding to the 3D coordinate.

virtual void setCoord (const char *mgrs)
 Sets the components of this coordinate corresponsing to the MGRS location.


Protected Member Functions

 Coord3D (BaseSRF *srf)
 Constructor.


Protected Attributes

Vector3 _values
 An array to store the coordinate component values.


Detailed Description

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

See also:
Coord

Definition at line 229 of file Coord.h.


Member Function Documentation

virtual const char* srm::Coord3D::getMGRS SRM_Integer  precision  )  [virtual]
 

Return MGRS String corresponding to the 3D coordinate.

Note:
This computation requires that the coordinate be in CD SRF. This function will perform conversion to CD internally if necessary to produce the proper result.
Parameters:
precision in: the MGRS precision in the range => [ 1, 5 ], e.g., MGRS 31NAA6602100000 => level 5.
Exceptions:
This method throws srm::Exception
Note:
The coordinates must be in the valid regions.

The coordinate's SRF must be an Ellipsoid with A > 0.0 and F inverse in the range [ 250.0, 350.0 ].

virtual void srm::Coord3D::setCoord const char *  mgrs  )  [virtual]
 

Sets the components of this coordinate corresponsing to the MGRS location.

Note:
This computation requires that the coordinate be in CD SRF. This function will perform conversion to CD internally if necessary to produce the proper result.
Parameters:
mgrs in: the MGRS string from which the coordinate components values are computed.
Exceptions:
This method throws srm::Exception
Note:
The coordinates must be in the valid regions.

The coordinate's SRF must be an Ellipsoid with A > 0.0 and F inverse in the range [ 250.0, 350.0 ].


The documentation for this class was generated from the following file:
Spatial Reference Model C++ API Version 4.1 - 26 Jun 2006
Copyright © 2006 SEDRIS Docs by Doxygen 1.3.2