OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimAnnotationMultiEllipseObject.h>
Public Member Functions | |
ossimAnnotationMultiEllipseObject (const std::vector< ossimDpt > &pointList, const ossimDpt &widthHeight=ossimDpt(1, 1), bool enableFill=false, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimAnnotationMultiEllipseObject (const ossimDpt &widthHeight=ossimDpt(1, 1), bool enableFill=false, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimAnnotationMultiEllipseObject (const ossimAnnotationMultiEllipseObject &rhs) | |
virtual | ~ossimAnnotationMultiEllipseObject () |
ossimObject * | dup () const |
virtual ossimAnnotationObject * | getNewClippedObject (const ossimDrect &rect) const |
virtual void | applyScale (double x, double y) |
virtual void | draw (ossimRgbImage &anImage) const |
virtual bool | intersects (const ossimDrect &rect) const |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual void | getBoundingRect (ossimDrect &rect) const |
virtual void | computeBoundingRect () |
virtual bool | isPointWithin (const ossimDpt &imagePoint) const |
void | setFillFlag (bool flag) |
void | resize (ossim_uint32 size) |
virtual void | setWidthHeight (const ossimDpt &widthHeight) |
ossimDpt & | operator[] (int i) |
const ossimDpt & | operator[] (int i) const |
![]() | |
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 Attributes | |
std::vector< ossimDpt > | thePointList |
ossimDpt | theWidthHeight |
bool | theFillFlag |
ossimDrect | theBoundingRect |
![]() | |
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 () |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
static ossim_uint32 | theIdCounter = 0 |
Definition at line 14 of file ossimAnnotationMultiEllipseObject.h.
ossimAnnotationMultiEllipseObject::ossimAnnotationMultiEllipseObject | ( | const std::vector< ossimDpt > & | pointList, |
const ossimDpt & | widthHeight = ossimDpt(1,1) , |
||
bool | enableFill = false , |
||
unsigned char | r = 255 , |
||
unsigned char | g = 255 , |
||
unsigned char | b = 255 , |
||
long | thickness = 1 |
||
) |
Definition at line 13 of file ossimAnnotationMultiEllipseObject.cpp.
Referenced by dup().
ossimAnnotationMultiEllipseObject::ossimAnnotationMultiEllipseObject | ( | const ossimDpt & | widthHeight = ossimDpt(1,1) , |
bool | enableFill = false , |
||
unsigned char | r = 255 , |
||
unsigned char | g = 255 , |
||
unsigned char | b = 255 , |
||
long | thickness = 1 |
||
) |
Definition at line 30 of file ossimAnnotationMultiEllipseObject.cpp.
ossimAnnotationMultiEllipseObject::ossimAnnotationMultiEllipseObject | ( | const ossimAnnotationMultiEllipseObject & | rhs | ) |
Definition at line 44 of file ossimAnnotationMultiEllipseObject.cpp.
|
virtual |
Definition at line 57 of file ossimAnnotationMultiEllipseObject.cpp.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 69 of file ossimAnnotationMultiEllipseObject.cpp.
References computeBoundingRect(), thePointList, theWidthHeight, ossimDpt::x, x, ossimDpt::y, and y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 157 of file ossimAnnotationMultiEllipseObject.cpp.
References ossimDrect::combine(), ossimDpt::hasNans(), ossimDrect::hasNans(), ossimDrect::makeNan(), theBoundingRect, thePointList, theWidthHeight, ossimDpt::x, and ossimDpt::y.
Referenced by applyScale(), ossimGeoAnnotationMultiEllipseObject::computeBoundingRect(), and setWidthHeight().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 84 of file ossimAnnotationMultiEllipseObject.cpp.
References ossimRgbImage::drawArc(), ossimRgbImage::drawFilledArc(), ossimRgbImage::getImageData(), ossimImageData::getImageRectangle(), ossimDrect::intersects(), ossimRgbImage::setDrawColor(), ossimRgbImage::setThickness(), ossimAnnotationObject::theBlue, theBoundingRect, theFillFlag, ossimAnnotationObject::theGreen, thePointList, ossimAnnotationObject::theRed, ossimAnnotationObject::theThickness, theWidthHeight, ossimDpt::x, and ossimDpt::y.
Referenced by ossimGeoAnnotationMultiEllipseObject::draw().
|
virtual |
Reimplemented from ossimObject.
Definition at line 52 of file ossimAnnotationMultiEllipseObject.cpp.
References ossimAnnotationMultiEllipseObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 152 of file ossimAnnotationMultiEllipseObject.cpp.
References theBoundingRect.
Referenced by ossimGeoAnnotationMultiEllipseObject::getBoundingRect().
|
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 60 of file ossimAnnotationMultiEllipseObject.cpp.
References ossimNotify(), and ossimNotifyLevel_WARN.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 139 of file ossimAnnotationMultiEllipseObject.cpp.
References ossimDrect::intersects(), and theBoundingRect.
Referenced by ossimGeoAnnotationMultiEllipseObject::intersects().
|
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 184 of file ossimAnnotationMultiEllipseObject.cpp.
References ossimDrect::hasNans(), ossimDrect::pointWithin(), and theBoundingRect.
ossimDpt & ossimAnnotationMultiEllipseObject::operator[] | ( | int | i | ) |
Definition at line 216 of file ossimAnnotationMultiEllipseObject.cpp.
References thePointList.
const ossimDpt & ossimAnnotationMultiEllipseObject::operator[] | ( | int | i | ) | const |
Definition at line 221 of file ossimAnnotationMultiEllipseObject.cpp.
References thePointList.
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 144 of file ossimAnnotationMultiEllipseObject.cpp.
References ossimNotify(), and ossimNotifyLevel_NOTICE.
Referenced by ossimGeoAnnotationMultiEllipseObject::print().
void ossimAnnotationMultiEllipseObject::resize | ( | ossim_uint32 | size | ) |
Definition at line 198 of file ossimAnnotationMultiEllipseObject.cpp.
References size, and thePointList.
Referenced by ossimGeoAnnotationMultiEllipseObject::transform().
void ossimAnnotationMultiEllipseObject::setFillFlag | ( | bool | flag | ) |
Definition at line 193 of file ossimAnnotationMultiEllipseObject.cpp.
References theFillFlag.
Referenced by ossimGeoAnnotationMultiEllipseObject::ossimGeoAnnotationMultiEllipseObject(), and ossimGeoAnnotationMultiEllipseObject::setFillFlag().
|
virtual |
Definition at line 210 of file ossimAnnotationMultiEllipseObject.cpp.
References computeBoundingRect(), and theWidthHeight.
Referenced by ossimGeoAnnotationMultiEllipseObject::setWidthHeight().
|
protected |
Definition at line 63 of file ossimAnnotationMultiEllipseObject.h.
Referenced by computeBoundingRect(), draw(), getBoundingRect(), intersects(), and isPointWithin().
|
protected |
Definition at line 62 of file ossimAnnotationMultiEllipseObject.h.
Referenced by draw(), and setFillFlag().
|
protected |
Definition at line 60 of file ossimAnnotationMultiEllipseObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), operator[](), and resize().
|
protected |
Definition at line 61 of file ossimAnnotationMultiEllipseObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), and setWidthHeight().