11 #ifndef ossimViewEvent_HEADER 12 #define ossimViewEvent_HEADER 20 OSSIM_VIEW_EVENT_TYPE_GENERIC = 0,
23 OSSIM_VIEW_EVENT_VIEW_TYPE_CHANGE
27 OSSIM_VIEW_EVENT_PROPAGATE_NONE = 0,
28 OSSIM_VIEW_EVENT_PROPAGATE_ALL_DISPLAYS = 1,
29 OSSIM_VIEW_EVENT_PROPAGATE_ALL_CHAINS = 2,
39 theCenterPoint(centerPt),
40 theEventType(eventType),
41 thePropagateType(propagateType),
42 theUpdateInputViewFlag(
true),
43 theRefreshDisplayFlag(
true)
49 theCenterPoint(rhs.theCenterPoint),
50 theEventType(rhs.theEventType),
51 thePropagateType(rhs.thePropagateType),
52 theUpdateInputViewFlag(rhs.theUpdateInputViewFlag),
53 theRefreshDisplayFlag(rhs.theRefreshDisplayFlag)
70 thePropagateType = OSSIM_VIEW_EVENT_PROPAGATE_NONE;
74 thePropagateType = type;
78 theEventType = eventType;
82 theEventType = OSSIM_VIEW_EVENT_VIEW_TYPE_CHANGE;
86 theEventType = OSSIM_VIEW_EVENT_TRANSFORM_CHANGE;
90 theEventType = OSSIM_VIEW_EVENT_TYPE_GENERIC;
98 return theCenterPoint;
106 return (theEventType == OSSIM_VIEW_EVENT_VIEW_TYPE_CHANGE);
110 return (theEventType == OSSIM_VIEW_EVENT_TRANSFORM_CHANGE);
114 return (theEventType == OSSIM_VIEW_EVENT_SCALE_CHANGE);
119 return (thePropagateType != OSSIM_VIEW_EVENT_PROPAGATE_NONE);
123 return (thePropagateType & OSSIM_VIEW_EVENT_PROPAGATE_ALL_DISPLAYS);
127 return (thePropagateType & OSSIM_VIEW_EVENT_PROPAGATE_ALL_CHAINS);
131 theUpdateInputViewFlag = flag;
135 return theUpdateInputViewFlag;
139 theRefreshDisplayFlag = flag;
143 return theRefreshDisplayFlag;
bool isViewChange() const
bool theUpdateInputViewFlag
#define OSSIM_EVENT_VIEW_ID
virtual void setView(ossimObject *view)
void setPropagateType(ossimViewPropagateType type)
void setCenterGroundPoint(const ossimGpt &gpt)
void setRefreshDisplayFlag(bool flag)
virtual ossimObject * getView()
void disablePropagation()
ossimViewEventType theEventType
bool getRefreshDisplayFlag() const
bool isScaleChange() const
bool getUpdateInputViewFlag() const
void setViewEventType(ossimViewEventType eventType)
ossimViewEvent(const ossimViewEvent &rhs)
void setUpdateInputViewFlag(bool flag)
ossimViewEventType getViewEventType() const
void setEventTypeGeneric()
bool theRefreshDisplayFlag
bool isTransformChange() const
ossimViewEvent(ossimObject *view, ossimGpt centerPt, ossimViewPropagateType propagateType=OSSIM_VIEW_EVENT_PROPAGATE_NONE, ossimViewEventType eventType=OSSIM_VIEW_EVENT_TYPE_GENERIC, ossimObject *object=NULL)
bool isPropagateEnabled() const
ossimViewPropagateType thePropagateType
void setEventTypeViewTypeChange()
virtual ossimObject * dup() const
bool isPropagateToChains() const
void setEventTypeTransformChange()
bool isPropagateToDisplays() const
const ossimGpt & getCenterGroundPoint() const