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

srm::Coord Class Reference

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

#include <Coord.h>

Inheritance diagram for srm::Coord:

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

Collaboration graph
[legend]
List of all members.

Public Types

enum  Coord_ClassType {
  COORD_TYP_TWO_D, COORD_TYP_SURFACE, COORD_TYP_THREE_D, COORD_TYP_LSA,
  COORD_TYP_CC, COORD_TYP_CD, COORD_TYP_SURF_CD, COORD_TYP_CM,
  COORD_TYP_EC, COORD_TYP_SURF_EC, COORD_TYP_EI, COORD_TYP_HAEC,
  COORD_TYP_HEEC, COORD_TYP_HEEQ, COORD_TYP_LCC, COORD_TYP_SURF_LCC,
  COORD_TYP_LCE_3D, COORD_TYP_LSR_3D, COORD_TYP_LSR_2D, COORD_TYP_LTSAS,
  COORD_TYP_SURF_LTSAS, COORD_TYP_LTSC, COORD_TYP_SURF_LTSC, COORD_TYP_LTSE,
  COORD_TYP_SURF_LTSE, COORD_TYP_M, COORD_TYP_SURF_M, COORD_TYP_OMS,
  COORD_TYP_SURF_OMS, COORD_TYP_LSP, COORD_TYP_PS, COORD_TYP_SURF_PS,
  COORD_TYP_PD, COORD_TYP_SURF_PD, COORD_TYP_SEC, COORD_TYP_SEQ,
  COORD_TYP_SME, COORD_TYP_SMD, COORD_TYP_TM, COORD_TYP_SURF_TM
}
 The type of a coordinate.


Public Member Functions

BaseSRFgetSRF () const
 Returns the SRF this coordinate belongs to.

virtual Coord_ClassType getClassType () const=0
 Returns the class type of this coordinate.

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

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


Protected Member Functions

 Coord (BaseSRF *srf)
 Constructor, requires an SRF.

Coordoperator= (const Coord &coord)
 copy constructor we do not copy the _srf because the coordinate should never switch from one srf to another.

virtual ~Coord ()
 Destructor, releases the SRF.


Protected Attributes

BaseSRF_srf
 The SRF this coordinate belongs to.


Detailed Description

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

Coordinates can be allocated on the stack, by using "new" and "delete", or by using the SRF class methods. If you use an SRF class method to create a coordinate, you should call the corresponding "freeCoordinate" method to free it.

Author:
TBD
See also:
Coord2D, Coord3D

Definition at line 33 of file Coord.h.


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