OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeoAnnotationPolyLineObject.h>
Public Member Functions | |
ossimGeoAnnotationPolyLineObject (const vector< ossimGpt > &groundPts, ossim_uint8 r=255, ossim_uint8 g=255, ossim_uint8 b=255, ossim_uint8 thickness=1) | |
ossimGeoAnnotationPolyLineObject (const ossimGeoAnnotationPolyLineObject &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 void | draw (ossimRgbImage &anImage) const |
virtual ossimAnnotationObject * | getNewClippedObject (const ossimDrect &rect) const |
virtual bool | intersects (const ossimDrect &rect) const |
virtual void | getBoundingRect (ossimDrect &rect) const |
virtual void | computeBoundingRect () |
virtual void | setColor (ossim_uint8 r, ossim_uint8 g, ossim_uint8 b) |
Sets the color of thePolygon. More... | |
virtual void | setThickness (ossim_uint8 thickness) |
Sets the pen thickness of thePolygon. More... | |
![]() | |
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 |
void | getColor (ossim_uint8 &r, ossim_uint8 &g, ossim_uint8 &b) const |
ossim_uint8 | getThickness () const |
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 | ~ossimGeoAnnotationPolyLineObject () |
![]() | |
virtual | ~ossimGeoAnnotationObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
std::vector< ossimGpt > | thePolygon |
ossimAnnotationMultiLineObject * | theProjectedMultiLineObject |
![]() | |
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 ossimGeoAnnotationPolyLineObject.h.
ossimGeoAnnotationPolyLineObject::ossimGeoAnnotationPolyLineObject | ( | const vector< ossimGpt > & | groundPts, |
ossim_uint8 | r = 255 , |
||
ossim_uint8 | g = 255 , |
||
ossim_uint8 | b = 255 , |
||
ossim_uint8 | thickness = 1 |
||
) |
Referenced by dup().
ossimGeoAnnotationPolyLineObject::ossimGeoAnnotationPolyLineObject | ( | const ossimGeoAnnotationPolyLineObject & | rhs | ) |
Definition at line 46 of file ossimGeoAnnotationPolyLineObject.cpp.
|
protectedvirtual |
Definition at line 53 of file ossimGeoAnnotationPolyLineObject.cpp.
References theProjectedMultiLineObject.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 67 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationMultiLineObject::applyScale(), thePolygon, theProjectedMultiLineObject, x, and y.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 154 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationMultiLineObject::computeBoundingRect(), and theProjectedMultiLineObject.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 124 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationMultiLineObject::draw(), and theProjectedMultiLineObject.
|
virtual |
Reimplemented from ossimObject.
Definition at line 62 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimGeoAnnotationPolyLineObject().
|
virtual |
Implements ossimAnnotationObject.
Definition at line 149 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationMultiLineObject::getBoundingRect(), and theProjectedMultiLineObject.
|
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 139 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationMultiLineObject::getNewClippedObject(), and theProjectedMultiLineObject.
|
virtual |
Implements ossimAnnotationObject.
Definition at line 129 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationMultiLineObject::intersects(), and theProjectedMultiLineObject.
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimAnnotationObject.
Definition at line 108 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationMultiLineObject::print(), thePolygon, and theProjectedMultiLineObject.
|
virtual |
Sets the color of thePolygon.
RGB range 0 to 255
r | DN value for red. |
g | DN value for green. |
b | DN value for blue. |
Reimplemented from ossimAnnotationObject.
Definition at line 159 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationObject::setColor(), and theProjectedMultiLineObject.
|
virtual |
Sets the pen thickness of thePolygon.
range 0 to 255
thickness | Pen thickness. |
Reimplemented from ossimAnnotationObject.
Definition at line 169 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationObject::setThickness(), and theProjectedMultiLineObject.
|
virtual |
Add the projection interface to all geographically defined objects.
Implements ossimGeoAnnotationObject.
Definition at line 82 of file ossimGeoAnnotationPolyLineObject.cpp.
References ossimAnnotationMultiLineObject::computeBoundingRect(), ossimAnnotationMultiLineObject::getPolyLineList(), thePolygon, theProjectedMultiLineObject, and ossimImageGeometry::worldToLocal().
Referenced by ossimGdalOgrVectorAnnotation::loadLineString(), and ossimGdalOgrVectorAnnotation::loadMultiLineString().
|
protected |
Definition at line 60 of file ossimGeoAnnotationPolyLineObject.h.
Referenced by applyScale(), print(), and transform().
|
protected |
Definition at line 61 of file ossimGeoAnnotationPolyLineObject.h.
Referenced by applyScale(), computeBoundingRect(), draw(), getBoundingRect(), getNewClippedObject(), intersects(), print(), setColor(), setThickness(), transform(), and ~ossimGeoAnnotationPolyLineObject().