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

#include <ossimEvent.h>

Inheritance diagram for ossimEvent:
ossimObject ossimReferenced ossimConnectionEvent ossimContainerEvent ossimDisplayListEvent ossimDisplayRefreshEvent ossimElevationManagerEvent ossimImageGeometryEvent ossimImagePolygonEvent ossimImageRectangleEvent ossimMouseEvent ossimObjectDestructingEvent ossimProcessProgressEvent ossimPropertyEvent ossimRefreshEvent ossimROIEvent ossimStateChangedEvent ossimViewEvent

Public Types

enum  PropagationType { PROPAGATION_NONE = 0, PROPAGATION_INPUT = 1, PROPAGATION_OUTPUT = 2 }
 

Public Member Functions

 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 ossimObjectdup () const
 
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

ossimObjecttheObject
 
ossimObjecttheCurrentObject
 
long theId
 
bool theIsConsumedFlag
 
PropagationType thePropagationType
 

Additional Inherited Members

- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 16 of file ossimEvent.h.

Member Enumeration Documentation

◆ PropagationType

Enumerator
PROPAGATION_NONE 
PROPAGATION_INPUT 
PROPAGATION_OUTPUT 

Definition at line 19 of file ossimEvent.h.

Constructor & Destructor Documentation

◆ ossimEvent() [1/2]

ossimEvent::ossimEvent ( ossimObject object = NULL,
long  id = OSSIM_EVENT_NULL_ID 
)
Parameters
objectThe object associated with the event if any.
idThe event id.

Definition at line 16 of file ossimEvent.cpp.

17 :
18 ossimObject(),
19 theObject(object),
20 theCurrentObject(object),
21 theId(id),
22 theIsConsumedFlag(false),
24 {
25 }
ossimObject * theObject
Definition: ossimEvent.h:58
PropagationType thePropagationType
Definition: ossimEvent.h:62
bool theIsConsumedFlag
Definition: ossimEvent.h:61
ossimObject * theCurrentObject
Definition: ossimEvent.h:59
long theId
Definition: ossimEvent.h:60

◆ ossimEvent() [2/2]

ossimEvent::ossimEvent ( const ossimEvent rhs)

Definition at line 27 of file ossimEvent.cpp.

28 :
29 ossimObject(),
30 theObject(rhs.theObject),
32 theId(rhs.theId),
35 
36 {
37 }
ossimObject * theObject
Definition: ossimEvent.h:58
PropagationType thePropagationType
Definition: ossimEvent.h:62
bool theIsConsumedFlag
Definition: ossimEvent.h:61
ossimObject * theCurrentObject
Definition: ossimEvent.h:59
long theId
Definition: ossimEvent.h:60

Member Function Documentation

◆ consume()

void ossimEvent::consume ( )

Definition at line 59 of file ossimEvent.cpp.

References setConsumedFlag().

60 {
61  setConsumedFlag(true);
62 }
void setConsumedFlag(bool flag=true)
Definition: ossimEvent.cpp:54

◆ getCurrentObject() [1/2]

const ossimObject * ossimEvent::getCurrentObject ( ) const

Definition at line 74 of file ossimEvent.cpp.

References theCurrentObject.

Referenced by ossimImageChain::processEvent().

75 {
76  return theCurrentObject;
77 }
ossimObject * theCurrentObject
Definition: ossimEvent.h:59

◆ getCurrentObject() [2/2]

ossimObject * ossimEvent::getCurrentObject ( )

Definition at line 79 of file ossimEvent.cpp.

References theCurrentObject.

80 {
81  return theCurrentObject;
82 }
ossimObject * theCurrentObject
Definition: ossimEvent.h:59

◆ getId()

long ossimEvent::getId ( ) const

◆ getObject() [1/2]

const ossimObject * ossimEvent::getObject ( ) const

◆ getObject() [2/2]

ossimObject * ossimEvent::getObject ( )

Definition at line 69 of file ossimEvent.cpp.

References theObject.

70 {
71  return theObject;
72 }
ossimObject * theObject
Definition: ossimEvent.h:58

◆ isConsumed()

bool ossimEvent::isConsumed ( ) const

Definition at line 49 of file ossimEvent.cpp.

References theIsConsumedFlag.

Referenced by ossimListenerManager::fireEvent(), and ossimROIEventListener::processEvent().

50 {
51  return theIsConsumedFlag;
52 }
bool theIsConsumedFlag
Definition: ossimEvent.h:61

◆ isPropagatingToInputs()

bool ossimEvent::isPropagatingToInputs ( ) const

Definition at line 104 of file ossimEvent.cpp.

References PROPAGATION_INPUT, and thePropagationType.

105 {
107 }
PropagationType thePropagationType
Definition: ossimEvent.h:62

◆ isPropagatingToOutputs()

bool ossimEvent::isPropagatingToOutputs ( ) const

Definition at line 99 of file ossimEvent.cpp.

References PROPAGATION_OUTPUT, and thePropagationType.

Referenced by ossimImageChain::processEvent().

100 {
102 }
PropagationType thePropagationType
Definition: ossimEvent.h:62

◆ setConsumedFlag()

void ossimEvent::setConsumedFlag ( bool  flag = true)

Definition at line 54 of file ossimEvent.cpp.

References theIsConsumedFlag.

Referenced by consume().

55 {
56  theIsConsumedFlag = flag;
57 }
bool theIsConsumedFlag
Definition: ossimEvent.h:61

◆ setCurrentObject()

void ossimEvent::setCurrentObject ( ossimObject object)

Definition at line 89 of file ossimEvent.cpp.

References theCurrentObject.

90 {
91  theCurrentObject = object;
92 }
ossimObject * theCurrentObject
Definition: ossimEvent.h:59

◆ setId()

void ossimEvent::setId ( long  id)

Definition at line 44 of file ossimEvent.cpp.

References theId.

45 {
46  theId = id;
47 }
long theId
Definition: ossimEvent.h:60

◆ setObject()

void ossimEvent::setObject ( ossimObject object)

Definition at line 84 of file ossimEvent.cpp.

References theObject.

85 {
86  theObject = object;
87 }
ossimObject * theObject
Definition: ossimEvent.h:58

◆ setPropagationType()

void ossimEvent::setPropagationType ( PropagationType  type)

Definition at line 94 of file ossimEvent.cpp.

References thePropagationType.

95 {
96  thePropagationType = type;
97 }
PropagationType thePropagationType
Definition: ossimEvent.h:62

Member Data Documentation

◆ theCurrentObject

ossimObject* ossimEvent::theCurrentObject
protected

Definition at line 59 of file ossimEvent.h.

Referenced by getCurrentObject(), and setCurrentObject().

◆ theId

long ossimEvent::theId
protected

Definition at line 60 of file ossimEvent.h.

Referenced by getId(), and setId().

◆ theIsConsumedFlag

bool ossimEvent::theIsConsumedFlag
protected

Definition at line 61 of file ossimEvent.h.

Referenced by isConsumed(), and setConsumedFlag().

◆ theObject

ossimObject* ossimEvent::theObject
protected

Definition at line 58 of file ossimEvent.h.

Referenced by getObject(), and setObject().

◆ thePropagationType

PropagationType ossimEvent::thePropagationType
protected

Definition at line 62 of file ossimEvent.h.

Referenced by isPropagatingToInputs(), isPropagatingToOutputs(), and setPropagationType().


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