Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
This abstract class is the base class for classes describing a horizontal datum. More...
#include <ilviews/maps/projection/hdatum.h>
Public Member Functions | |
virtual IlvHorizontalDatum * | copy () const =0 |
Returns a new copy of this datum. | |
virtual IlBoolean | equivalent (const IlvHorizontalDatum *d) const =0 |
Returns IlTrue if the specified datum is equivalent to this. | |
const IlvEllipsoid * | getEllipsoid () const |
Returns the ellipsoid for this datum. | |
IlvMapsError | getInitStatus () const |
Returns the initialization status of this datum. | |
void | save (IlvOutputFile &file) const |
Saves an instance of a subclass of IlvHorizontalDatum to the specified output file. | |
virtual void | write (IlvOutputFile &file) const |
Write the object to an IlvOutputFile . | |
Static Public Member Functions | |
static const IlvHorizontalDatumConverterFactory * | GetConverterFactory () |
Returns a factory than can create converters to convert coordinates from one datum to another. | |
static IlvHorizontalDatum * | Load (IlvInputFile &inputFile) |
This static method loads a datum from the specified file. | |
Protected Member Functions | |
IlvHorizontalDatum (IlvInputFile &file) | |
Reads an IlvHorizontalDatum from specified input file. | |
IlvHorizontalDatum (const IlvHorizontalDatum &datum) | |
Initializes a new instance of IlvHorizontalDatum , copying the specified datum. | |
IlvHorizontalDatum (const IlvEllipsoid &ellipsoid) | |
Initializes a new instance of IlvHorizontalDatum . | |
void | setInitStatus (IlvMapsError status) |
Sets the initialization status of this datum. |
This abstract class is the base class for classes describing a horizontal datum.
Library: ilvmaps
IlvHorizontalDatum::IlvHorizontalDatum | ( | const IlvEllipsoid & | ellipsoid | ) | [protected] |
Initializes a new instance of IlvHorizontalDatum
.
ellipsoid | The ellipsoid for this datum. |
IlvHorizontalDatum::IlvHorizontalDatum | ( | const IlvHorizontalDatum & | datum | ) | [protected] |
Initializes a new instance of IlvHorizontalDatum
, copying the specified datum.
source | The source datum. |
IlvHorizontalDatum::IlvHorizontalDatum | ( | IlvInputFile & | file | ) | [protected] |
Reads an IlvHorizontalDatum
from specified input file.
file | The input file. |
virtual IlBoolean IlvHorizontalDatum::equivalent | ( | const IlvHorizontalDatum * | d | ) | const [pure virtual] |
Returns IlTrue
if the specified datum is equivalent to this.
datum | The datum to test against. |
IlTrue
if the specified datum describes the same coordinate system as this datum. Implemented in IlvHorizontalShiftDatum.
static const IlvHorizontalDatumConverterFactory* IlvHorizontalDatum::GetConverterFactory | ( | ) | [static] |
Returns a factory than can create converters to convert coordinates from one datum to another.
The default factory supports the conversion using the Molodensky formula.
const IlvEllipsoid* IlvHorizontalDatum::getEllipsoid | ( | ) | const |
Returns the ellipsoid for this datum.
IlvMapsError IlvHorizontalDatum::getInitStatus | ( | ) | const |
Returns the initialization status of this datum.
IlvMaps::NoError()
if this datum has been initialized successfully, an error otherwise. static IlvHorizontalDatum* IlvHorizontalDatum::Load | ( | IlvInputFile & | inputFile | ) | [static] |
This static method loads a datum from the specified file.
If the load operation fails, this function returns a null pointer, otherwise, it returns a pointer to the datum which was read. If the file contained invalid parameters, the returned datum can have an error status.
The returned datum must be deleted by the user.
inputFile | The file to read the projection from. |
IlvHorizontalDatum
or a null pointer if the load operation fails. void IlvHorizontalDatum::save | ( | IlvOutputFile & | file | ) | const |
Saves an instance of a subclass of IlvHorizontalDatum
to the specified output file.
file | The file to write the datum to. |
void IlvHorizontalDatum::setInitStatus | ( | IlvMapsError | status | ) | [protected] |
Sets the initialization status of this datum.
This method sets the initialization status of this datum. Subclasses of IlvHorizontalDatum
should call this method when their initialization is not successful.
status | The initialization status. |
virtual void IlvHorizontalDatum::write | ( | IlvOutputFile & | file | ) | const [virtual] |
Write the object to an IlvOutputFile
.
This method saves the parameters of a horizontal datum to the specified output file. This method has to be overridden by subclasses of IlvHorizontalDatum
that need to save additional parameters.
This method should not be directly called. The method save()
should be used instead.
file | The output file. |
Reimplemented in IlvHorizontalShiftDatum.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.