DEIMOS
Earth Observation Mission CFI Software
Pointing Software User Manual
ESA

EECFI::DemId Class Reference

Class for the DEM parameters. More...

Inheritance diagram for EECFI::DemId:
EECFI::CfiId EECFI::CfiClass

List of all members.

Public Member Functions

 DemId ()
 Empty Class constructor.
virtual ~DemId () EXCEPT
 Class destructor.
void init (long mode, long model, const std::string &demFile)
 Initialise the DEM parameters.
double compute (const ModelId &modelId, double lon, double lat) const
 Compute altitude over the sea level for a point in the Earth.
SatId satId () const
 Get satellite id.
DemConfFile getData () const
 Get DEM parameters.
DemInfo getInfo (const ModelId &modelId, double lon, double lat) const
 Get DEM source data.
void configure (const DemIdConfig &config)
 Configure DEM cache.
double getCellValue (long row, long column) const
 Get a DEM value for the given global row/column.
void getCellGeod (long row, long column, double &lat, double &lon) const
 Get longitude/latitude corresponding to the the DEM point with the given global row/column.
void operator= (const DemId &demIdIn)
 Copy operator.

Protected Member Functions

void eraseObject ()
 Erase object and free memory.
GenericIdgetId () const
 Get the internal id (xp_dem_id C struct).

Detailed Description

Class for the DEM parameters.


Constructor & Destructor Documentation

EECFI::DemId::DemId (  ) 

Empty Class constructor.

EECFI::DemId::~DemId (  )  [virtual]

Class destructor.

References eraseObject().


Member Function Documentation

double EECFI::DemId::compute ( const ModelId modelId,
double  lon,
double  lat 
) const

Compute altitude over the sea level for a point in the Earth.

Parameters:
modelId Model id.
lon Longitude.
lat Latitude.
Returns:
Altitude corresponding to lon and lat.

References EECFI::CfiClass::throwWarn.

void EECFI::DemId::configure ( const DemIdConfig config  ) 

Configure DEM cache.

Parameters:
config DEM ID configuration. The "command" parameter in the "config" object has to be compatible with the DEM cache type in the DemId object: XPCFI_PRELOAD_CACHE cannot be used with the command XPCFI_SET_MAX_SIZE and XPCFI_FIFO_CACHE cannot be used with the command XPCFI_LOAD_TILE_SET.

References EECFI::DemIdConfig::area, EECFI::DemIdConfig::command, EECFI::LatLonArea::latMax, EECFI::LatLonArea::latMin, EECFI::LatLonArea::lonMax, EECFI::LatLonArea::lonMin, EECFI::DemIdConfig::maxCacheSize, and EECFI::CfiClass::throwWarn.

void EECFI::DemId::eraseObject (  )  [protected]

Erase object and free memory.

References EECFI::CfiId::status(), EECFI::CfiId::subtractInstance(), and EECFI::CfiClass::throwWarn.

Referenced by operator=(), and ~DemId().

void EECFI::DemId::getCellGeod ( long  row,
long  column,
double &  lat,
double &  lon 
) const

Get longitude/latitude corresponding to the the DEM point with the given global row/column.

The DemId::getCellGeod method converts row and column indexes to associated latitude and longitude according to DEM caracteristics.

Parameters:
row The index of the row to be converted.
column The index of the column to be converted.
lon Longitude [deg].
lat Latitude [deg].

References EECFI::CfiClass::throwWarn.

double EECFI::DemId::getCellValue ( long  row,
long  column 
) const

Get a DEM value for the given global row/column.

The DemId::getCellValue method directly retrieves the value of a DEM cell.

Parameters:
row The index of the row to be retrieved.
column The index of the column to be retrieved.
Returns:
Altitude corresponding to row and column.

References EECFI::CfiClass::throwWarn.

DemInfo EECFI::DemId::getInfo ( const ModelId modelId,
double  lon,
double  lat 
) const

Get DEM source data.

Parameters:
modelId Model id.
lon Longitude.
lat Latitude.
Returns:
DEM source data corresponding to lon and lat

References EECFI::DemInfo::dataSource, EECFI::DemInfo::demModel, and EECFI::CfiClass::throwWarn.

void EECFI::DemId::init ( long  mode,
long  model,
const std::string &  demFile 
)

Initialise the DEM parameters.

void EECFI::DemId::operator= ( const DemId demIdIn  ) 

Copy operator.

Parameters:
demIdIn DemId we want to copy.

References EECFI::CfiId::addInstance(), EECFI::GenericId::ee_id, eraseObject(), and getId().

SatId EECFI::DemId::satId (  )  const

Get satellite id.

Returns:
Satellite id.

Generated on Mon Dec 20 2021 22:35:01 for by doxygen 1.7.1