OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimVpfAnnotationCoverageInfo.h
Go to the documentation of this file.
1 //*************************************************************************
2 // Copyright (C) 2004 Intelligence Data Systems, Inc. All rights reserved.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Garrett Potts
9 //
10 //**************************************************************************
11 // $Id: ossimVpfAnnotationCoverageInfo.h 15766 2009-10-20 12:37:09Z gpotts $
12 #ifndef ossimVpfAnnotationCoverageInfo_HEADER
13 #define ossimVpfAnnotationCoverageInfo_HEADER
16 class ossimVpfLibrary;
17 
18 class ossimRgbImage;
19 
21 {
22 public:
24  :theName(name)
25  {
26 
27  }
29  {
31  }
32  bool hasRenderableFeature()const;
33  void getEnabledFeatures(std::vector<ossimVpfAnnotationFeatureInfo*>& result);
34  void getAllFeatures(std::vector<ossimVpfAnnotationFeatureInfo*>& result);
35 
36  void transform(ossimImageGeometry* geom);
38  void buildCoverage();
39  void buildCoverage(const ossimString& feature);
40  void setName(const ossimString& name)
41  {
42  theName = name;
43  }
45  {
46  return theName;
47  }
48  void setLibrary(ossimVpfLibrary* library)
49  {
50  theLibrary = library;
51  }
53  {
54  return theLibrary;
55  }
57  {
58  return theLibrary;
59  }
60  void drawAnnotations(ossimRgbImage* tile);
61  void deleteAllFeatures();
62 
63  virtual bool saveState(ossimKeywordlist& kwl,
64  const char* prefix=0)const;
65  virtual bool loadState(const ossimKeywordlist& kwl,
66  const char* prefix=0);
67 protected:
69 
74  std::vector<ossimVpfAnnotationFeatureInfo*> theFeatureInfoArray;
75 };
76 
77 #endif
ossimVpfAnnotationCoverageInfo(const ossimString &name="")
void setLibrary(ossimVpfLibrary *library)
Represents serializable keyword/value map.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
const ossimVpfLibrary * getLibrary() const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
void getAllFeatures(std::vector< ossimVpfAnnotationFeatureInfo *> &result)
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
std::vector< ossimVpfAnnotationFeatureInfo * > theFeatureInfoArray
void transform(ossimImageGeometry *geom)
void getEnabledFeatures(std::vector< ossimVpfAnnotationFeatureInfo *> &result)