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

#include <ossimImagePolygonEvent.h>

Inheritance diagram for ossimImagePolygonEvent:
ossimEvent ossimObject ossimReferenced

Public Member Functions

 ossimImagePolygonEvent (const std::vector< ossimIpt > &polygon, ossimObject *obj=0)
 
 ossimImagePolygonEvent (const std::vector< ossimDpt > &polygon, ossimObject *obj=0)
 
virtual ossimObjectdup () const
 
const std::vector< ossimIpt > & getpolygon () const
 
const std::vector< ossimIpt > & getPolygon () const
 
void setPolygon (const std::vector< ossimIpt > &polygon)
 
void setPolygon (const std::vector< ossimDpt > &polygon)
 
- Public Member Functions inherited from ossimEvent
 ossimEvent (ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
 
 ossimEvent (const ossimEvent &rhs)
 
long getId () const
 
void setId (long id)
 
bool isConsumed () const
 
void setConsumedFlag (bool flag=true)
 
void consume ()
 
const ossimObjectgetObject () const
 This is the originating object that originally produced the event. More...
 
ossimObjectgetObject ()
 
const ossimObjectgetCurrentObject () const
 
ossimObjectgetCurrentObject ()
 
void setObject (ossimObject *object)
 
void setCurrentObject (ossimObject *object)
 
void setPropagationType (PropagationType type)
 
bool isPropagatingToOutputs () const
 
bool isPropagatingToInputs () const
 
- 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 saveState (ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 
virtual std::ostream & print (std::ostream &out) const
 Generic print method. More...
 
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

std::vector< ossimIptthePolygon
 
- Protected Attributes inherited from ossimEvent
ossimObjecttheObject
 
ossimObjecttheCurrentObject
 
long theId
 
bool theIsConsumedFlag
 
PropagationType thePropagationType
 

Additional Inherited Members

- Public Types inherited from ossimEvent
enum  PropagationType { PROPAGATION_NONE = 0, PROPAGATION_INPUT = 1, PROPAGATION_OUTPUT = 2 }
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 19 of file ossimImagePolygonEvent.h.

Constructor & Destructor Documentation

◆ ossimImagePolygonEvent() [1/2]

ossimImagePolygonEvent::ossimImagePolygonEvent ( const std::vector< ossimIpt > &  polygon,
ossimObject obj = 0 
)
inline

Definition at line 22 of file ossimImagePolygonEvent.h.

25  thePolygon(polygon)
26  {
27  }
std::vector< ossimIpt > thePolygon
ossimEvent(ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
Definition: ossimEvent.cpp:16
#define OSSIM_EVENT_AOI_POLYGON_ID
Definition: ossimEventIds.h:36

◆ ossimImagePolygonEvent() [2/2]

ossimImagePolygonEvent::ossimImagePolygonEvent ( const std::vector< ossimDpt > &  polygon,
ossimObject obj = 0 
)
inline

Definition at line 29 of file ossimImagePolygonEvent.h.

32  thePolygon(polygon.size())
33  {
34  for (std::vector<ossimDpt>::size_type i = 0; i < polygon.size(); ++i)
35  {
36  thePolygon[i] = polygon[i];
37  }
38  }
std::vector< ossimIpt > thePolygon
ossimEvent(ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
Definition: ossimEvent.cpp:16
#define OSSIM_EVENT_AOI_POLYGON_ID
Definition: ossimEventIds.h:36

Member Function Documentation

◆ dup()

virtual ossimObject* ossimImagePolygonEvent::dup ( ) const
inlinevirtual

Reimplemented from ossimObject.

Definition at line 39 of file ossimImagePolygonEvent.h.

40  {
41  return new ossimImagePolygonEvent(*this);
42  }
ossimImagePolygonEvent(const std::vector< ossimIpt > &polygon, ossimObject *obj=0)

◆ getpolygon()

const std::vector<ossimIpt>& ossimImagePolygonEvent::getpolygon ( ) const
inline

Definition at line 44 of file ossimImagePolygonEvent.h.

45  {
46  return thePolygon;
47  }
std::vector< ossimIpt > thePolygon

◆ getPolygon()

const std::vector<ossimIpt>& ossimImagePolygonEvent::getPolygon ( ) const
inline

Definition at line 48 of file ossimImagePolygonEvent.h.

49  {
50  return thePolygon;
51  }
std::vector< ossimIpt > thePolygon

◆ setPolygon() [1/2]

void ossimImagePolygonEvent::setPolygon ( const std::vector< ossimIpt > &  polygon)
inline

Definition at line 52 of file ossimImagePolygonEvent.h.

53  {
54  thePolygon = polygon;
55  }
std::vector< ossimIpt > thePolygon

◆ setPolygon() [2/2]

void ossimImagePolygonEvent::setPolygon ( const std::vector< ossimDpt > &  polygon)
inline

Definition at line 56 of file ossimImagePolygonEvent.h.

57  {
58  thePolygon.resize(polygon.size());
59  for (std::vector<ossimDpt>::size_type i = 0; i < polygon.size(); ++i)
60  {
61  thePolygon[i] = polygon[i];
62  }
63  }
std::vector< ossimIpt > thePolygon

Member Data Documentation

◆ thePolygon

std::vector<ossimIpt> ossimImagePolygonEvent::thePolygon
protected

Definition at line 66 of file ossimImagePolygonEvent.h.


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