OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimAnnotationLineObject.h>
Public Member Functions | |
ossimAnnotationLineObject () | |
ossimAnnotationLineObject (const ossimIpt &start, const ossimIpt &end, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimAnnotationLineObject (long x1, long y1, long x2, long y2, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimAnnotationLineObject (const ossimAnnotationLineObject &rhs) | |
virtual ossimObject * | dup () const |
virtual void | applyScale (double x, double y) |
virtual ossimAnnotationObject * | getNewClippedObject (const ossimDrect &rect) const |
virtual bool | intersects (const ossimDrect &rect) const |
virtual void | draw (ossimRgbImage &anImage) const |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual void | getBoundingRect (ossimDrect &rect) const |
virtual bool | isPointWithin (const ossimDpt &imagePoint) const |
virtual void | computeBoundingRect () |
void | setLine (const ossimDpt &start, const ossimDpt &end) |
void | getLine (ossimDpt &start, ossimDpt &end) |
![]() | |
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 | 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 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 | |
ossimIpt | theStart |
ossimIpt | theEnd |
ossimDrect | theBoundingRect |
![]() | |
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 15 of file ossimAnnotationLineObject.h.
ossimAnnotationLineObject::ossimAnnotationLineObject | ( | ) |
Referenced by dup().
ossimAnnotationLineObject::ossimAnnotationLineObject | ( | const ossimIpt & | start, |
const ossimIpt & | end, | ||
unsigned char | r = 255 , |
||
unsigned char | g = 255 , |
||
unsigned char | b = 255 , |
||
long | thickness = 1 |
||
) |
Definition at line 28 of file ossimAnnotationLineObject.cpp.
References computeBoundingRect().
ossimAnnotationLineObject::ossimAnnotationLineObject | ( | long | x1, |
long | y1, | ||
long | x2, | ||
long | y2, | ||
unsigned char | r = 255 , |
||
unsigned char | g = 255 , |
||
unsigned char | b = 255 , |
||
long | thickness = 1 |
||
) |
Definition at line 41 of file ossimAnnotationLineObject.cpp.
References computeBoundingRect().
ossimAnnotationLineObject::ossimAnnotationLineObject | ( | const ossimAnnotationLineObject & | rhs | ) |
Definition at line 56 of file ossimAnnotationLineObject.cpp.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 69 of file ossimAnnotationLineObject.cpp.
References computeBoundingRect(), theEnd, theStart, ossimIpt::x, x, ossimIpt::y, and y.
Referenced by ossimGeoAnnotationLineObject::applyScale().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 150 of file ossimAnnotationLineObject.cpp.
References theBoundingRect, theEnd, and theStart.
Referenced by applyScale(), ossimGeoAnnotationLineObject::computeBoundingRect(), ossimAnnotationLineObject(), and setLine().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 101 of file ossimAnnotationLineObject.cpp.
References ossimRgbImage::drawLine(), ossimRgbImage::getImageData(), ossimImageData::getImageRectangle(), ossimDrect::lr(), ossimRgbImage::setDrawColor(), ossimRgbImage::setThickness(), ossimAnnotationObject::theBlue, theEnd, ossimAnnotationObject::theGreen, ossimAnnotationObject::theRed, theStart, ossimAnnotationObject::theThickness, ossimDrect::ul(), ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
Referenced by ossimGeographicAnnotationGrid::draw(), and ossimGeoAnnotationLineObject::draw().
|
virtual |
Reimplemented from ossimObject.
Definition at line 64 of file ossimAnnotationLineObject.cpp.
References ossimAnnotationLineObject().
Referenced by getNewClippedObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 145 of file ossimAnnotationLineObject.cpp.
References theBoundingRect.
Referenced by ossimGeoAnnotationLineObject::getBoundingRect().
|
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 78 of file ossimAnnotationLineObject.cpp.
References ossimDrect::clip(), dup(), setLine(), theEnd, and theStart.
Referenced by ossimGeoAnnotationLineObject::getNewClippedObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 93 of file ossimAnnotationLineObject.cpp.
References ossimDrect::clip(), theEnd, and theStart.
Referenced by ossimGeoAnnotationLineObject::intersects().
|
virtual |
This method allows you to pick an object. It will return true or false if the point falls somewhere on an object. Look at derived classes for further information.
Reimplemented from ossimAnnotationObject.
Definition at line 173 of file ossimAnnotationLineObject.cpp.
References ossimDrect::pointWithin(), and theBoundingRect.
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 137 of file ossimAnnotationLineObject.cpp.
References theBoundingRect, theEnd, and theStart.
Definition at line 160 of file ossimAnnotationLineObject.cpp.
References computeBoundingRect(), theEnd, and theStart.
Referenced by ossimChipperUtil::addCrossHairAnnotation(), ossimGeographicAnnotationGrid::draw(), getNewClippedObject(), and ossimGeoAnnotationLineObject::transform().
|
protected |
Definition at line 57 of file ossimAnnotationLineObject.h.
Referenced by computeBoundingRect(), getBoundingRect(), isPointWithin(), and print().
|
protected |
Definition at line 56 of file ossimAnnotationLineObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getLine(), getNewClippedObject(), intersects(), print(), and setLine().
|
protected |
Definition at line 55 of file ossimAnnotationLineObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getLine(), getNewClippedObject(), intersects(), print(), and setLine().