OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeoAnnotationMultiPolyObject.h>
Public Member Functions | |
ossimGeoAnnotationMultiPolyObject () | |
ossimGeoAnnotationMultiPolyObject (const vector< ossimGeoPolygon > &multiPoly, bool enableFill=false, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimGeoAnnotationMultiPolyObject (const ossimGeoAnnotationMultiPolyObject &rhs) | |
virtual ossimObject * | dup () const |
virtual void | transform (ossimImageGeometry *projection) |
virtual void | applyScale (double x, double y) |
virtual void | draw (ossimRgbImage &anImage) const |
virtual bool | intersects (const ossimDrect &rect) const |
virtual ossimAnnotationObject * | getNewClippedObject (const ossimDrect &rect) const |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual void | getBoundingRect (ossimDrect &rect) const |
virtual void | addPoint (ossim_uint32 polygonIndex, const ossimGpt &pt) |
virtual void | setMultiPolygon (const vector< ossimGeoPolygon > &multiPoly) |
virtual void | setColor (unsigned char r, unsigned char g, unsigned char b) |
virtual void | setThickness (ossim_uint8 thickness) |
virtual void | computeBoundingRect () |
virtual bool | isPointWithin (const ossimDpt &imagePoint) const |
virtual void | setFillFlag (bool flag) |
const std::vector< ossimGeoPolygon > & | getMultiPolygon () const |
std::vector< ossimGeoPolygon > & | getMultiPolygon () |
![]() | |
ossimGeoAnnotationObject (unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimGeoAnnotationObject (const ossimGeoAnnotationObject &rhs) | |
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 | ~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 ossimString | getName () const |
virtual void | setName (const ossimString &name) |
ossim_uint32 | getId () const |
virtual ossim_uint32 | setId () |
![]() | |
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) |
![]() | |
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 | ~ossimGeoAnnotationMultiPolyObject () |
void | allocateProjectedPolygon () |
![]() | |
virtual | ~ossimGeoAnnotationObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
std::vector< ossimGeoPolygon > | theMultiPolygon |
ossimDrect | theBoundingRect |
bool | theFillEnabled |
ossimRefPtr< ossimAnnotationMultiPolyObject > | theProjectedPolyObject |
![]() | |
ossim_uint8 | theRed |
ossim_uint8 | theGreen |
ossim_uint8 | theBlue |
ossim_uint8 | theThickness |
ossimString | theName |
ossim_uint32 | theId |
Additional Inherited Members | |
![]() | |
static ossim_uint32 | getNextId () |
static void | restIdCounter () |
![]() | |
static ossim_uint32 | theIdCounter = 0 |
Definition at line 17 of file ossimGeoAnnotationMultiPolyObject.h.
ossimGeoAnnotationMultiPolyObject::ossimGeoAnnotationMultiPolyObject | ( | ) |
Definition at line 19 of file ossimGeoAnnotationMultiPolyObject.cpp.
References allocateProjectedPolygon(), ossimDrect::makeNan(), and theBoundingRect.
Referenced by dup().
ossimGeoAnnotationMultiPolyObject::ossimGeoAnnotationMultiPolyObject | ( | const vector< ossimGeoPolygon > & | multiPoly, |
bool | enableFill = false , |
||
unsigned char | r = 255 , |
||
unsigned char | g = 255 , |
||
unsigned char | b = 255 , |
||
long | thickness = 1 |
||
) |
Definition at line 31 of file ossimGeoAnnotationMultiPolyObject.cpp.
References allocateProjectedPolygon(), ossimDrect::makeNan(), and theBoundingRect.
ossimGeoAnnotationMultiPolyObject::ossimGeoAnnotationMultiPolyObject | ( | const ossimGeoAnnotationMultiPolyObject & | rhs | ) |
Definition at line 48 of file ossimGeoAnnotationMultiPolyObject.cpp.
|
protectedvirtual |
Definition at line 63 of file ossimGeoAnnotationMultiPolyObject.cpp.
References theProjectedPolyObject.
|
virtual |
Definition at line 169 of file ossimGeoAnnotationMultiPolyObject.cpp.
References theMultiPolygon, and theProjectedPolyObject.
|
protected |
Definition at line 237 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimAnnotationObject::theBlue, theFillEnabled, ossimAnnotationObject::theGreen, theMultiPolygon, theProjectedPolyObject, ossimAnnotationObject::theRed, and ossimAnnotationObject::theThickness.
Referenced by ossimGeoAnnotationMultiPolyObject(), and transform().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 68 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimNotify(), and ossimNotifyLevel_NOTICE.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 208 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimAnnotationMultiPolyObject::computeBoundingRect(), ossimAnnotationMultiPolyObject::getBoundingRect(), ossimDrect::makeNan(), theBoundingRect, theProjectedPolyObject, and ossimRefPtr< T >::valid().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 148 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimAnnotationMultiPolyObject::draw(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
|
virtual |
Reimplemented from ossimObject.
Definition at line 58 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimGeoAnnotationMultiPolyObject().
Referenced by getNewClippedObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 156 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimAnnotationMultiPolyObject::getBoundingRect(), ossimDrect::isNan(), theBoundingRect, theProjectedPolyObject, and ossimRefPtr< T >::valid().
|
inline |
Definition at line 53 of file ossimGeoAnnotationMultiPolyObject.h.
Referenced by ossimTilingPoly::parseShpFile().
|
inline |
Definition at line 54 of file ossimGeoAnnotationMultiPolyObject.h.
|
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 138 of file ossimGeoAnnotationMultiPolyObject.cpp.
References dup(), ossimNotify(), and ossimNotifyLevel_NOTICE.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 130 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimNotify(), and ossimNotifyLevel_NOTICE.
|
virtual |
This method allows you to pick an object. It will return true or false if the point falls somewhere on an object. Look at derived classes for further information.
Reimplemented from ossimAnnotationObject.
Definition at line 218 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimAnnotationMultiPolyObject::isPointWithin(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 122 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimNotify(), and ossimNotifyLevel_NOTICE.
|
virtual |
Reimplemented from ossimAnnotationObject.
Definition at line 188 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimAnnotationObject::setColor(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
Referenced by ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation().
|
virtual |
Definition at line 228 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimAnnotationMultiPolyObject::setFillFlag(), theFillEnabled, theProjectedPolyObject, and ossimRefPtr< T >::valid().
Referenced by ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation(), and ossimGdalOgrVectorAnnotation::updateAnnotationSettings().
|
virtual |
Definition at line 181 of file ossimGeoAnnotationMultiPolyObject.cpp.
References theMultiPolygon, and theProjectedPolyObject.
|
virtual |
Reimplemented from ossimAnnotationObject.
Definition at line 199 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimAnnotationObject::setThickness(), theProjectedPolyObject, and ossimRefPtr< T >::valid().
Referenced by ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation().
|
virtual |
Add the projection interface to all geographically defined objects.
Implements ossimGeoAnnotationObject.
Definition at line 76 of file ossimGeoAnnotationMultiPolyObject.cpp.
References ossimPolygon::addPoint(), ossimAnnotationMultiPolyObject::addPolygon(), allocateProjectedPolygon(), ossimPolygon::clear(), ossimAnnotationMultiPolyObject::computeBoundingRect(), ossimDpt::hasNans(), theMultiPolygon, theProjectedPolyObject, and ossimImageGeometry::worldToLocal().
Referenced by ossimGdalOgrVectorAnnotation::loadMultiPolygon().
|
protected |
Definition at line 60 of file ossimGeoAnnotationMultiPolyObject.h.
Referenced by computeBoundingRect(), getBoundingRect(), and ossimGeoAnnotationMultiPolyObject().
|
protected |
Definition at line 61 of file ossimGeoAnnotationMultiPolyObject.h.
Referenced by allocateProjectedPolygon(), and setFillFlag().
|
protected |
Definition at line 59 of file ossimGeoAnnotationMultiPolyObject.h.
Referenced by addPoint(), allocateProjectedPolygon(), setMultiPolygon(), and transform().
|
protected |
Definition at line 62 of file ossimGeoAnnotationMultiPolyObject.h.
Referenced by addPoint(), allocateProjectedPolygon(), computeBoundingRect(), draw(), getBoundingRect(), isPointWithin(), setColor(), setFillFlag(), setMultiPolygon(), setThickness(), transform(), and ~ossimGeoAnnotationMultiPolyObject().