OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeoAnnotationLineObject.h>
Public Member Functions | |
ossimGeoAnnotationLineObject (const ossimGpt &start, const ossimGpt &end, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimGeoAnnotationLineObject (const ossimGeoAnnotationLineObject &rhs) | |
virtual ossimObject * | dup () const |
virtual void | applyScale (double x, double y) |
virtual void | transform (ossimImageGeometry *projection) |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | intersects (const ossimDrect &rect) const |
virtual ossimAnnotationObject * | getNewClippedObject (const ossimDrect &rect) const |
virtual void | draw (ossimRgbImage &anImage) const |
virtual void | getBoundingRect (ossimDrect &rect) const |
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 | ~ossimGeoAnnotationLineObject () |
![]() | |
virtual | ~ossimGeoAnnotationObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimAnnotationLineObject * | theProjectedLineObject |
ossimGpt | theStart |
ossimGpt | theEnd |
![]() | |
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 17 of file ossimGeoAnnotationLineObject.h.
ossimGeoAnnotationLineObject::ossimGeoAnnotationLineObject | ( | const ossimGpt & | start, |
const ossimGpt & | end, | ||
unsigned char | r = 255 , |
||
unsigned char | g = 255 , |
||
unsigned char | b = 255 , |
||
long | thickness = 1 |
||
) |
Referenced by dup().
ossimGeoAnnotationLineObject::ossimGeoAnnotationLineObject | ( | const ossimGeoAnnotationLineObject & | rhs | ) |
Definition at line 40 of file ossimGeoAnnotationLineObject.cpp.
|
protectedvirtual |
Definition at line 50 of file ossimGeoAnnotationLineObject.cpp.
References theProjectedLineObject.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 64 of file ossimGeoAnnotationLineObject.cpp.
References ossimAnnotationLineObject::applyScale(), ossimGpt::latd(), ossimGpt::lond(), theEnd, theProjectedLineObject, theStart, x, and y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 131 of file ossimGeoAnnotationLineObject.cpp.
References ossimAnnotationLineObject::computeBoundingRect(), and theProjectedLineObject.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 98 of file ossimGeoAnnotationLineObject.cpp.
References ossimAnnotationLineObject::draw(), and theProjectedLineObject.
|
virtual |
Reimplemented from ossimObject.
Definition at line 59 of file ossimGeoAnnotationLineObject.cpp.
References ossimGeoAnnotationLineObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 126 of file ossimGeoAnnotationLineObject.cpp.
References ossimAnnotationLineObject::getBoundingRect(), and theProjectedLineObject.
|
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 113 of file ossimGeoAnnotationLineObject.cpp.
References ossimAnnotationLineObject::getNewClippedObject(), intersects(), and theProjectedLineObject.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 103 of file ossimGeoAnnotationLineObject.cpp.
References ossimAnnotationLineObject::intersects(), and theProjectedLineObject.
Referenced by getNewClippedObject().
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 91 of file ossimGeoAnnotationLineObject.cpp.
References theEnd, and theStart.
|
virtual |
Add the projection interface to all geographically defined objects.
Implements ossimGeoAnnotationObject.
Definition at line 77 of file ossimGeoAnnotationLineObject.cpp.
References ossimAnnotationLineObject::setLine(), theEnd, theProjectedLineObject, theStart, and ossimImageGeometry::worldToLocal().
|
protected |
Definition at line 45 of file ossimGeoAnnotationLineObject.h.
Referenced by applyScale(), print(), and transform().
|
protected |
Definition at line 43 of file ossimGeoAnnotationLineObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getBoundingRect(), getNewClippedObject(), intersects(), transform(), and ~ossimGeoAnnotationLineObject().
|
protected |
Definition at line 44 of file ossimGeoAnnotationLineObject.h.
Referenced by applyScale(), print(), and transform().