OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeographicAnnotationGrid.h>
Public Member Functions | |
ossimGeographicAnnotationGrid () | |
virtual void | draw (ossimRgbImage &anImage) const |
virtual void | setViewProjectionInformation (ossimMapProjection *projection, const ossimGrect &boundingGroundRect) |
virtual void | getBoundingRect (ossimDrect &rect) const |
virtual void | computeBoundingRect () |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
![]() | |
virtual | ~ossimAnnotationObject () |
ossimAnnotationObject (ossim_uint8 r=255, ossim_uint8 g=255, ossim_uint8 b=255, ossim_uint8 thickness=1) | |
virtual void | applyScale (double x, double y)=0 |
virtual void | applyScale (const ossimDpt &scale) |
virtual bool | intersects (const ossimDrect &rect) const =0 |
virtual ossimAnnotationObject * | getNewClippedObject (const ossimDrect &rect) const =0 |
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 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 ossimString | getName () const |
virtual void | setName (const ossimString &name) |
ossim_uint32 | getId () const |
virtual ossim_uint32 | setId () |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
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 Attributes | |
ossimRefPtr< ossimMapProjection > | theViewProjection |
ossimGrect | theGroundRect |
ossimDrect | theBoundingRect |
double | theDeltaLatSpacing |
double | theDeltaLonSpacing |
![]() | |
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 () |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
static ossim_uint32 | theIdCounter = 0 |
Definition at line 10 of file ossimGeographicAnnotationGrid.h.
ossimGeographicAnnotationGrid::ossimGeographicAnnotationGrid | ( | ) |
Definition at line 13 of file ossimGeographicAnnotationGrid.cpp.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 236 of file ossimGeographicAnnotationGrid.cpp.
References ossimAnnotationGdBitmapFont::getBoundingRect(), ossimDrect::height(), ossimGrect::ll(), ossimGrect::lr(), ossimDrect::lr(), ossimAnnotationGdBitmapFont::setCenterText(), theBoundingRect, theGroundRect, theViewProjection, ossimGrect::ul(), ossimDrect::ul(), ossimGrect::ur(), ossimRefPtr< T >::valid(), ossimDrect::width(), ossimMapProjection::worldToLineSample(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 22 of file ossimGeographicAnnotationGrid.cpp.
References ossimGpt::datum(), DBL_EPSILON, ossimAnnotationGdBitmapFont::draw(), ossimAnnotationLineObject::draw(), ossimAnnotationGdBitmapFont::getBoundingRect(), ossimRgbImage::getImageData(), ossimGrect::height(), ossimDrect::height(), ossimGpt::latd(), ossimGpt::lond(), ossimGrect::lr(), ossimAnnotationGdBitmapFont::setCenterText(), ossimAnnotationGdBitmapFont::setCenterTextPosition(), ossimRgbImage::setDrawColor(), ossimAnnotationLineObject::setLine(), ossimAnnotationGdBitmapFont::setText(), ossimAnnotationObject::theBlue, theDeltaLatSpacing, theDeltaLonSpacing, ossimAnnotationObject::theGreen, theGroundRect, ossimAnnotationObject::theRed, theViewProjection, ossimGrect::ul(), ossimGrect::ur(), ossimRefPtr< T >::valid(), ossimGrect::width(), ossimDrect::width(), ossimMapProjection::worldToLineSample(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 231 of file ossimGeographicAnnotationGrid.cpp.
References theBoundingRect.
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 279 of file ossimGeographicAnnotationGrid.cpp.
|
virtual |
We need to know what projection the view and we need to know the bounding rect for the view in geographic space. The bounding rect is there for an area of interest.
Definition at line 164 of file ossimGeographicAnnotationGrid.cpp.
References ossimGrect::clipToRect(), ossimGpt::datum(), ossimGpt::latd(), ossimGpt::lond(), ossimGrect::lr(), theDeltaLatSpacing, theDeltaLonSpacing, theGroundRect, theViewProjection, and ossimGrect::ul().
|
protected |
This will be computed based on the bounding ground and projection.
Definition at line 42 of file ossimGeographicAnnotationGrid.h.
Referenced by computeBoundingRect(), and getBoundingRect().
|
protected |
Will hold the spacing of the grid cells in geographic lat lon change.
Definition at line 48 of file ossimGeographicAnnotationGrid.h.
Referenced by draw(), and setViewProjectionInformation().
|
protected |
Definition at line 49 of file ossimGeographicAnnotationGrid.h.
Referenced by draw(), and setViewProjectionInformation().
|
protected |
Definition at line 36 of file ossimGeographicAnnotationGrid.h.
Referenced by computeBoundingRect(), draw(), and setViewProjectionInformation().
|
protected |
Holds the view projection.
Definition at line 34 of file ossimGeographicAnnotationGrid.h.
Referenced by computeBoundingRect(), draw(), and setViewProjectionInformation().