OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimAnnotationEllipseObject.h>
Public Member Functions | |
ossimAnnotationEllipseObject (const ossimDpt ¢er=ossimDpt(0, 0), const ossimDpt &widthHeight=ossimDpt(1, 1), ossim_float64 azimuthInDegrees=0.0, bool enableFill=false, ossim_uint8 r=255, ossim_uint8 g=255, ossim_uint8 b=255, ossim_uint8 thickness=1) | |
ossimAnnotationEllipseObject (const ossimAnnotationEllipseObject &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 | computeBoundingRect () |
virtual bool | isPointWithin (const ossimDpt &imagePoint) const |
virtual void | setCenterWidthHeight (const ossimDpt ¢er, const ossimDpt &widthHeight) |
virtual void | setAzimuth (ossim_float64 azimuth) |
Sets the azimuth. More... | |
virtual ossim_float64 | getAzimuth () const |
Gets the azimuth. More... | |
virtual void | setFillFlag (bool enabled) |
virtual bool | getFillFlag () const |
virtual void | setDrawAxesFlag (bool flag) |
Turns on and off drawing of axes on the ellipse. More... | |
virtual bool | getDrawAxesFlag () const |
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 |
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 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 | ~ossimAnnotationEllipseObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimDpt | theCenter |
ossimDpt | theWidthHeight |
ossim_float64 | theAzimuthInDegrees |
bool | theFillEnabled |
bool | theDrawAxesFlag |
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 () |
![]() | |
static ossim_uint32 | theIdCounter = 0 |
Definition at line 14 of file ossimAnnotationEllipseObject.h.
ossimAnnotationEllipseObject::ossimAnnotationEllipseObject | ( | const ossimDpt & | center = ossimDpt(0, 0) , |
const ossimDpt & | widthHeight = ossimDpt(1, 1) , |
||
ossim_float64 | azimuthInDegrees = 0.0 , |
||
bool | enableFill = false , |
||
ossim_uint8 | r = 255 , |
||
ossim_uint8 | g = 255 , |
||
ossim_uint8 | b = 255 , |
||
ossim_uint8 | thickness = 1 |
||
) |
Referenced by dup().
ossimAnnotationEllipseObject::ossimAnnotationEllipseObject | ( | const ossimAnnotationEllipseObject & | rhs | ) |
Definition at line 37 of file ossimAnnotationEllipseObject.cpp.
|
protectedvirtual |
Definition at line 54 of file ossimAnnotationEllipseObject.cpp.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 58 of file ossimAnnotationEllipseObject.cpp.
References computeBoundingRect(), theCenter, theWidthHeight, ossimDpt::x, x, ossimDpt::y, and y.
Referenced by ossimGeoAnnotationEllipseObject::applyScale().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 130 of file ossimAnnotationEllipseObject.cpp.
References ossim::max(), theBoundingRect, theCenter, theWidthHeight, ossimDpt::x, and ossimDpt::y.
Referenced by applyScale(), ossimGeoAnnotationEllipseObject::computeBoundingRect(), and setCenterWidthHeight().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 69 of file ossimAnnotationEllipseObject.cpp.
References ossimRgbImage::drawEllipse(), ossimRgbImage::drawFilledEllipse(), ossimRgbImage::getImageData(), ossimImageData::getImageRectangle(), ossimDrect::intersects(), RAD_PER_DEG, ossimRgbImage::setDrawColor(), ossimRgbImage::setThickness(), theAzimuthInDegrees, ossimAnnotationObject::theBlue, theBoundingRect, theCenter, theDrawAxesFlag, theFillEnabled, ossimAnnotationObject::theGreen, ossimAnnotationObject::theRed, ossimAnnotationObject::theThickness, theWidthHeight, ossimDpt::x, and ossimDpt::y.
Referenced by ossimGeoAnnotationEllipseObject::draw().
|
virtual |
Reimplemented from ossimObject.
Definition at line 49 of file ossimAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject().
Referenced by getNewClippedObject().
|
virtual |
Gets the azimuth.
Definition at line 159 of file ossimAnnotationEllipseObject.cpp.
References theAzimuthInDegrees.
Referenced by ossimGeoAnnotationEllipseObject::getAzimuth().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 125 of file ossimAnnotationEllipseObject.cpp.
References theBoundingRect.
Referenced by ossimGeoAnnotationEllipseObject::getBoundingRect().
|
virtual |
Definition at line 179 of file ossimAnnotationEllipseObject.cpp.
References theDrawAxesFlag.
Referenced by ossimGeoAnnotationEllipseObject::getDrawAxesFlag().
|
virtual |
Definition at line 169 of file ossimAnnotationEllipseObject.cpp.
References theFillEnabled.
Referenced by ossimGeoAnnotationEllipseObject::getFillFlag().
|
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 101 of file ossimAnnotationEllipseObject.cpp.
References dup(), and intersects().
Referenced by ossimGeoAnnotationEllipseObject::getNewClippedObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 96 of file ossimAnnotationEllipseObject.cpp.
References ossimDrect::intersects(), and theBoundingRect.
Referenced by getNewClippedObject(), and ossimGeoAnnotationEllipseObject::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 140 of file ossimAnnotationEllipseObject.cpp.
References ossimDrect::pointWithin(), and theBoundingRect.
|
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 ossimAnnotationObject.
Definition at line 190 of file ossimAnnotationEllipseObject.cpp.
References ossimAnnotationObject::loadState().
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 112 of file ossimAnnotationEllipseObject.cpp.
References ossimAnnotationObject::print(), theBoundingRect, theCenter, theDrawAxesFlag, theFillEnabled, theWidthHeight, ossimDpt::x, and ossimDpt::y.
|
virtual |
Saves the current state of this object.
Reimplemented from ossimAnnotationObject.
Definition at line 184 of file ossimAnnotationEllipseObject.cpp.
References ossimAnnotationObject::saveState().
|
virtual |
Sets the azimuth.
azimuth | in degrees. |
Definition at line 154 of file ossimAnnotationEllipseObject.cpp.
References theAzimuthInDegrees.
Referenced by ossimGeoAnnotationEllipseObject::setAzimuth().
|
virtual |
Definition at line 145 of file ossimAnnotationEllipseObject.cpp.
References computeBoundingRect(), theCenter, and theWidthHeight.
Referenced by ossimGeoAnnotationEllipseObject::transform().
|
virtual |
Turns on and off drawing of axes on the ellipse.
This flag is only used if fill is turned off.
flag | true to enable, false to disable. |
Definition at line 174 of file ossimAnnotationEllipseObject.cpp.
References theDrawAxesFlag.
Referenced by ossimGeoAnnotationEllipseObject::setDrawAxesFlag().
|
virtual |
Definition at line 164 of file ossimAnnotationEllipseObject.cpp.
References theFillEnabled.
Referenced by ossimGeoAnnotationEllipseObject::setFillFlag().
|
protected |
Definition at line 93 of file ossimAnnotationEllipseObject.h.
Referenced by draw(), getAzimuth(), and setAzimuth().
|
protected |
Definition at line 96 of file ossimAnnotationEllipseObject.h.
Referenced by computeBoundingRect(), draw(), getBoundingRect(), intersects(), isPointWithin(), and print().
|
protected |
Definition at line 91 of file ossimAnnotationEllipseObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), print(), and setCenterWidthHeight().
|
protected |
Definition at line 95 of file ossimAnnotationEllipseObject.h.
Referenced by draw(), getDrawAxesFlag(), print(), and setDrawAxesFlag().
|
protected |
Definition at line 94 of file ossimAnnotationEllipseObject.h.
Referenced by draw(), getFillFlag(), print(), and setFillFlag().
|
protected |
Definition at line 92 of file ossimAnnotationEllipseObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), print(), and setCenterWidthHeight().