OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Sensor.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #include <otb/Sensor.h>
13 #include <otb/SensorParams.h>
14 #include <otb/PlatformPosition.h>
15 
16 #include <cstring>
17 
18 namespace ossimplugins
19 {
20 
21 
23 {
24  _params = params->Clone();
25  _position = position->Clone();
26 }
27 
29 {
30  if(_params != NULL)
31  {
32  delete _params;
33  }
34 
35  if(_position != NULL)
36  {
37  delete _position;
38  }
39 }
40 }
This class handles the platform position.
virtual ~Sensor()
Destructor.
Definition: Sensor.cpp:28
This class handles the sensor parameters.
Definition: SensorParams.h:29
PlatformPosition * Clone() const
PlatformPosition * _position
Definition: Sensor.h:55
virtual SensorParams * Clone()
Definition: SensorParams.h:98
Sensor(SensorParams *params, PlatformPosition *position)
Constructor.
Definition: Sensor.cpp:22
SensorParams * _params
Definition: Sensor.h:54