OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimAnnotationMultiLineObject.h>
Public Member Functions | |
ossimAnnotationMultiLineObject () | |
ossimAnnotationMultiLineObject (const std::vector< ossimPolyLine > &lineList, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimAnnotationMultiLineObject (const ossimPolyLine &lineList, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1) | |
ossimAnnotationMultiLineObject (const ossimAnnotationMultiLineObject &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 () |
virtual const vector< ossimPolyLine > & | getPolyLineList () const |
virtual vector< ossimPolyLine > & | getPolyLineList () |
virtual void | setPolyLine (const ossimPolyLine &line) |
![]() | |
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 | |
vector< ossimPolyLine > | thePolyLineList |
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 ossimAnnotationMultiLineObject.h.
ossimAnnotationMultiLineObject::ossimAnnotationMultiLineObject | ( | ) |
Referenced by getNewClippedObject().
|
inline |
Definition at line 19 of file ossimAnnotationMultiLineObject.h.
References ossimAnnotationObject::computeBoundingRect().
|
inline |
Definition at line 30 of file ossimAnnotationMultiLineObject.h.
References ossimAnnotationObject::computeBoundingRect().
|
inline |
Definition at line 42 of file ossimAnnotationMultiLineObject.h.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 87 of file ossimAnnotationMultiLineObject.cpp.
References theBoundingRect, thePolyLineList, x, and y.
Referenced by ossimGeoAnnotationPolyLineObject::applyScale().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 156 of file ossimAnnotationMultiLineObject.cpp.
References ossimDrect::combine(), ossimDrect::hasNans(), ossimDrect::makeNan(), theBoundingRect, and thePolyLineList.
Referenced by ossimGeoAnnotationPolyLineObject::computeBoundingRect(), and ossimGeoAnnotationPolyLineObject::transform().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 18 of file ossimAnnotationMultiLineObject.cpp.
References ossimRgbImage::drawLine(), ossimRgbImage::getImageData(), ossimImageData::getImageRectangle(), ossimDrect::intersects(), ossimDrect::lr(), ossimRgbImage::setDrawColor(), ossimRgbImage::setThickness(), ossimAnnotationObject::theBlue, theBoundingRect, ossimAnnotationObject::theGreen, thePolyLineList, ossimAnnotationObject::theRed, ossimAnnotationObject::theThickness, ossimDrect::ul(), ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
Referenced by ossimGeoAnnotationPolyLineObject::draw().
|
inlinevirtual |
Reimplemented from ossimObject.
Definition at line 49 of file ossimAnnotationMultiLineObject.h.
|
inlinevirtual |
Implements ossimAnnotationObject.
Definition at line 60 of file ossimAnnotationMultiLineObject.h.
Referenced by ossimGeoAnnotationPolyLineObject::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 105 of file ossimAnnotationMultiLineObject.cpp.
References intersects(), ossimDrect::lr(), ossimAnnotationMultiLineObject(), ossimAnnotationObject::theBlue, ossimAnnotationObject::theGreen, thePolyLineList, ossimAnnotationObject::theRed, ossimAnnotationObject::theThickness, ossimDrect::ul(), ossimDpt::x, and ossimDpt::y.
Referenced by ossimGeoAnnotationPolyLineObject::getNewClippedObject().
|
inlinevirtual |
Definition at line 67 of file ossimAnnotationMultiLineObject.h.
Referenced by ossimGeoAnnotationPolyLineObject::transform().
|
inlinevirtual |
Definition at line 72 of file ossimAnnotationMultiLineObject.h.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 73 of file ossimAnnotationMultiLineObject.cpp.
References thePolyLineList.
Referenced by getNewClippedObject(), and ossimGeoAnnotationPolyLineObject::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 142 of file ossimAnnotationMultiLineObject.cpp.
References thePolyLineList.
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 181 of file ossimAnnotationMultiLineObject.cpp.
References ossimAnnotationObject::print(), and thePolyLineList.
Referenced by ossimGeoAnnotationPolyLineObject::print().
|
inlinevirtual |
Definition at line 76 of file ossimAnnotationMultiLineObject.h.
|
protected |
Definition at line 83 of file ossimAnnotationMultiLineObject.h.
Referenced by applyScale(), computeBoundingRect(), and draw().
|
protected |
Definition at line 82 of file ossimAnnotationMultiLineObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getNewClippedObject(), intersects(), isPointWithin(), and print().