/usr/include/ossim/base/ossimViewEvent.h is in libossim-dev 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
// Description: A brief description of the contents of the file.
//
//
//*************************************************************************
// $Id: ossimViewEvent.h 9968 2006-11-29 14:01:53Z gpotts $
#ifndef ossimViewEvent_HEADER
#define ossimViewEvent_HEADER
#include <ossim/base/ossimEvent.h>
#include <ossim/base/ossimGpt.h>
class OSSIMDLLEXPORT ossimViewEvent : public ossimEvent
{
public:
enum ossimViewEventType
{
OSSIM_VIEW_EVENT_TYPE_GENERIC = 0,
OSSIM_VIEW_EVENT_SCALE_CHANGE,
OSSIM_VIEW_EVENT_TRANSFORM_CHANGE,
OSSIM_VIEW_EVENT_VIEW_TYPE_CHANGE
};
enum ossimViewPropagateType
{
OSSIM_VIEW_EVENT_PROPAGATE_NONE = 0,
OSSIM_VIEW_EVENT_PROPAGATE_ALL_DISPLAYS = 1,
OSSIM_VIEW_EVENT_PROPAGATE_ALL_CHAINS = 2,
};
ossimViewEvent(ossimObject* view,
ossimGpt centerPt,
ossimViewPropagateType propagateType = OSSIM_VIEW_EVENT_PROPAGATE_NONE,
ossimViewEventType eventType = OSSIM_VIEW_EVENT_TYPE_GENERIC,
ossimObject* object=NULL)
:ossimEvent(object, OSSIM_EVENT_VIEW_ID),
theView(view),
theCenterPoint(centerPt),
theEventType(eventType),
thePropagateType(propagateType),
theUpdateInputViewFlag(true),
theRefreshDisplayFlag(true)
{
}
ossimViewEvent(const ossimViewEvent& rhs)
:ossimEvent(rhs),
theView(rhs.theView),
theCenterPoint(rhs.theCenterPoint),
theEventType(rhs.theEventType),
thePropagateType(rhs.thePropagateType),
theUpdateInputViewFlag(rhs.theUpdateInputViewFlag),
theRefreshDisplayFlag(rhs.theRefreshDisplayFlag)
{
}
virtual ossimObject* dup()const
{
return new ossimViewEvent(*this);
}
virtual void setView(ossimObject* view)
{
theView = view;
}
virtual ossimObject* getView()
{
return theView;
}
void disablePropagation()
{
thePropagateType = OSSIM_VIEW_EVENT_PROPAGATE_NONE;
}
void setPropagateType(ossimViewPropagateType type)
{
thePropagateType = type;
}
void setViewEventType(ossimViewEventType eventType)
{
theEventType = eventType;
}
void setEventTypeViewTypeChange()
{
theEventType = OSSIM_VIEW_EVENT_VIEW_TYPE_CHANGE;
}
void setEventTypeTransformChange()
{
theEventType = OSSIM_VIEW_EVENT_TRANSFORM_CHANGE;
}
void setEventTypeGeneric()
{
theEventType = OSSIM_VIEW_EVENT_TYPE_GENERIC;
}
void setCenterGroundPoint(const ossimGpt& gpt)
{
theCenterPoint = gpt;
}
const ossimGpt& getCenterGroundPoint()const
{
return theCenterPoint;
}
ossimViewEventType getViewEventType()const
{
return theEventType;
}
bool isViewChange()const
{
return (theEventType == OSSIM_VIEW_EVENT_VIEW_TYPE_CHANGE);
}
bool isTransformChange()const
{
return (theEventType == OSSIM_VIEW_EVENT_TRANSFORM_CHANGE);
}
bool isScaleChange()const
{
return (theEventType == OSSIM_VIEW_EVENT_SCALE_CHANGE);
}
bool isPropagateEnabled()const
{
return (thePropagateType != OSSIM_VIEW_EVENT_PROPAGATE_NONE);
}
bool isPropagateToDisplays()const
{
return (thePropagateType & OSSIM_VIEW_EVENT_PROPAGATE_ALL_DISPLAYS);
}
bool isPropagateToChains()const
{
return (thePropagateType & OSSIM_VIEW_EVENT_PROPAGATE_ALL_CHAINS);
}
void setUpdateInputViewFlag(bool flag)
{
theUpdateInputViewFlag = flag;
}
bool getUpdateInputViewFlag()const
{
return theUpdateInputViewFlag;
}
void setRefreshDisplayFlag(bool flag)
{
theRefreshDisplayFlag = flag;
}
bool getRefreshDisplayFlag()const
{
return theRefreshDisplayFlag;
}
protected:
ossimObject* theView;
ossimGpt theCenterPoint;
ossimViewEventType theEventType;
ossimViewPropagateType thePropagateType;
bool theUpdateInputViewFlag;
bool theRefreshDisplayFlag;
TYPE_DATA
};
#endif
|