OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | List of all members
ossimplugins::Sensor Class Referenceabstract

This class provides basic location services. More...

#include <Sensor.h>

Inheritance diagram for ossimplugins::Sensor:
ossimplugins::SarSensor

Public Member Functions

 Sensor (SensorParams *params, PlatformPosition *position)
 Constructor. More...
 
virtual ~Sensor ()
 Destructor. More...
 
virtual int ImageToWorld (double distance, JSDDateTime time, double height, double &lon, double &lat) const =0
 This function is able to convert image coordinates into geodetic world coordinates using a sensor model. More...
 

Protected Attributes

SensorParams_params
 
PlatformPosition_position
 

Detailed Description

This class provides basic location services.

Definition at line 29 of file Sensor.h.

Constructor & Destructor Documentation

◆ Sensor()

ossimplugins::Sensor::Sensor ( SensorParams params,
PlatformPosition position 
)

Constructor.

Remarks
This constructor creates a copy of the sensor model (params and position)

Definition at line 22 of file Sensor.cpp.

References _params, _position, ossimplugins::PlatformPosition::Clone(), and ossimplugins::SensorParams::Clone().

23 {
24  _params = params->Clone();
25  _position = position->Clone();
26 }
PlatformPosition * Clone() const
PlatformPosition * _position
Definition: Sensor.h:55
virtual SensorParams * Clone()
Definition: SensorParams.h:98
SensorParams * _params
Definition: Sensor.h:54

◆ ~Sensor()

ossimplugins::Sensor::~Sensor ( )
virtual

Destructor.

Definition at line 28 of file Sensor.cpp.

References _params, and _position.

29 {
30  if(_params != NULL)
31  {
32  delete _params;
33  }
34 
35  if(_position != NULL)
36  {
37  delete _position;
38  }
39 }
PlatformPosition * _position
Definition: Sensor.h:55
SensorParams * _params
Definition: Sensor.h:54

Member Function Documentation

◆ ImageToWorld()

virtual int ossimplugins::Sensor::ImageToWorld ( double  distance,
JSDDateTime  time,
double  height,
double &  lon,
double &  lat 
) const
pure virtual

This function is able to convert image coordinates into geodetic world coordinates using a sensor model.

Parameters
distance: Slant range of the image point
time: Azimuth time of the image point
height: Altitude of the world point
Return values
lon: Longitude of the world point
lat: Latitude of the world point

Implemented in ossimplugins::SarSensor.

Member Data Documentation

◆ _params

SensorParams* ossimplugins::Sensor::_params
protected

Definition at line 54 of file Sensor.h.

Referenced by ossimplugins::SarSensor::ImageToWorld(), Sensor(), and ~Sensor().

◆ _position

PlatformPosition* ossimplugins::Sensor::_position
protected

Definition at line 55 of file Sensor.h.

Referenced by ossimplugins::SarSensor::ImageToWorld(), Sensor(), and ~Sensor().


The documentation for this class was generated from the following files: