OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeoAnnotationFontObject.h>
Public Member Functions | |
ossimGeoAnnotationFontObject () | |
ossimGeoAnnotationFontObject (const ossimGpt &location, const ossimString &s, const ossimIpt &pixelSize=ossimIpt(12, 12), double rotation=0.0, const ossimDpt &scale=ossimDpt(1.0, 1.0), const ossimDpt &shear=ossimDpt(0.0, 0.0), ossim_uint8 r=255, ossim_uint8 g=255, ossim_uint8 b=255) | |
ossimGeoAnnotationFontObject (const ossimGeoAnnotationFontObject &rhs) | |
virtual ossimObject * | dup () const |
ossimAnnotationFontObject * | getFontObject () |
void | setFont (ossimFont *font) |
ossimFont * | getFont () |
virtual void | setPointSize (const ossimIpt &size) |
virtual void | setRotation (double rotation) |
virtual void | setScale (const ossimDpt &scale) |
virtual void | setShear (const ossimDpt &shear) |
virtual void | setColor (ossim_uint8 r, ossim_uint8 g, ossim_uint8 b) |
virtual void | transform (ossimImageGeometry *projection) |
virtual void | setCenterGround (const ossimGpt &gpt) |
virtual void | draw (ossimRgbImage &anImage) const |
virtual void | computeBoundingRect () |
virtual void | getBoundingRect (ossimDrect &rect) const |
virtual ossimAnnotationObject * | getNewClippedObject (const ossimDrect &rect) const |
virtual bool | intersects (const ossimDrect &rect) const |
virtual void | applyScale (double x, double y) |
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... | |
![]() | |
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 std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual ossimDrect | getBoundingRect () const |
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 | ~ossimGeoAnnotationFontObject () |
![]() | |
virtual | ~ossimGeoAnnotationObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimGpt | theCenterGround |
ossimRefPtr< ossimFont > | theFont |
ossimFontInformation | theFontInfo |
ossimRefPtr< ossimAnnotationFontObject > | theAnnotationFontObject |
![]() | |
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 15 of file ossimGeoAnnotationFontObject.h.
ossimGeoAnnotationFontObject::ossimGeoAnnotationFontObject | ( | ) |
Definition at line 25 of file ossimGeoAnnotationFontObject.cpp.
References ossimRefPtr< T >::get(), ossimFontFactoryRegistry::instance(), ossimNotify(), ossimNotifyLevel_WARN, ossimAnnotationFontObject::setFont(), theAnnotationFontObject, and theFont.
Referenced by dup().
ossimGeoAnnotationFontObject::ossimGeoAnnotationFontObject | ( | const ossimGpt & | location, |
const ossimString & | s, | ||
const ossimIpt & | pixelSize = ossimIpt(12, 12) , |
||
double | rotation = 0.0 , |
||
const ossimDpt & | scale = ossimDpt(1.0, 1.0) , |
||
const ossimDpt & | shear = ossimDpt(0.0,0.0) , |
||
ossim_uint8 | r = 255 , |
||
ossim_uint8 | g = 255 , |
||
ossim_uint8 | b = 255 |
||
) |
Definition at line 50 of file ossimGeoAnnotationFontObject.cpp.
References ossimDpt::makeNan(), and theAnnotationFontObject.
ossimGeoAnnotationFontObject::ossimGeoAnnotationFontObject | ( | const ossimGeoAnnotationFontObject & | rhs | ) |
Definition at line 81 of file ossimGeoAnnotationFontObject.cpp.
References ossimRefPtr< T >::get(), ossimAnnotationFontObject::setFont(), theAnnotationFontObject, and theFont.
|
protectedvirtual |
Definition at line 105 of file ossimGeoAnnotationFontObject.cpp.
References theAnnotationFontObject, and theFont.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 219 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::applyScale(), theAnnotationFontObject, x, and y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 198 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::computeBoundingRect(), and theAnnotationFontObject.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 193 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::draw(), and theAnnotationFontObject.
|
virtual |
Reimplemented from ossimObject.
Definition at line 111 of file ossimGeoAnnotationFontObject.cpp.
References ossimGeoAnnotationFontObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 203 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::getBoundingRect(), and theAnnotationFontObject.
ossimFont * ossimGeoAnnotationFontObject::getFont | ( | ) |
Definition at line 124 of file ossimGeoAnnotationFontObject.cpp.
References ossimRefPtr< T >::get(), and theFont.
ossimAnnotationFontObject * ossimGeoAnnotationFontObject::getFontObject | ( | ) |
Definition at line 188 of file ossimGeoAnnotationFontObject.cpp.
References ossimRefPtr< T >::get(), and theAnnotationFontObject.
|
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 208 of file ossimGeoAnnotationFontObject.cpp.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 214 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::intersects(), and theAnnotationFontObject.
|
virtual |
Method to the load (recreate) the state of an object from a keyword list.
Return true if ok or false on error.
Keywords:
For center format is: ( latitude, longitude, height, datum_code ) center: ( 42.01, -90.71, 0.0, WGE )
For point_size format is: "( x, y )" point_size: ( 18, 18 )
For scale format is: "( x, y )" scale: ( 1.0, 1.0 )
For shear format is: "( x, y )" shear: ( 0.0, 0.0 )
text: Airport
USE ONE OF family_name: family_name: URW Palladio L family_name: gd sans family_name: URW Bookman L family_name: Nimbus Roman No9 L family_name: Nimbus Sans L family_name: URW Palladio L family_name: Century Schoolbook L family_name: Nimbus Mono L family_name: Nimbus Sans L Condensed
USE ONE OF style_name: style_name: normal style_name: bold style_name: italic style_name: bold italic
Reimplemented from ossimGeoAnnotationObject.
Definition at line 234 of file ossimGeoAnnotationFontObject.cpp.
References ossimKeywordlist::find(), ossimRefPtr< T >::get(), ossimFontFactoryRegistry::instance(), ossimGeoAnnotationObject::loadState(), ossimFontInformation::loadState(), ossimAnnotationObject::setColor(), ossimAnnotationFontObject::setFont(), ossimAnnotationFontObject::setGeometryInformation(), ossimAnnotationFontObject::setString(), ossimAnnotationObject::setThickness(), status, theAnnotationFontObject, ossimAnnotationObject::theBlue, theCenterGround, theFont, theFontInfo, ossimAnnotationObject::theGreen, ossimAnnotationObject::theRed, ossimAnnotationObject::theThickness, and ossimRefPtr< T >::valid().
|
virtual |
Saves the current state of this object.
Reimplemented from ossimGeoAnnotationObject.
Definition at line 224 of file ossimGeoAnnotationFontObject.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimAnnotationFontObject::getString(), ossimGeoAnnotationObject::saveState(), ossimFontInformation::saveState(), theAnnotationFontObject, theCenterGround, theFontInfo, and ossimGpt::toString().
|
virtual |
Definition at line 183 of file ossimGeoAnnotationFontObject.cpp.
References theCenterGround.
|
virtual |
Reimplemented from ossimAnnotationObject.
Definition at line 161 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationObject::setColor(), theAnnotationFontObject, and ossimRefPtr< T >::valid().
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), and ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation().
void ossimGeoAnnotationFontObject::setFont | ( | ossimFont * | font | ) |
Definition at line 117 of file ossimGeoAnnotationFontObject.cpp.
References ossimRefPtr< T >::get(), ossimAnnotationFontObject::setFont(), theAnnotationFontObject, and theFont.
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), and ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation().
|
virtual |
Definition at line 129 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::setPointSize(), size, theAnnotationFontObject, and ossimRefPtr< T >::valid().
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), and ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation().
|
virtual |
Definition at line 137 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::setRotation(), theAnnotationFontObject, and ossimRefPtr< T >::valid().
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), and ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation().
|
virtual |
Definition at line 145 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::setScale(), theAnnotationFontObject, and ossimRefPtr< T >::valid().
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), and ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation().
|
virtual |
Definition at line 153 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::setShear(), theAnnotationFontObject, and ossimRefPtr< T >::valid().
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), and ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation().
|
virtual |
Add the projection interface to all geographically defined objects.
Implements ossimGeoAnnotationObject.
Definition at line 171 of file ossimGeoAnnotationFontObject.cpp.
References ossimAnnotationFontObject::computeBoundingRect(), ossimAnnotationFontObject::setCenterPosition(), theAnnotationFontObject, theCenterGround, and ossimImageGeometry::worldToLocal().
|
protected |
Definition at line 123 of file ossimGeoAnnotationFontObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getBoundingRect(), getFontObject(), intersects(), loadState(), ossimGeoAnnotationFontObject(), saveState(), setColor(), setFont(), setPointSize(), setRotation(), setScale(), setShear(), transform(), and ~ossimGeoAnnotationFontObject().
|
protected |
Definition at line 120 of file ossimGeoAnnotationFontObject.h.
Referenced by loadState(), saveState(), setCenterGround(), and transform().
|
protected |
Definition at line 121 of file ossimGeoAnnotationFontObject.h.
Referenced by getFont(), loadState(), ossimGeoAnnotationFontObject(), setFont(), and ~ossimGeoAnnotationFontObject().
|
protected |
Definition at line 122 of file ossimGeoAnnotationFontObject.h.
Referenced by loadState(), and saveState().