OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeoAnnotationBitmap.h>
Public Member Functions | |
ossimGeoAnnotationBitmap (const ossimGpt ¢er=ossimGpt(0, 0, 0), ossimRefPtr< ossimImageData > imageData=0, unsigned char r=255, unsigned char g=255, unsigned char b=255) | |
ossimGeoAnnotationBitmap (const ossimGeoAnnotationBitmap &rhs) | |
virtual ossimObject * | dup () const |
virtual bool | intersects (const ossimDrect &rect) const |
virtual ossimGeoAnnotationBitmap * | getNewClippedObject (const ossimDrect &rect) 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 void | getBoundingRect (ossimDrect &rect) const |
virtual void | transform (ossimImageGeometry *projection) |
virtual void | setImageData (ossimRefPtr< ossimImageData > &imageData) |
virtual void | computeBoundingRect () |
![]() | |
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 |
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 | 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 | ~ossimGeoAnnotationBitmap () |
![]() | |
virtual | ~ossimGeoAnnotationObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimGpt | theCenterPoint |
ossimDpt | theProjectedPoint |
ossimRefPtr< ossimImageData > | theImageData |
![]() | |
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 ossimGeoAnnotationBitmap.h.
ossimGeoAnnotationBitmap::ossimGeoAnnotationBitmap | ( | const ossimGpt & | center = ossimGpt(0, 0, 0) , |
ossimRefPtr< ossimImageData > | imageData = 0 , |
||
unsigned char | r = 255 , |
||
unsigned char | g = 255 , |
||
unsigned char | b = 255 |
||
) |
Referenced by dup().
ossimGeoAnnotationBitmap::ossimGeoAnnotationBitmap | ( | const ossimGeoAnnotationBitmap & | rhs | ) |
Definition at line 48 of file ossimGeoAnnotationBitmap.cpp.
|
protectedvirtual |
Definition at line 58 of file ossimGeoAnnotationBitmap.cpp.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 89 of file ossimGeoAnnotationBitmap.cpp.
References ossimNotify(), and ossimNotifyLevel_WARN.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 200 of file ossimGeoAnnotationBitmap.cpp.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 103 of file ossimGeoAnnotationBitmap.cpp.
References ossimIrect::clipToRect(), ossimImageData::getBuf(), ossimRgbImage::getImageData(), ossimImageData::getImageRectangle(), ossimImageData::getNumberOfBands(), ossimIrect::height(), ossimIrect::intersects(), ossimNotify(), ossimNotifyLevel_WARN, ossimAnnotationObject::theBlue, ossimAnnotationObject::theGreen, theImageData, ossimAnnotationObject::theRed, ossimIrect::ul(), ossimIrect::width(), ossimIpt::x, and ossimIpt::y.
|
virtual |
Reimplemented from ossimObject.
Definition at line 62 of file ossimGeoAnnotationBitmap.cpp.
References ossimGeoAnnotationBitmap().
Referenced by getNewClippedObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 168 of file ossimGeoAnnotationBitmap.cpp.
References ossimImageData::getImageRectangle(), theImageData, and ossimRefPtr< T >::valid().
|
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 77 of file ossimGeoAnnotationBitmap.cpp.
References dup(), ossimNotify(), and ossimNotifyLevel_WARN.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 67 of file ossimGeoAnnotationBitmap.cpp.
References ossimImageData::getImageRectangle(), ossimIrect::intersects(), theImageData, and ossimRefPtr< T >::valid().
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 97 of file ossimGeoAnnotationBitmap.cpp.
References theCenterPoint.
|
virtual |
Definition at line 194 of file ossimGeoAnnotationBitmap.cpp.
References theImageData.
|
virtual |
Add the projection interface to all geographically defined objects.
Implements ossimGeoAnnotationObject.
Definition at line 178 of file ossimGeoAnnotationBitmap.cpp.
References ossimImageData::getHeight(), ossimImageData::getWidth(), ossimImageData::setOrigin(), theCenterPoint, theImageData, theProjectedPoint, ossimRefPtr< T >::valid(), ossimImageGeometry::worldToLocal(), ossimDpt::x, and ossimDpt::y.
|
protected |
Definition at line 47 of file ossimGeoAnnotationBitmap.h.
Referenced by print(), and transform().
|
protected |
Definition at line 49 of file ossimGeoAnnotationBitmap.h.
Referenced by draw(), getBoundingRect(), intersects(), setImageData(), and transform().
|
protected |
Definition at line 48 of file ossimGeoAnnotationBitmap.h.
Referenced by transform().