OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeoAnnotationGdBitmapFont.h>
Public Member Functions | |
ossimGeoAnnotationGdBitmapFont (const ossimGpt &position=ossimGpt(0, 0, 0), const ossimString &text=ossimString(""), ossimGdFontPtr font=ossimGdFontLarge, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimGeoAnnotationGdBitmapFont (const ossimGeoAnnotationGdBitmapFont &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 void | setText (const ossimString &text) |
virtual void | setFont (ossimGdFontPtr font) |
![]() | |
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 | ~ossimGeoAnnotationGdBitmapFont () |
![]() | |
virtual | ~ossimGeoAnnotationObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimRefPtr< ossimAnnotationGdBitmapFont > | theProjectedFont |
ossimGpt | thePosition |
![]() | |
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 18 of file ossimGeoAnnotationGdBitmapFont.h.
ossimGeoAnnotationGdBitmapFont::ossimGeoAnnotationGdBitmapFont | ( | const ossimGpt & | position = ossimGpt(0, 0, 0) , |
const ossimString & | text = ossimString("") , |
||
ossimGdFontPtr | font = ossimGdFontLarge , |
||
unsigned char | r = 255 , |
||
unsigned char | g = 255 , |
||
unsigned char | b = 255 , |
||
long | thickness = 1 |
||
) |
Referenced by dup().
ossimGeoAnnotationGdBitmapFont::ossimGeoAnnotationGdBitmapFont | ( | const ossimGeoAnnotationGdBitmapFont & | rhs | ) |
Definition at line 39 of file ossimGeoAnnotationGdBitmapFont.cpp.
|
protectedvirtual |
Definition at line 46 of file ossimGeoAnnotationGdBitmapFont.cpp.
References theProjectedFont.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 56 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::applyScale(), ossimGpt::latd(), ossimGpt::lond(), thePosition, theProjectedFont, ossimRefPtr< T >::valid(), x, and y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 107 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::computeBoundingRect(), and theProjectedFont.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 74 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::draw(), and theProjectedFont.
|
virtual |
Reimplemented from ossimObject.
Definition at line 51 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimGeoAnnotationGdBitmapFont().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 79 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::getBoundingRect(), and theProjectedFont.
|
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 94 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::getNewClippedObject(), intersects(), theProjectedFont, and ossimRefPtr< T >::valid().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 84 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::intersects(), theProjectedFont, and ossimRefPtr< T >::valid().
Referenced by getNewClippedObject().
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 67 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::print(), thePosition, and theProjectedFont.
|
virtual |
Definition at line 124 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::setFont(), and theProjectedFont.
|
virtual |
Definition at line 119 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::setText(), and theProjectedFont.
|
virtual |
Add the projection interface to all geographically defined objects.
Implements ossimGeoAnnotationObject.
Definition at line 112 of file ossimGeoAnnotationGdBitmapFont.cpp.
References ossimAnnotationGdBitmapFont::setUpperLeftTextPosition(), thePosition, theProjectedFont, and ossimImageGeometry::worldToLocal().
|
protected |
Will be the upper left corner of text;
Definition at line 54 of file ossimGeoAnnotationGdBitmapFont.h.
Referenced by applyScale(), print(), and transform().
|
protected |
Definition at line 49 of file ossimGeoAnnotationGdBitmapFont.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getBoundingRect(), getNewClippedObject(), intersects(), print(), setFont(), setText(), transform(), and ~ossimGeoAnnotationGdBitmapFont().