21 static const char SCENE_COORD[] =
"sceneCoord";
22 static const char NUMBER_OF_SCENE_CORNER_COORD[] =
"numberOfSceneCornerCoord";
23 static const char SCENE_CENTER_COORD[] =
"sceneCenterCoord";
24 static const char SCENE_CORNER_COORD[] =
"sceneCornerCoord";
28 _numberOfSceneCoord(0),
30 _tabCornersSceneCoord()
40 _numberOfSceneCoord(rhs._numberOfSceneCoord),
41 _centerSceneCoord(rhs._centerSceneCoord),
42 _tabCornersSceneCoord(rhs._tabCornersSceneCoord)
72 std::string s = pfx +
"." + SCENE_CENTER_COORD;
75 std::string s2 =pfx +
"." + SCENE_CORNER_COORD;
86 static const char MODULE[] =
"SceneCoord::loadState";
91 const char* lookup = 0;
102 lookup = kwl.
find(pfx.c_str(), NUMBER_OF_SCENE_CORNER_COORD);
112 << MODULE <<
" Keyword not found: " << NUMBER_OF_SCENE_CORNER_COORD <<
" in "<<pfx.c_str()<<
" path.\n";
116 std::string s1 = pfx + SCENE_CENTER_COORD;
121 std::string s2 = pfx + SCENE_CORNER_COORD;
132 << MODULE <<
" Keyword " << NUMBER_OF_SCENE_CORNER_COORD <<
" is different with the number of _tabCornersScenceCoord nodes \n";
141 out << setprecision(15) << setiosflags(ios::fixed)
142 <<
"\n SceneCoord class data members:\n";
144 const char* prefix = 0;
148 ossimString s = pfx +
"." + NUMBER_OF_SCENE_CORNER_COORD;
This class represents an InfoSceneCoord.
This class represents Scence coordinate.
Represents serializable keyword/value map.
const char * find(const char *key) const
static ossimString toString(bool aValue)
Numeric to string methods.
virtual ~SceneCoord()
Destructor.
ossim_uint32 toUInt32() const
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
SceneCoord & operator=(const SceneCoord &rhs)
Affectation operator.
InfoSceneCoord _centerSceneCoord
Center scene coordinate.
std::vector< InfoSceneCoord > _tabCornersSceneCoord
Corners InfoIncidenceAngle.
ossim_uint32 _numberOfSceneCoord
Number of scene coordinate.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
virtual std::ostream & print(std::ostream &out) const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.