OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimImageGeometryEvent.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: See top level LICENSE.txt file.
5 //
6 // Author: Garrett Potts
7 //
8 //*************************************************************************
9 // $Id: ossimImageGeometryEvent.h 9094 2006-06-13 19:12:40Z dburken $
10 #ifndef ossimImageGeometryEvent_HEADER
11 #define ossimImageGeometryEvent_HEADER
12 #include <ossim/base/ossimEvent.h>
14 #include <ossim/base/ossimString.h>
15 
17 {
18 public:
21  :ossimEvent(object, id)
22  {
23  }
24 
26  ossimObject* object=NULL,
28  :ossimEvent(object, id),
29  theGeomKwl(geomKwl)
30  {
31  }
33  :ossimEvent(rhs),
35  {
36  }
38  virtual ossimObject* dup()const
39  {
40  return new ossimImageGeometryEvent(*this);
41  }
42  void setGeometry(const ossimKeywordlist& geomKwl)
43  {
44  theGeomKwl = geomKwl;
45  }
46  void getGeometry(ossimKeywordlist& geomKwl)const
47  {
48  geomKwl = theGeomKwl;
49  }
51  {
52  return theGeomKwl;
53  }
54  bool isGeometrySet()const
55  {
56  return (theGeomKwl.getSize() != 0);
57  }
59  {
60  theGeomKwl.clear();
61  }
62 protected:
64 
66 };
67 
68 #endif
Represents serializable keyword/value map.
void getGeometry(ossimKeywordlist &geomKwl) const
void setGeometry(const ossimKeywordlist &geomKwl)
const ossimKeywordlist & getGeometry() const
ossimImageGeometryEvent(const ossimKeywordlist &geomKwl, ossimObject *object=NULL, long id=OSSIM_EVENT_IMAGE_GEOMETRY_ID)
#define TYPE_DATA
Definition: ossimRtti.h:339
ossimImageGeometryEvent(ossimObject *object=0, long id=OSSIM_EVENT_IMAGE_GEOMETRY_ID)
ossimImageGeometryEvent(const ossimImageGeometryEvent &rhs)
ossim_uint32 getSize() const
#define OSSIM_EVENT_IMAGE_GEOMETRY_ID
Definition: ossimEventIds.h:64
virtual ossimObject * dup() const