|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimROIEvent.h>
Public Types | |
| enum | ossimRegionType { OSSIM_RECTANGLE_ROI = 0, OSSIM_POLYGON_ROI = 1, OSSIM_POLYLINE_ROI = 2 } |
Public Types inherited from ossimEvent | |
| enum | PropagationType { PROPAGATION_NONE = 0, PROPAGATION_INPUT = 1, PROPAGATION_OUTPUT = 2 } |
Public Member Functions | |
| ossimROIEvent (ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID) | |
| ossimROIEvent (const ossimROIEvent &rhs) | |
| virtual ossimObject * | dup () const |
| const std::vector< ossimIpt > & | getPoints () const |
| void | getPoint (std::vector< ossimIpt > &points) const |
| void | setPoints (const std::vector< ossimIpt > &points) |
| void | setRect (const ossimIrect &rect) |
| void | setEventType (ossimRegionType eventType) |
| ossimRegionType | getEventType () const |
| void | setTypeToPolygon () |
| void | setTypeToRectangle () |
| void | setTypeToPolyline () |
| bool | isRectangleRegion () const |
| bool | isPolygonRegion () const |
| bool | isPolylineRegion () const |
| void | getRect (ossimIrect &rect) const |
| void | getPolygon (ossimPolygon &polygon) const |
| void | getPolyLine (ossimPolyLine &polyline) const |
| void | setMovingFlag (bool flag) |
| bool | getMovingFlag () const |
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 ossimObject * | getObject () const |
| This is the originating object that originally produced the event. More... | |
| ossimObject * | getObject () |
| const ossimObject * | getCurrentObject () const |
| ossimObject * | getCurrentObject () |
| 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 &) | |
| 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 | |
| std::vector< ossimIpt > | thePoints |
| ossimRegionType | theType |
| bool | theMovingFlag |
Protected Attributes inherited from ossimEvent | |
| ossimObject * | theObject |
| ossimObject * | theCurrentObject |
| long | theId |
| bool | theIsConsumedFlag |
| PropagationType | thePropagationType |
Additional Inherited Members | |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Definition at line 21 of file ossimROIEvent.h.
| Enumerator | |
|---|---|
| OSSIM_RECTANGLE_ROI | |
| OSSIM_POLYGON_ROI | |
| OSSIM_POLYLINE_ROI | |
Definition at line 29 of file ossimROIEvent.h.
| ossimROIEvent::ossimROIEvent | ( | ossimObject * | object = NULL, |
| long | id = OSSIM_EVENT_NULL_ID |
||
| ) |
Definition at line 18 of file ossimROIEvent.cpp.
Referenced by dup().
| ossimROIEvent::ossimROIEvent | ( | const ossimROIEvent & | rhs | ) |
Definition at line 27 of file ossimROIEvent.cpp.
|
virtual |
Reimplemented from ossimObject.
Definition at line 34 of file ossimROIEvent.cpp.
References ossimROIEvent().
| ossimROIEvent::ossimRegionType ossimROIEvent::getEventType | ( | ) | const |
Definition at line 66 of file ossimROIEvent.cpp.
References theType.
Referenced by ossimROIEventListener::processEvent().
| bool ossimROIEvent::getMovingFlag | ( | ) | const |
Definition at line 121 of file ossimROIEvent.cpp.
References theMovingFlag.
| void ossimROIEvent::getPoint | ( | std::vector< ossimIpt > & | points | ) | const |
| const vector< ossimIpt > & ossimROIEvent::getPoints | ( | ) | const |
| void ossimROIEvent::getPolygon | ( | ossimPolygon & | polygon | ) | const |
Definition at line 106 of file ossimROIEvent.cpp.
References thePoints.
| void ossimROIEvent::getPolyLine | ( | ossimPolyLine & | polyline | ) | const |
Definition at line 111 of file ossimROIEvent.cpp.
References thePoints.
| void ossimROIEvent::getRect | ( | ossimIrect & | rect | ) | const |
| bool ossimROIEvent::isPolygonRegion | ( | ) | const |
| bool ossimROIEvent::isPolylineRegion | ( | ) | const |
| bool ossimROIEvent::isRectangleRegion | ( | ) | const |
| void ossimROIEvent::setEventType | ( | ossimRegionType | eventType | ) |
| void ossimROIEvent::setMovingFlag | ( | bool | flag | ) |
| flag | If true indicates region of interest is moving and size is not to change. |
Definition at line 116 of file ossimROIEvent.cpp.
References theMovingFlag.
| void ossimROIEvent::setPoints | ( | const std::vector< ossimIpt > & | points | ) |
| void ossimROIEvent::setRect | ( | const ossimIrect & | rect | ) |
Definition at line 54 of file ossimROIEvent.cpp.
References ossimIrect::lr(), thePoints, and ossimIrect::ul().
| void ossimROIEvent::setTypeToPolygon | ( | ) |
| void ossimROIEvent::setTypeToPolyline | ( | ) |
| void ossimROIEvent::setTypeToRectangle | ( | ) |
|
protected |
Definition at line 69 of file ossimROIEvent.h.
Referenced by getMovingFlag(), and setMovingFlag().
|
protected |
Definition at line 65 of file ossimROIEvent.h.
Referenced by getPoint(), getPoints(), getPolygon(), getPolyLine(), getRect(), setPoints(), and setRect().
|
protected |
Definition at line 66 of file ossimROIEvent.h.
Referenced by getEventType(), isPolygonRegion(), isPolylineRegion(), isRectangleRegion(), setEventType(), setTypeToPolygon(), setTypeToPolyline(), and setTypeToRectangle().
1.8.14