OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimEvent.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts (gpotts@imagelinks)
6 // Description: A brief description of the contents of the file.
7 //
8 //
9 //*************************************************************************
10 // $Id: ossimEvent.cpp 13362 2008-08-01 14:02:32Z gpotts $
11 #include <ossim/base/ossimEvent.h>
12 
13 RTTI_DEF1(ossimEvent, "ossimEvent", ossimObject);
14 
15 
17 :
18 ossimObject(),
19 theObject(object),
20 theCurrentObject(object),
21 theId(id),
22 theIsConsumedFlag(false),
23 thePropagationType(PROPAGATION_NONE)
24 {
25 }
26 
28 :
29 ossimObject(),
30 theObject(rhs.theObject),
31 theCurrentObject(rhs.theCurrentObject),
32 theId(rhs.theId),
33 theIsConsumedFlag(rhs.theIsConsumedFlag),
34 thePropagationType(PROPAGATION_NONE)
35 
36 {
37 }
38 
39 long ossimEvent::getId() const
40 {
41  return theId;
42 }
43 
44 void ossimEvent::setId(long id)
45 {
46  theId = id;
47 }
48 
50 {
51  return theIsConsumedFlag;
52 }
53 
55 {
56  theIsConsumedFlag = flag;
57 }
58 
60 {
61  setConsumedFlag(true);
62 }
63 
65 {
66  return theObject;
67 }
68 
70 {
71  return theObject;
72 }
73 
75 {
76  return theCurrentObject;
77 }
78 
80 {
81  return theCurrentObject;
82 }
83 
85 {
86  theObject = object;
87 }
88 
90 {
91  theCurrentObject = object;
92 }
93 
95 {
96  thePropagationType = type;
97 }
98 
100 {
102 }
103 
105 {
107 }
108 
void setConsumedFlag(bool flag=true)
Definition: ossimEvent.cpp:54
void setObject(ossimObject *object)
Definition: ossimEvent.cpp:84
const ossimObject * getCurrentObject() const
Definition: ossimEvent.cpp:74
ossimObject * theObject
Definition: ossimEvent.h:58
bool isConsumed() const
Definition: ossimEvent.cpp:49
void setPropagationType(PropagationType type)
Definition: ossimEvent.cpp:94
bool isPropagatingToInputs() const
Definition: ossimEvent.cpp:104
RTTI_DEF1(ossimEvent, "ossimEvent", ossimObject)
const ossimObject * getObject() const
This is the originating object that originally produced the event.
Definition: ossimEvent.cpp:64
void setCurrentObject(ossimObject *object)
Definition: ossimEvent.cpp:89
ossimEvent(ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
Definition: ossimEvent.cpp:16
PropagationType thePropagationType
Definition: ossimEvent.h:62
bool theIsConsumedFlag
Definition: ossimEvent.h:61
long getId() const
Definition: ossimEvent.cpp:39
ossimObject * theCurrentObject
Definition: ossimEvent.h:59
void consume()
Definition: ossimEvent.cpp:59
bool isPropagatingToOutputs() const
Definition: ossimEvent.cpp:99
void setId(long id)
Definition: ossimEvent.cpp:44
long theId
Definition: ossimEvent.h:60