OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | List of all members
ossimGeoAnnotationMultiEllipseObject Class Reference

#include <ossimGeoAnnotationMultiEllipseObject.h>

Inheritance diagram for ossimGeoAnnotationMultiEllipseObject:
ossimGeoAnnotationObject ossimAnnotationObject ossimObject ossimReferenced

Public Member Functions

 ossimGeoAnnotationMultiEllipseObject ()
 
virtual ~ossimGeoAnnotationMultiEllipseObject ()
 
 ossimGeoAnnotationMultiEllipseObject (const std::vector< ossimGpt > &centerPoints, const ossimDpt &widthHeight, bool enableFill=false, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1)
 
 ossimGeoAnnotationMultiEllipseObject (const ossimDpt &widthHeight, bool enableFill=false, unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1)
 
 ossimGeoAnnotationMultiEllipseObject (const ossimGeoAnnotationMultiEllipseObject &rhs)
 
virtual ossimObjectdup () const
 
virtual ossimAnnotationObjectgetNewClippedObject (const ossimDrect &rect) const
 
virtual void transform (ossimImageGeometry *projection)
 
virtual void applyScale (double x, double y)
 
virtual void draw (ossimRgbImage &anImage) const
 
virtual bool intersects (const ossimDrect &rect) const
 
virtual void addPoint (const ossimGpt &point)
 
virtual void setColor (unsigned char r, unsigned char g, unsigned char b)
 
virtual void setThickness (ossim_uint8 thickness)
 
virtual void setPoint (int i, const ossimGpt &point)
 
virtual void setWidthHeight (const ossimDpt &widthHeight)
 
virtual void resize (ossim_uint32 newSize)
 
virtual void setFillFlag (bool fillFlag)
 
virtual std::ostream & print (std::ostream &out) const
 Generic print method. More...
 
virtual void getBoundingRect (ossimDrect &rect) const
 
virtual void computeBoundingRect ()
 
- Public Member Functions inherited from ossimGeoAnnotationObject
 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...
 
- Public Member Functions inherited from ossimAnnotationObject
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 ()
 
