OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimVectorRenderer.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: David Burken
6 //
7 // Description:
8 //
9 // Abstract class for rendering vector data. Derived classes should implement
10 // the "rasterizeVectorData" data method.
11 //
12 //*******************************************************************
13 // $Id: ossimVectorRenderer.h 15766 2009-10-20 12:37:09Z gpotts $
14 #ifndef ossimVectorRenderer_HEADER
15 #define ossimVectorRenderer_HEADER
16 
18 #include <ossim/base/ossimDrect.h>
19 #include <ossim/base/ossimDpt3d.h>
20 
22 class ossimImageData;
23 
25 {
26 public:
29  ossimImageViewTransform *transform = NULL);
30 
36  virtual ossimImageData* renderVectorData() const = 0;
37 
43  virtual vector<ossimDpt3d> getObject(ossim_uint32 index) const = 0;
44 
49  virtual bool saveState(ossimKeywordlist& kwl,
50  const char* prefix=0)const;
51 
56  virtual bool loadState(const ossimKeywordlist& kwl,
57  const char* prefix=0);
58 
62  virtual void setImageViewTransform(ossimImageViewTransform* transform);
63 
67  virtual void setAreaOfInterest(const ossimDrect& aoi);
68 
72  virtual ossimDrect getAreaOfInterest() const;
73 
77  virtual ossimDrect getBoundingRect(long resLevel=0)const;
78 
82  virtual ossim_int32 getNumberOfAoiObjects() const;
83 
88  virtual ossim_int32 getNumberOfObjects() const;
89 
90 protected:
91  virtual ~ossimVectorRenderer();
92 
96  virtual void setBoundingRect(ossimDrect& rect);
97 
101  virtual void setNumberOfAoiObjects(ossim_int32 number_of_objects);
102 
106  virtual void setNumberOfObjects(ossim_int32 number_of_objects);
107 
108 private:
109 
115 
116 TYPE_DATA
117 };
118 
119 #endif
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
virtual ossimImageData * renderVectorData() const =0
Renders the vector data to a data object.
virtual ossim_int32 getNumberOfAoiObjects() const
Returns the number of vector objects in the area of interest.
Represents serializable keyword/value map.
virtual ossimDrect getBoundingRect(long resLevel=0) const
Returns the full bounding rectangle of current vector data loaded.
virtual ossim_int32 getNumberOfObjects() const
Returns the total number of vector objects in the full bounding rectangle.
virtual ossimObject * getObject()
For RTTI support.
virtual void setNumberOfObjects(ossim_int32 number_of_objects)
Sets the number of vector objects in the full bounding rectangle.
virtual ossimDrect getAreaOfInterest() const
Returns the current area of interest as an ossimDrect.
virtual void setNumberOfAoiObjects(ossim_int32 number_of_objects)
Sets the number of vector objects in the area of interest.
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
ossimImageViewTransform * theImageViewTransform
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual void setBoundingRect(ossimDrect &rect)
Sets the bounding rectangle of current vector data loaded.
virtual void setAreaOfInterest(const ossimDrect &aoi)
Sets the area of interest.
virtual void setImageViewTransform(ossimImageViewTransform *transform)
Sets the ImageViewTransform to be used for converting vector data.
ossim_int32 theNumberOfAoiObjects
int ossim_int32