OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeoAnnotationEllipseObject.h>
Public Member Functions | |
ossimGeoAnnotationEllipseObject (const ossimGpt ¢er=ossimGpt(0, 0), const ossimDpt &widthHeight=ossimDpt(0, 0), bool enableFill=false, ossim_uint8 r=255, ossim_uint8 g=255, ossim_uint8 b=255, ossim_uint8 thickness=1) | |
ossimGeoAnnotationEllipseObject (const ossimGeoAnnotationEllipseObject &rhs) | |
virtual ossimObject * | dup () const |
virtual void | applyScale (double x, double y) |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual void | draw (ossimRgbImage &anImage) const |
virtual bool | intersects (const ossimDrect &rect) const |
virtual ossimAnnotationObject * | getNewClippedObject (const ossimDrect &rect) const |
virtual void | getBoundingRect (ossimDrect &rect) const |
virtual void | computeBoundingRect () |
virtual void | transform (ossimImageGeometry *projection) |
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 void | setEllipseWidthHeightUnitType (ossimUnitType type) |
virtual void | setWidthHeight (const ossimDpt &pt) |
Sets the width and height of point. More... | |
virtual void | setAzimuth (ossim_float64 azimuth) |
Sets the azimuth. More... | |
virtual ossim_float64 | getAzimuth () const |
Gets the azimuth. More... | |
virtual void | setColor (ossim_uint8 r, ossim_uint8 g, ossim_uint8 b) |
Sets the color of theProjectedEllipse. More... | |
virtual void | setThickness (ossim_uint8 thickness) |
Sets the pen thickness of theProjectedEllipse. More... | |
virtual void | setFillFlag (bool flag) |
Sets the fill flag. More... | |
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 void | setCenter (const ossimGpt &gpt) |
Sets the center ground point. More... | |
virtual void | getCenter (ossimGpt &gpt) const |
![]() | |
ossimGeoAnnotationObject (unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimGeoAnnotationObject (const ossimGeoAnnotationObject &rhs) | |
![]() | |
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 () |
![]() | |
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 | ~ossimGeoAnnotationEllipseObject () |
void | getWidthHeightInPixels (ossimDpt &widthHeight, const ossimImageGeometry *projection) const |
![]() | |
virtual | ~ossimGeoAnnotationObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimRefPtr< ossimAnnotationEllipseObject > | theProjectedEllipse |
ossimGpt | theCenter |
ossimDpt | theWidthHeight |
ossimUnitType | theEllipseWidthHeightUnitType |
![]() | |
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 ossimGeoAnnotationEllipseObject.h.
ossimGeoAnnotationEllipseObject::ossimGeoAnnotationEllipseObject | ( | const ossimGpt & | center = ossimGpt(0,0) , |
const ossimDpt & | widthHeight = ossimDpt(0,0) , |
||
bool | enableFill = false , |
||
ossim_uint8 | r = 255 , |
||
ossim_uint8 | g = 255 , |
||
ossim_uint8 | b = 255 , |
||
ossim_uint8 | thickness = 1 |
||
) |
It is important to note that the width and height should be specified in width = deltaLon and height = deltaLat. Use the ossimDpt .lat and .lon attributes to set it.
Definition at line 23 of file ossimGeoAnnotationEllipseObject.cpp.
References theProjectedEllipse.
Referenced by dup().
ossimGeoAnnotationEllipseObject::ossimGeoAnnotationEllipseObject | ( | const ossimGeoAnnotationEllipseObject & | rhs | ) |
Definition at line 46 of file ossimGeoAnnotationEllipseObject.cpp.
|
protectedvirtual |
Definition at line 56 of file ossimGeoAnnotationEllipseObject.cpp.
References theProjectedEllipse, and ossimRefPtr< T >::valid().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 69 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::applyScale(), ossimGpt::latd(), ossimGpt::lond(), theCenter, theProjectedEllipse, theWidthHeight, ossimRefPtr< T >::valid(), ossimDpt::x, x, ossimDpt::y, and y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 131 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::computeBoundingRect(), theProjectedEllipse, and ossimRefPtr< T >::valid().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 88 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::draw(), theProjectedEllipse, and ossimRefPtr< T >::valid().
|
virtual |
Reimplemented from ossimObject.
Definition at line 64 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimGeoAnnotationEllipseObject().
|
virtual |
Gets the azimuth.
Definition at line 261 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::getAzimuth(), theProjectedEllipse, and ossimRefPtr< T >::valid().
Referenced by saveState().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 119 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::getBoundingRect(), ossimDrect::makeNan(), theProjectedEllipse, and ossimRefPtr< T >::valid().
|
virtual |
gpt | The point to initialize with the center. |
Definition at line 392 of file ossimGeoAnnotationEllipseObject.cpp.
References theCenter.
|
virtual |
Definition at line 378 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::getDrawAxesFlag(), theProjectedEllipse, and ossimRefPtr< T >::valid().
Referenced by saveState().
|
virtual |
Definition at line 361 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::getFillFlag(), theProjectedEllipse, and ossimRefPtr< T >::valid().
Referenced by saveState().
|
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 106 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::getNewClippedObject(), intersects(), theProjectedEllipse, and ossimRefPtr< T >::valid().
|
protected |
Definition at line 270 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimImageGeometry::getMetersPerPixel(), ossimImageGeometry::getProjection(), ossimUnitConversionTool::getValue(), ossimImageGeometry::hasProjection(), ossimProjection::origin(), OSSIM_DEGREES, OSSIM_METERS, OSSIM_MINUTES, OSSIM_PIXEL, OSSIM_SECONDS, ossimUnitConversionTool::setValue(), theEllipseWidthHeightUnitType, theWidthHeight, ossimDpt::x, x, ossimDpt::y, and y.
Referenced by transform().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 96 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::intersects(), theProjectedEllipse, and ossimRefPtr< T >::valid().
Referenced by getNewClippedObject().
|
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 174 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimKeywordlist::find(), ossimUnitTypeLut::getEntryNumber(), ossimUnitTypeLut::instance(), ossimGeoAnnotationObject::loadState(), OSSIM_PIXEL, OSSIM_UNIT_UNKNOWN, setAzimuth(), ossimAnnotationObject::setColor(), setDrawAxesFlag(), setFillFlag(), ossimAnnotationObject::setThickness(), status, ossimAnnotationObject::theBlue, theCenter, theEllipseWidthHeightUnitType, ossimAnnotationObject::theGreen, theProjectedEllipse, ossimAnnotationObject::theRed, ossimAnnotationObject::theThickness, theWidthHeight, ossimString::toDouble(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 79 of file ossimGeoAnnotationEllipseObject.cpp.
References theCenter, theEllipseWidthHeightUnitType, and theProjectedEllipse.
|
virtual |
Saves the current state of this object.
Keywords:
center: ( 42.403388263727003, -90.708557648541046, 0.0, WGE )
ellipse_width: 500
ellipse_height: 500
units: meters
Reimplemented from ossimGeoAnnotationObject.
Definition at line 159 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), getAzimuth(), getDrawAxesFlag(), getFillFlag(), ossimUnitTypeLut::instance(), ossimGeoAnnotationObject::saveState(), theCenter, theEllipseWidthHeightUnitType, theWidthHeight, ossimGpt::toString(), ossimString::toString(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Sets the azimuth.
azimuth | in degrees. |
Definition at line 253 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::setAzimuth(), theProjectedEllipse, and ossimRefPtr< T >::valid().
Referenced by loadState().
|
virtual |
Sets the center ground point.
gpt | The center ground point. |
Definition at line 387 of file ossimGeoAnnotationEllipseObject.cpp.
References theCenter.
|
virtual |
Sets the color of theProjectedEllipse.
RGB range 0 to 255
r | DN value for red. |
g | DN value for green. |
b | DN value for blue. |
Reimplemented from ossimAnnotationObject.
Definition at line 334 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationObject::setColor(), theProjectedEllipse, and ossimRefPtr< T >::valid().
|
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 370 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::setDrawAxesFlag(), theProjectedEllipse, and ossimRefPtr< T >::valid().
Referenced by loadState().
|
virtual |
Definition at line 242 of file ossimGeoAnnotationEllipseObject.cpp.
References theEllipseWidthHeightUnitType.
Referenced by ossimEsriShapeFileFilter::loadPoint().
|
virtual |
Sets the fill flag.
flag True to fill, false to not fill.
Definition at line 353 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationEllipseObject::setFillFlag(), theProjectedEllipse, and ossimRefPtr< T >::valid().
Referenced by loadState(), and ossimGdalOgrVectorAnnotation::updateAnnotationSettings().
|
virtual |
Sets the pen thickness of theProjectedEllipse.
range 0 to 255
thickness | Pen thickness. |
Reimplemented from ossimAnnotationObject.
Definition at line 345 of file ossimGeoAnnotationEllipseObject.cpp.
References ossimAnnotationObject::setThickness(), theProjectedEllipse, and ossimRefPtr< T >::valid().
|
virtual |
Sets the width and height of point.
pt | Point with pt.x being width and pt.y being height. |
Definition at line 248 of file ossimGeoAnnotationEllipseObject.cpp.
References theWidthHeight.
Referenced by ossimGdalOgrVectorAnnotation::updateAnnotationSettings().
|
virtual |
Add the projection interface to all geographically defined objects.
Implements ossimGeoAnnotationObject.
Definition at line 139 of file ossimGeoAnnotationEllipseObject.cpp.
References getWidthHeightInPixels(), ossimAnnotationEllipseObject::setCenterWidthHeight(), theCenter, theProjectedEllipse, and ossimImageGeometry::worldToLocal().
Referenced by ossimGdalOgrVectorAnnotation::loadPoint(), and ossimGdalOgrVectorAnnotation::updateAnnotationSettings().
|
protected |
Definition at line 142 of file ossimGeoAnnotationEllipseObject.h.
Referenced by applyScale(), getCenter(), loadState(), print(), saveState(), setCenter(), and transform().
|
protected |
Definition at line 145 of file ossimGeoAnnotationEllipseObject.h.
Referenced by getWidthHeightInPixels(), loadState(), print(), saveState(), and setEllipseWidthHeightUnitType().
|
protected |
Definition at line 141 of file ossimGeoAnnotationEllipseObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getAzimuth(), getBoundingRect(), getDrawAxesFlag(), getFillFlag(), getNewClippedObject(), intersects(), loadState(), ossimGeoAnnotationEllipseObject(), print(), setAzimuth(), setColor(), setDrawAxesFlag(), setFillFlag(), setThickness(), transform(), and ~ossimGeoAnnotationEllipseObject().
|
protected |
Definition at line 143 of file ossimGeoAnnotationEllipseObject.h.
Referenced by applyScale(), getWidthHeightInPixels(), loadState(), saveState(), and setWidthHeight().