|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeoAnnotationPolyObject.h>
Public Types | |
| enum | ossimPolyType { OSSIM_POLY_EXTERIOR_RING = 0, OSSIM_POLY_INTERIOR_RING = 1 } |
Public Member Functions | |
| ossimGeoAnnotationPolyObject (bool enableFill=false, ossim_uint8 r=255, ossim_uint8 g=255, ossim_uint8 b=255, ossim_uint8 thickness=1) | |
| ossimGeoAnnotationPolyObject (const std::vector< ossimGpt > &groundPts, bool enableFill=false, ossim_uint8 r=255, ossim_uint8 g=255, ossim_uint8 b=255, ossim_uint8 thickness=1) | |
| ossimGeoAnnotationPolyObject (const ossimGeoAnnotationPolyObject &rhs) | |
| virtual ossimObject * | dup () const |
| virtual void | applyScale (double x, double y) |
| virtual void | transform (ossimImageGeometry *projection) |
| virtual std::ostream & | print (std::ostream &out) const |
| Generic print method. More... | |
| virtual void | draw (ossimRgbImage &anImage) const |
| virtual ossimAnnotationObject * | getNewClippedObject (const ossimDrect &rect) const |
| virtual bool | intersects (const ossimDrect &rect) const |
| virtual void | getBoundingRect (ossimDrect &rect) const |
| virtual void | computeBoundingRect () |
| virtual const std::vector< ossimGpt > & | getPolygon () const |
| virtual void | setPolygon (const std::vector< ossimGpt > &poly) |
| virtual void | setFillFlag (bool flag) |
| virtual void | setColor (ossim_uint8 r, ossim_uint8 g, ossim_uint8 b) |
| virtual void | setThickness (ossim_uint8 thickness) |
| virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
| Saves the current state of this object. More... | |
| virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
| Method to the load (recreate) the state of an object from a keyword list. More... | |
| virtual std::vector< ossimGpt > | getPoints () |
| virtual ossimPolyType | getPolyType () |
| virtual void | setPolyType (ossimPolyType polyType) |
Public Member Functions inherited from ossimGeoAnnotationObject | |
| ossimGeoAnnotationObject (unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
| ossimGeoAnnotationObject (const ossimGeoAnnotationObject &rhs) | |
Public Member Functions inherited from ossimAnnotationObject | |
| virtual | ~ossimAnnotationObject () |
| ossimAnnotationObject (ossim_uint8 r=255, ossim_uint8 g=255, ossim_uint8 b=255, ossim_uint8 thickness=1) | |
| virtual void | applyScale (const ossimDpt &scale) |
| virtual ossimDrect | getBoundingRect () const |
| void | getColor (ossim_uint8 &r, ossim_uint8 &g, ossim_uint8 &b) const |
| ossim_uint8 | getThickness () const |
| virtual bool | isPointWithin (const ossimDpt &imagePoint) const |
| virtual ossimString | getName () const |
| virtual void | setName (const ossimString &name) |
| ossim_uint32 | getId () const |
| virtual ossim_uint32 | setId () |
Public Member Functions inherited from ossimObject | |
| ossimObject () | |
| virtual | ~ossimObject () |
| virtual ossimString | getShortName () const |
| virtual ossimString | getLongName () const |
| virtual ossimString | getDescription () const |
| virtual ossimString | getClassName () const |
| virtual RTTItypeid | getType () const |
| virtual bool | canCastTo (ossimObject *obj) const |
| virtual bool | canCastTo (const RTTItypeid &id) const |
| virtual bool | canCastTo (const ossimString &parentClassName) const |
| virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
| virtual void | accept (ossimVisitor &visitor) |
Public Member Functions inherited from ossimReferenced | |
| ossimReferenced () | |
| ossimReferenced (const ossimReferenced &) | |
| ossimReferenced & | operator= (const ossimReferenced &) |
| void | ref () const |
| increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unref () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unref_nodelete () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| int | referenceCount () const |
Protected Member Functions | |
| virtual | ~ossimGeoAnnotationPolyObject () |
Protected Member Functions inherited from ossimGeoAnnotationObject | |
| virtual | ~ossimGeoAnnotationObject () |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Protected Attributes | |
| std::vector< ossimGpt > | thePolygon |
| ossimRefPtr< ossimAnnotationPolyObject > | theProjectedPolyObject |
| ossimPolyType | m_PolyType |
Protected Attributes inherited from ossimAnnotationObject | |
| ossim_uint8 | theRed |
| ossim_uint8 | theGreen |
| ossim_uint8 | theBlue |
| ossim_uint8 | theThickness |
| ossimString | theName |
| ossim_uint32 | theId |
Additional Inherited Members | |
Static Public Member Functions inherited from ossimAnnotationObject | |
| static ossim_uint32 | getNextId () |
| static void | restIdCounter () |
Static Protected Attributes inherited from ossimAnnotationObject | |
| static ossim_uint32 | theIdCounter = 0 |
Definition at line 18 of file ossimGeoAnnotationPolyObject.h.
| Enumerator | |
|---|---|
| OSSIM_POLY_EXTERIOR_RING | |
| OSSIM_POLY_INTERIOR_RING | |
Definition at line 21 of file ossimGeoAnnotationPolyObject.h.
| ossimGeoAnnotationPolyObject::ossimGeoAnnotationPolyObject | ( | bool | enableFill = false, |
| ossim_uint8 | r = 255, |
||
| ossim_uint8 | g = 255, |
||
| ossim_uint8 | b = 255, |
||
| ossim_uint8 | thickness = 1 |
||
| ) |
Referenced by dup().
| ossimGeoAnnotationPolyObject::ossimGeoAnnotationPolyObject | ( | const std::vector< ossimGpt > & | groundPts, |
| bool | enableFill = false, |
||
| ossim_uint8 | r = 255, |
||
| ossim_uint8 | g = 255, |
||
| ossim_uint8 | b = 255, |
||
| ossim_uint8 | thickness = 1 |
||
| ) |
Definition at line 43 of file ossimGeoAnnotationPolyObject.cpp.
References thePolygon, and theProjectedPolyObject.
| ossimGeoAnnotationPolyObject::ossimGeoAnnotationPolyObject | ( | const ossimGeoAnnotationPolyObject & | rhs | ) |
Definition at line 72 of file ossimGeoAnnotationPolyObject.cpp.
|
protectedvirtual |
Definition at line 81 of file ossimGeoAnnotationPolyObject.cpp.
References theProjectedPolyObject.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 91 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::applyScale(), thePolygon, theProjectedPolyObject, ossimRefPtr< T >::valid(), x, and y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 180 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::computeBoundingRect(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 142 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::draw(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
Referenced by ossimGdalOgrVectorAnnotation::drawAnnotations().
|
virtual |
Reimplemented from ossimObject.
Definition at line 86 of file ossimGeoAnnotationPolyObject.cpp.
References ossimGeoAnnotationPolyObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 171 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::getBoundingRect(), ossimDrect::makeNan(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
|
virtual |
Will allocate a new object that is clipped to the passed. in rect. Look at derived classes to see if the object is actually clipped or not. A new object is returned if it clips to the rect else NULL should be returned it doesn't clip.
Implements ossimAnnotationObject.
Definition at line 150 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::getNewClippedObject(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
|
inlinevirtual |
Definition at line 86 of file ossimGeoAnnotationPolyObject.h.
Referenced by ossimTilingPoly::parseShpFile().
|
virtual |
Definition at line 188 of file ossimGeoAnnotationPolyObject.cpp.
References thePolygon.
|
inlinevirtual |
Definition at line 88 of file ossimGeoAnnotationPolyObject.h.
Referenced by ossimTilingPoly::parseShpFile().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 161 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::intersects(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
|
virtual |
Method to the load (recreate) the state of an object from a keyword list.
Return true if ok or false on error.
Reimplemented from ossimGeoAnnotationObject.
Definition at line 251 of file ossimGeoAnnotationPolyObject.cpp.
References ossimString::c_str(), ossimKeywordlist::find(), ossimKeywordlist::getNumberOfSubstringKeys(), ossimGeoAnnotationObject::loadState(), ossimAnnotationObject::setColor(), ossimAnnotationPolyObject::setPolygon(), ossimAnnotationObject::setThickness(), status, ossimAnnotationObject::theBlue, ossimAnnotationObject::theGreen, thePolygon, theProjectedPolyObject, ossimAnnotationObject::theRed, ossimAnnotationObject::theThickness, and ossimString::toString().
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 126 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::print(), thePolygon, and theProjectedPolyObject.
|
virtual |
Saves the current state of this object.
Reimplemented from ossimGeoAnnotationObject.
Definition at line 233 of file ossimGeoAnnotationPolyObject.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimGeoAnnotationObject::saveState(), thePolygon, and ossimString::toString().
|
virtual |
Reimplemented from ossimAnnotationObject.
Definition at line 213 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationObject::setColor(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
Referenced by ossimGdalOgrVectorAnnotation::drawAnnotations().
|
virtual |
Definition at line 205 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::setFillFlag(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
Referenced by ossimGdalOgrVectorAnnotation::drawAnnotations(), and ossimGdalOgrVectorAnnotation::updateAnnotationSettings().
|
virtual |
Definition at line 193 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::setPolygon(), thePolygon, theProjectedPolyObject, and ossimRefPtr< T >::valid().
|
inlinevirtual |
Definition at line 90 of file ossimGeoAnnotationPolyObject.h.
Referenced by ossimGdalOgrVectorAnnotation::loadPolygon().
|
virtual |
Reimplemented from ossimAnnotationObject.
Definition at line 224 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationObject::setThickness(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
Referenced by ossimGdalOgrVectorAnnotation::drawAnnotations().
|
virtual |
Add the projection interface to all geographically defined objects.
Implements ossimGeoAnnotationObject.
Definition at line 106 of file ossimGeoAnnotationPolyObject.cpp.
References ossimAnnotationPolyObject::computeBoundingRect(), ossimAnnotationPolyObject::getPolygon(), thePolygon, theProjectedPolyObject, and ossimImageGeometry::worldToLocal().
Referenced by ossimGdalOgrVectorAnnotation::loadPolygon().
|
protected |
Definition at line 97 of file ossimGeoAnnotationPolyObject.h.
|
protected |
Definition at line 95 of file ossimGeoAnnotationPolyObject.h.
Referenced by applyScale(), getPolygon(), loadState(), ossimGeoAnnotationPolyObject(), print(), saveState(), setPolygon(), and transform().
|
protected |
Definition at line 96 of file ossimGeoAnnotationPolyObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getBoundingRect(), getNewClippedObject(), intersects(), loadState(), ossimGeoAnnotationPolyObject(), print(), setColor(), setFillFlag(), setPolygon(), setThickness(), transform(), and ~ossimGeoAnnotationPolyObject().
1.8.14