- Public Member Functions inherited from ossimObject
 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)
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (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

ossimAnnotationMultiEllipseObjecttheProjectedObject
 
std::vector< ossimGptthePointList
 
ossimDpt theWidthHeight
 
bool theFillFlag
 
- Protected Attributes inherited from ossimAnnotationObject
ossim_uint8 theRed
 
ossim_uint8 theGreen
 
ossim_uint8 theBlue
 
ossim_uint8 theThickness
 
ossimString theName
 
ossim_uint32 theId
 

Additional Inherited Members

- Static Public Member Functions inherited from ossimAnnotationObject
static ossim_uint32 getNextId ()
 
static void restIdCounter ()
 
- Protected Member Functions inherited from ossimGeoAnnotationObject
virtual ~ossimGeoAnnotationObject ()
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 
- Static Protected Attributes inherited from ossimAnnotationObject
static ossim_uint32 theIdCounter = 0
 

Detailed Description

Definition at line 14 of file ossimGeoAnnotationMultiEllipseObject.h.

Constructor & Destructor Documentation

◆ ossimGeoAnnotationMultiEllipseObject() [1/4]

ossimGeoAnnotationMultiEllipseObject::ossimGeoAnnotationMultiEllipseObject ( )

◆ ~ossimGeoAnnotationMultiEllipseObject()

ossimGeoAnnotationMultiEllipseObject::~ossimGeoAnnotationMultiEllipseObject ( )
virtual

Definition at line 24 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References theProjectedObject.

25 {
27  {
28  delete theProjectedObject;
30  }
31 }
ossimAnnotationMultiEllipseObject * theProjectedObject

◆ ossimGeoAnnotationMultiEllipseObject() [2/4]

ossimGeoAnnotationMultiEllipseObject::ossimGeoAnnotationMultiEllipseObject ( const std::vector< ossimGpt > &  centerPoints,
const ossimDpt widthHeight,
bool  enableFill = false,
unsigned char  r = 255,
unsigned char  g = 255,
unsigned char  b = 255,
long  thickness = 1 
)

Definition at line 32 of file ossimGeoAnnotationMultiEllipseObject.cpp.

39  :ossimGeoAnnotationObject(r, g, b, thickness),
40  theProjectedObject(new ossimAnnotationMultiEllipseObject(widthHeight,enableFill, r, g, b, thickness )),
41  thePointList(pointList),
42  theWidthHeight(widthHeight),
43  theFillFlag(enableFill)
44 {
45 
46 }
ossimAnnotationMultiEllipseObject * theProjectedObject
ossimGeoAnnotationObject(unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1)

◆ ossimGeoAnnotationMultiEllipseObject() [3/4]

ossimGeoAnnotationMultiEllipseObject::ossimGeoAnnotationMultiEllipseObject ( const ossimDpt widthHeight,
bool  enableFill = false,
unsigned char  r = 255,
unsigned char  g = 255,
unsigned char  b = 255,
long  thickness = 1 
)

Definition at line 48 of file ossimGeoAnnotationMultiEllipseObject.cpp.

54  :ossimGeoAnnotationObject(r, g, b,thickness),
55  theProjectedObject(new ossimAnnotationMultiEllipseObject(widthHeight,enableFill, r, g, b, thickness )),
56  theWidthHeight(widthHeight),
57  theFillFlag(enableFill)
58 {
59 }
ossimAnnotationMultiEllipseObject * theProjectedObject
ossimGeoAnnotationObject(unsigned char r=255, unsigned char g=255, unsigned char b=255, long thickness=1)

◆ ossimGeoAnnotationMultiEllipseObject() [4/4]

ossimGeoAnnotationMultiEllipseObject::ossimGeoAnnotationMultiEllipseObject ( const ossimGeoAnnotationMultiEllipseObject rhs)

Member Function Documentation

◆ addPoint()

void ossimGeoAnnotationMultiEllipseObject::addPoint ( const ossimGpt point)
virtual

Definition at line 164 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References thePointList.

Referenced by ossimGdalOgrVectorAnnotation::loadMultiPoint().

165 {
166  thePointList.push_back(point);
167 }

◆ applyScale()

void ossimGeoAnnotationMultiEllipseObject::applyScale ( double  x,
double  y 
)
virtual

Implements ossimAnnotationObject.

Definition at line 110 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References ossimNotify(), and ossimNotifyLevel_NOTICE.

112 {
114  << "ossimGeoAnnotationMultiEllipseObject::applyScale NOT IMPLEMENTED"
115  << endl;
116 }
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)

◆ computeBoundingRect()

void ossimGeoAnnotationMultiEllipseObject::computeBoundingRect ( )
virtual

◆ draw()

void ossimGeoAnnotationMultiEllipseObject::draw ( ossimRgbImage anImage) const
virtual

Implements ossimAnnotationObject.

Definition at line 118 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References ossimAnnotationMultiEllipseObject::draw(), and theProjectedObject.

119 {
120  theProjectedObject->draw(anImage);
121 }
ossimAnnotationMultiEllipseObject * theProjectedObject
virtual void draw(ossimRgbImage &anImage) const

◆ dup()

ossimObject * ossimGeoAnnotationMultiEllipseObject::dup ( ) const
virtual

◆ getBoundingRect()

void ossimGeoAnnotationMultiEllipseObject::getBoundingRect ( ossimDrect rect) const
virtual

◆ getNewClippedObject()

ossimAnnotationObject * ossimGeoAnnotationMultiEllipseObject::getNewClippedObject ( const ossimDrect rect) const
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 155 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References dup(), ossimNotify(), and ossimNotifyLevel_NOTICE.

157 {
159  << "ossimGeoAnnotationMultiEllipseObject::getNewClippedObject "
160  << "NOT IMPLEMENTED" << endl;
161  return (ossimAnnotationObject*)dup();
162 }
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)

◆ intersects()

bool ossimGeoAnnotationMultiEllipseObject::intersects ( const ossimDrect rect) const
virtual

Implements ossimAnnotationObject.

