OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimAnnotationMultiPolyObject.h>
Public Member Functions | |
ossimAnnotationMultiPolyObject () | |
ossimAnnotationMultiPolyObject (const vector< ossimPolygon > &multiPoly, bool enableFill, unsigned char r, unsigned char g, unsigned char b, long thickness) | |
ossimAnnotationMultiPolyObject (const ossimAnnotationMultiPolyObject &rhs) | |
virtual ossimObject * | dup () const |
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 | clear () |
virtual void | addPolygon (ossim_uint32 polygonIndex, const ossimPolygon &poly) |
virtual void | addPoint (ossim_uint32 polygonIndex, const ossimDpt &pt) |
virtual void | setMultiPolygon (const vector< ossimPolygon > &multiPoly) |
virtual void | computeBoundingRect () |
virtual bool | isPointWithin (const ossimDpt &imagePoint) const |
const std::vector< ossimPolygon > & | getMultiPolygon () const |
std::vector< ossimPolygon > & | getMultiPolygon () |
void | setFillFlag (bool flag) |
![]() | |
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 |
virtual void | setColor (ossim_uint8 r, ossim_uint8 g, ossim_uint8 b) |
void | getColor (ossim_uint8 &r, ossim_uint8 &g, ossim_uint8 &b) const |
ossim_uint8 | getThickness () const |
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 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 | ~ossimAnnotationMultiPolyObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
vector< ossimPolygon > | theMultiPolygon |
ossimDrect | theBoundingRect |
bool | theFillEnabled |
![]() | |
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 16 of file ossimAnnotationMultiPolyObject.h.
ossimAnnotationMultiPolyObject::ossimAnnotationMultiPolyObject | ( | ) |
Definition at line 18 of file ossimAnnotationMultiPolyObject.cpp.
Referenced by getNewClippedObject().
ossimAnnotationMultiPolyObject::ossimAnnotationMultiPolyObject | ( | const vector< ossimPolygon > & | multiPoly, |
bool | enableFill, | ||
unsigned char | r, | ||
unsigned char | g, | ||
unsigned char | b, | ||
long | thickness | ||
) |
Definition at line 25 of file ossimAnnotationMultiPolyObject.cpp.
References computeBoundingRect(), and theMultiPolygon.
|
inline |
Definition at line 27 of file ossimAnnotationMultiPolyObject.h.
|
protectedvirtual |
Definition at line 38 of file ossimAnnotationMultiPolyObject.cpp.
|
inlinevirtual |
Definition at line 55 of file ossimAnnotationMultiPolyObject.h.
|
inlinevirtual |
Definition at line 47 of file ossimAnnotationMultiPolyObject.h.
Referenced by ossimGeoAnnotationMultiPolyObject::transform().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 42 of file ossimAnnotationMultiPolyObject.cpp.
References theBoundingRect, theMultiPolygon, x, and y.
|
virtual |
Definition at line 268 of file ossimAnnotationMultiPolyObject.cpp.
References theMultiPolygon.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 273 of file ossimAnnotationMultiPolyObject.cpp.
References ossimDrect::combine(), ossimDrect::hasNans(), ossimDrect::height(), ossimDrect::makeNan(), theBoundingRect, theMultiPolygon, ossimAnnotationObject::theThickness, ossimDrect::ul(), ossimDrect::width(), ossimIpt::x, and ossimIpt::y.
Referenced by ossimGeoAnnotationMultiPolyObject::computeBoundingRect(), ossimAnnotationMultiPolyObject(), and ossimGeoAnnotationMultiPolyObject::transform().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 143 of file ossimAnnotationMultiPolyObject.cpp.
References ossimPolygon::clipToRect(), ossimRgbImage::drawFilledPolygon(), ossimRgbImage::drawLine(), ossimRgbImage::getImageData(), ossimImageData::getImageRectangle(), ossimPolygon::getNumberOfVertices(), ossimPolygon::getVertexCount(), ossimDrect::hasNans(), ossimDrect::intersects(), ossimDrect::lr(), ossimRgbImage::setDrawColor(), ossimRgbImage::setThickness(), ossimAnnotationObject::theBlue, theBoundingRect, theFillEnabled, ossimAnnotationObject::theGreen, theMultiPolygon, ossimAnnotationObject::theRed, ossimAnnotationObject::theThickness, ossimDrect::ul(), ossimDpt::x, and ossimDpt::y.
Referenced by ossimGeoAnnotationMultiPolyObject::draw().
|
inlinevirtual |
Reimplemented from ossimObject.
Definition at line 34 of file ossimAnnotationMultiPolyObject.h.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 263 of file ossimAnnotationMultiPolyObject.cpp.
References theBoundingRect.
Referenced by ossimGeoAnnotationMultiPolyObject::computeBoundingRect(), and ossimGeoAnnotationMultiPolyObject::getBoundingRect().
|
inline |
Definition at line 72 of file ossimAnnotationMultiPolyObject.h.
|
inline |
Definition at line 73 of file ossimAnnotationMultiPolyObject.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 74 of file ossimAnnotationMultiPolyObject.cpp.
References ossimPolyLine::clipToRect(), ossimDrect::intersects(), ossimDrect::lr(), ossimAnnotationMultiPolyObject(), ossimAnnotationObject::theBlue, theBoundingRect, theFillEnabled, ossimAnnotationObject::theGreen, theMultiPolygon, ossimAnnotationObject::theRed, ossimAnnotationObject::theThickness, ossimDrect::ul(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 53 of file ossimAnnotationMultiPolyObject.cpp.
References ossimDrect::hasNans(), ossimDrect::intersects(), theBoundingRect, and theMultiPolygon.
|
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 312 of file ossimAnnotationMultiPolyObject.cpp.
References theMultiPolygon.
Referenced by ossimGeoAnnotationMultiPolyObject::isPointWithin().
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 246 of file ossimAnnotationMultiPolyObject.cpp.
References ossimObject::getClassName(), ossimAnnotationObject::print(), theFillEnabled, and theMultiPolygon.
|
inline |
Definition at line 74 of file ossimAnnotationMultiPolyObject.h.
Referenced by ossimGeoAnnotationMultiPolyObject::setFillFlag().
|
inlinevirtual |
Definition at line 64 of file ossimAnnotationMultiPolyObject.h.
References ossimAnnotationObject::computeBoundingRect().
|
protected |
Definition at line 81 of file ossimAnnotationMultiPolyObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getBoundingRect(), getNewClippedObject(), and intersects().
|
protected |
Definition at line 82 of file ossimAnnotationMultiPolyObject.h.
Referenced by draw(), getNewClippedObject(), and print().
|
protected |
Definition at line 80 of file ossimAnnotationMultiPolyObject.h.
Referenced by applyScale(), clear(), computeBoundingRect(), draw(), getNewClippedObject(), intersects(), isPointWithin(), ossimAnnotationMultiPolyObject(), and print().