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

#include <ossimViewEvent.h>

Inheritance diagram for ossimViewEvent:
ossimEvent ossimObject ossimReferenced

Public Types

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 }
 
- Public Types inherited from ossimEvent
enum  PropagationType { PROPAGATION_NONE = 0, PROPAGATION_INPUT = 1, PROPAGATION_OUTPUT = 2 }
 

Public Member Functions

 ossimViewEvent (ossimObject *view, ossimGpt centerPt, ossimViewPropagateType propagateType=OSSIM_VIEW_EVENT_PROPAGATE_NONE, ossimViewEventType eventType=OSSIM_VIEW_EVENT_TYPE_GENERIC, ossimObject *object=NULL)
 
 ossimViewEvent (const ossimViewEvent &rhs)
 
virtual ossimObjectdup () const
 
virtual void setView (ossimObject *view)
 
virtual ossimObjectgetView ()
 
void disablePropagation ()
 
void setPropagateType (ossimViewPropagateType type)
 
void setViewEventType (ossimViewEventType eventType)
 
void setEventTypeViewTypeChange ()
 
void setEventTypeTransformChange ()
 
void setEventTypeGeneric ()
 
void setCenterGroundPoint (const ossimGpt &gpt)
 
const ossimGptgetCenterGroundPoint () const
 
ossimViewEventType getViewEventType () const
 
bool isViewChange () const
 
bool isTransformChange () const
 
bool isScaleChange () const
 
bool isPropagateEnabled () const
 
bool isPropagateToDisplays () const
 
bool isPropagateToChains () const
 
void setUpdateInputViewFlag (bool flag)
 
bool getUpdateInputViewFlag () const
 
void setRefreshDisplayFlag (bool flag)
 
bool getRefreshDisplayFlag () 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 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 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

ossimObjecttheView
 
ossimGpt theCenterPoint
 
ossimViewEventType theEventType
 
ossimViewPropagateType thePropagateType
 
bool theUpdateInputViewFlag
 
bool theRefreshDisplayFlag
 
- Protected Attributes inherited from ossimEvent
ossimObjecttheObject
 
ossimObjecttheCurrentObject
 
long theId
 
bool theIsConsumedFlag
 
PropagationType thePropagationType
 

Additional Inherited Members

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

Detailed Description

Definition at line 15 of file ossimViewEvent.h.

Member Enumeration Documentation

◆ ossimViewEventType

Enumerator
OSSIM_VIEW_EVENT_TYPE_GENERIC 
OSSIM_VIEW_EVENT_SCALE_CHANGE 
OSSIM_VIEW_EVENT_TRANSFORM_CHANGE 
OSSIM_VIEW_EVENT_VIEW_TYPE_CHANGE 

Definition at line 18 of file ossimViewEvent.h.

◆ ossimViewPropagateType

Enumerator
OSSIM_VIEW_EVENT_PROPAGATE_NONE 
OSSIM_VIEW_EVENT_PROPAGATE_ALL_DISPLAYS 
OSSIM_VIEW_EVENT_PROPAGATE_ALL_CHAINS 

Definition at line 25 of file ossimViewEvent.h.

Constructor & Destructor Documentation

◆ ossimViewEvent() [1/2]

ossimViewEvent::ossimViewEvent ( ossimObject view,
ossimGpt  centerPt,
ossimViewPropagateType  propagateType = OSSIM_VIEW_EVENT_PROPAGATE_NONE,
ossimViewEventType  eventType = OSSIM_VIEW_EVENT_TYPE_GENERIC,
ossimObject object = NULL 
)
inline

Definition at line 32 of file ossimViewEvent.h.

38  theView(view),
39  theCenterPoint(centerPt),
40  theEventType(eventType),
41  thePropagateType(propagateType),
44  {
45  }
bool theUpdateInputViewFlag
#define OSSIM_EVENT_VIEW_ID
Definition: ossimEventIds.h:58
ossimViewEventType theEventType
ossimGpt theCenterPoint
bool theRefreshDisplayFlag
ossimEvent(ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
Definition: ossimEvent.cpp:16
ossimObject * theView
ossimViewPropagateType thePropagateType

◆ ossimViewEvent() [2/2]

ossimViewEvent::ossimViewEvent ( const ossimViewEvent rhs)
inline

Definition at line 46 of file ossimViewEvent.h.

47  :ossimEvent(rhs),
48  theView(rhs.theView),
54  {
55  }
bool theUpdateInputViewFlag
ossimViewEventType theEventType
ossimGpt theCenterPoint
bool theRefreshDisplayFlag
ossimEvent(ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
Definition: ossimEvent.cpp:16
ossimObject * theView
ossimViewPropagateType thePropagateType

Member Function Documentation

◆ disablePropagation()

void ossimViewEvent::disablePropagation ( )
inline

◆ dup()

virtual ossimObject* ossimViewEvent::dup ( ) const
inlinevirtual

Reimplemented from ossimObject.

Definition at line 56 of file ossimViewEvent.h.

57  {
58  return new ossimViewEvent(*this);
59  }
ossimViewEvent(ossimObject *view, ossimGpt centerPt, ossimViewPropagateType propagateType=OSSIM_VIEW_EVENT_PROPAGATE_NONE, ossimViewEventType eventType=OSSIM_VIEW_EVENT_TYPE_GENERIC, ossimObject *object=NULL)

◆ getCenterGroundPoint()

const ossimGpt& ossimViewEvent::getCenterGroundPoint ( ) const
inline

Definition at line 96 of file ossimViewEvent.h.

97  {
98  return theCenterPoint;
99  }
ossimGpt theCenterPoint

◆ getRefreshDisplayFlag()

bool ossimViewEvent::getRefreshDisplayFlag ( ) const
inline

Definition at line 141 of file ossimViewEvent.h.

142  {
143  return theRefreshDisplayFlag;
144  }
bool theRefreshDisplayFlag

◆ getUpdateInputViewFlag()

bool ossimViewEvent::getUpdateInputViewFlag ( ) const
inline

Definition at line 133 of file ossimViewEvent.h.

134  {
135  return theUpdateInputViewFlag;
136  }
bool theUpdateInputViewFlag

◆ getView()

virtual ossimObject* ossimViewEvent::getView ( )
inlinevirtual

Definition at line 64 of file ossimViewEvent.h.

65  {
66  return theView;
67  }
ossimObject * theView

◆ getViewEventType()

ossimViewEventType ossimViewEvent::getViewEventType ( ) const
inline

Definition at line 100 of file ossimViewEvent.h.

Referenced by ossimViewListener::processEvent().

101  {
102  return theEventType;
103  }
ossimViewEventType theEventType

◆ isPropagateEnabled()

bool ossimViewEvent::isPropagateEnabled ( ) const
inline

Definition at line 117 of file ossimViewEvent.h.

◆ isPropagateToChains()

bool ossimViewEvent::isPropagateToChains ( ) const
inline

Definition at line 125 of file ossimViewEvent.h.

◆ isPropagateToDisplays()

bool ossimViewEvent::isPropagateToDisplays ( ) const
inline

◆ isScaleChange()

bool ossimViewEvent::isScaleChange ( ) const
inline

Definition at line 112 of file ossimViewEvent.h.

◆ isTransformChange()

bool ossimViewEvent::isTransformChange ( ) const
inline

Definition at line 108 of file ossimViewEvent.h.

◆ isViewChange()

bool ossimViewEvent::isViewChange ( ) const
inline

Definition at line 104 of file ossimViewEvent.h.

◆ setCenterGroundPoint()

void ossimViewEvent::setCenterGroundPoint ( const ossimGpt gpt)
inline

Definition at line 92 of file ossimViewEvent.h.

93  {
94  theCenterPoint = gpt;
95  }
ossimGpt theCenterPoint

◆ setEventTypeGeneric()

void ossimViewEvent::setEventTypeGeneric ( )
inline

◆ setEventTypeTransformChange()

void ossimViewEvent::setEventTypeTransformChange ( )
inline

◆ setEventTypeViewTypeChange()

void ossimViewEvent::setEventTypeViewTypeChange ( )
inline

◆ setPropagateType()

void ossimViewEvent::setPropagateType ( ossimViewPropagateType  type)
inline

Definition at line 72 of file ossimViewEvent.h.

73  {
74  thePropagateType = type;
75  }
ossimViewPropagateType thePropagateType

◆ setRefreshDisplayFlag()

void ossimViewEvent::setRefreshDisplayFlag ( bool  flag)
inline

Definition at line 137 of file ossimViewEvent.h.

138  {
139  theRefreshDisplayFlag = flag;
140  }
bool theRefreshDisplayFlag

◆ setUpdateInputViewFlag()

void ossimViewEvent::setUpdateInputViewFlag ( bool  flag)
inline

Definition at line 129 of file ossimViewEvent.h.

130  {
131  theUpdateInputViewFlag = flag;
132  }
bool theUpdateInputViewFlag

◆ setView()

virtual void ossimViewEvent::setView ( ossimObject view)
inlinevirtual

Definition at line 60 of file ossimViewEvent.h.

61  {
62  theView = view;
63  }
ossimObject * theView

◆ setViewEventType()

void ossimViewEvent::setViewEventType ( ossimViewEventType  eventType)
inline

Definition at line 76 of file ossimViewEvent.h.

77  {
78  theEventType = eventType;
79  }
ossimViewEventType theEventType

Member Data Documentation

◆ theCenterPoint

ossimGpt ossimViewEvent::theCenterPoint
protected

Definition at line 147 of file ossimViewEvent.h.

◆ theEventType

ossimViewEventType ossimViewEvent::theEventType
protected

Definition at line 148 of file ossimViewEvent.h.

◆ thePropagateType

ossimViewPropagateType ossimViewEvent::thePropagateType
protected

Definition at line 149 of file ossimViewEvent.h.

◆ theRefreshDisplayFlag

bool ossimViewEvent::theRefreshDisplayFlag
protected

Definition at line 151 of file ossimViewEvent.h.

◆ theUpdateInputViewFlag

bool ossimViewEvent::theUpdateInputViewFlag
protected

Definition at line 150 of file ossimViewEvent.h.

◆ theView

ossimObject* ossimViewEvent::theView
protected

Definition at line 146 of file ossimViewEvent.h.


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