Definition at line 123 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References ossimAnnotationMultiEllipseObject::intersects(), and theProjectedObject.

124 {
125  return theProjectedObject->intersects(rect);
126 }
virtual bool intersects(const ossimDrect &rect) const
ossimAnnotationMultiEllipseObject * theProjectedObject

◆ print()

std::ostream & ossimGeoAnnotationMultiEllipseObject::print ( std::ostream &  out) const
virtual

Generic print method.

Derived classes should re-implement as they see fit.

Returns
std::ostream&

Reimplemented from ossimAnnotationObject.

Definition at line 134 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References ossimAnnotationMultiEllipseObject::print(), and theProjectedObject.

135 {
137  return out;
138 }
ossimAnnotationMultiEllipseObject * theProjectedObject
virtual std::ostream & print(std::ostream &out) const
Generic print method.

◆ resize()

void ossimGeoAnnotationMultiEllipseObject::resize ( ossim_uint32  newSize)
virtual

Definition at line 175 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References thePointList.

176 {
177  if(newSize)
178  {
179  thePointList.resize(newSize);
180  }
181 }

◆ setColor()

void ossimGeoAnnotationMultiEllipseObject::setColor ( unsigned char  r,
unsigned char  g,
unsigned char  b 
)
virtual

◆ setFillFlag()

void ossimGeoAnnotationMultiEllipseObject::setFillFlag ( bool  fillFlag)
virtual

◆ setPoint()

void ossimGeoAnnotationMultiEllipseObject::setPoint ( int  i,
const ossimGpt point 
)
virtual

Definition at line 169 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References thePointList.

171 {
172  thePointList[i] = point;
173 }

◆ setThickness()

void ossimGeoAnnotationMultiEllipseObject::setThickness ( ossim_uint8  thickness)
virtual

◆ setWidthHeight()

void ossimGeoAnnotationMultiEllipseObject::setWidthHeight ( const ossimDpt widthHeight)
virtual

◆ transform()

void ossimGeoAnnotationMultiEllipseObject::transform ( ossimImageGeometry projection)
virtual

Add the projection interface to all geographically defined objects.

Implements ossimGeoAnnotationObject.

Definition at line 70 of file ossimGeoAnnotationMultiEllipseObject.cpp.

References computeBoundingRect(), ossimAnnotationMultiEllipseObject::resize(), thePointList, theProjectedObject, and ossimImageGeometry::worldToLocal().

Referenced by ossimGdalOgrVectorAnnotation::loadMultiPoint().

72 {
73  const std::vector<ossimGpt>::size_type BOUNDS = thePointList.size();
75  for(std::vector<ossimGpt>::size_type i = 0; i < BOUNDS; ++i)
76  {
77  projection->worldToLocal(thePointList[(int)i], (*theProjectedObject)[(int)i]);
78 
79  }
81 }
unsigned int ossim_uint32
ossimAnnotationMultiEllipseObject * theProjectedObject
bool worldToLocal(const ossimGpt &world_pt, ossimDpt &local_pt) const
Exposes the 3D world-to-local image coordinate reverse projection.

Member Data Documentation

◆ theFillFlag

bool ossimGeoAnnotationMultiEllipseObject::theFillFlag
protected

Definition at line 67 of file ossimGeoAnnotationMultiEllipseObject.h.

Referenced by setFillFlag().

◆ thePointList

std::vector<ossimGpt> ossimGeoAnnotationMultiEllipseObject::thePointList
protected

Definition at line 65 of file ossimGeoAnnotationMultiEllipseObject.h.

Referenced by addPoint(), resize(), setPoint(), and transform().

◆ theProjectedObject

ossimAnnotationMultiEllipseObject* ossimGeoAnnotationMultiEllipseObject::theProjectedObject
protected

◆ theWidthHeight

ossimDpt ossimGeoAnnotationMultiEllipseObject::theWidthHeight
protected

Definition at line 66 of file ossimGeoAnnotationMultiEllipseObject.h.

Referenced by setWidthHeight().


The documentation for this class was generated from the following files: