22 static const char PREFIX[] =
".";
23 static const char REF_ROW[] =
"refRow";
24 static const char REF_COLUMN[] =
"refColumn";
25 static const char LAT[] =
"lat";
26 static const char LON[] =
"lon";
27 static const char AZIMUTH_TIME[] =
"azimuthTimeUTC";
28 static const char RANGE_TIME[] =
"rangeTime";
29 static const char INCIDENCE_ANGLE[] =
"incidenceAngle";
49 _refColumn(rhs._refColumn),
52 _azimuthTimeUTC(rhs._azimuthTimeUTC),
53 _rangeTime(rhs._rangeTime),
54 _incidenceAngle(rhs._incidenceAngle)
80 kwl.
add(pfx.c_str(), LAT,
_lat);
81 kwl.
add(pfx.c_str(), LON,
_lon);
91 static const char MODULE[] =
"InfoSceneCoord::loadState";
99 const char* lookup = 0;
102 lookup = kwl.
find(pfx.c_str(), REF_ROW);
111 << MODULE <<
" Keyword not found: " << REF_ROW <<
" in "<<pfx.c_str()<<
" path.\n";
115 lookup = kwl.
find(pfx.c_str(), REF_COLUMN);
124 << MODULE <<
" Keyword not found: " << REF_COLUMN <<
" in "<<pfx.c_str()<<
" path.\n";
128 lookup = kwl.
find(pfx.c_str(), LAT);
137 << MODULE <<
" Keyword not found: " << LAT <<
" in "<<pfx.c_str()<<
" path.\n";
141 lookup = kwl.
find(pfx.c_str(), LON);
150 << MODULE <<
" Keyword not found: " << LON <<
" in "<<pfx.c_str()<<
" path.\n";
154 lookup = kwl.
find(pfx.c_str(), AZIMUTH_TIME);
163 << MODULE <<
" Keyword not found: " << AZIMUTH_TIME <<
" in "<<pfx.c_str()<<
" path.\n";
167 lookup = kwl.
find(pfx.c_str(), RANGE_TIME);
176 << MODULE <<
" Keyword not found: " << RANGE_TIME <<
" in "<<pfx.c_str()<<
" path.\n";
180 lookup = kwl.
find(pfx.c_str(), INCIDENCE_ANGLE);
189 << MODULE <<
" Keyword not found: " << INCIDENCE_ANGLE <<
" in "<<pfx.c_str()<<
" path.\n";
This class represents an InfoSceneCoord.
double _incidenceAngle
IncidenceAngle (incidenceAngle node).
Represents serializable keyword/value map.
virtual ~InfoSceneCoord()
Destructor.
const char * find(const char *key) const
ossim_uint32 toUInt32() const
InfoSceneCoord()
Constructor.
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimString _azimuthTimeUTC
azimuth time (azimuthTimeUTC node).
ossim_uint32 _refRow
Reference Row (refRow node).
ossim_uint32 _refColumn
Reference Column (refColumn node).
double _lon
Longitude (lon node).
double _lat
Latitude (lat node).
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
double _rangeTime
range time (rangeTime node).
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
InfoSceneCoord & operator=(const InfoSceneCoord &rhs)
Affectation operator.