OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimViewListener.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.com)
6 // Description: A brief description of the contents of the file.
7 //
8 //
9 //*************************************************************************
10 // $Id: ossimViewListener.cpp 9963 2006-11-28 21:11:01Z gpotts $
12 
13 RTTI_DEF1(ossimViewListener, "ossimViewListener", ossimListener);
15 {
16  ossimViewEvent* evt = dynamic_cast<ossimViewEvent*>(&event);
17 
18  if(evt)
19  {
20  switch(evt->getViewEventType())
21  {
23  {
25  break;
26  }
28  {
29  viewEvent(*evt);
30  break;
31  }
33  {
35  break;
36  }
38  {
39  viewTypeChangeEvent(*evt);
40  break;
41  }
42  }
43  allViewEvents(*evt);
44  }
45 }
virtual void viewScaleChangeEvent(ossimViewEvent &)
virtual void viewEvent(ossimViewEvent &)
virtual void viewTypeChangeEvent(ossimViewEvent &)
virtual void allViewEvents(ossimViewEvent &)
RTTI_DEF1(ossimViewListener, "ossimViewListener", ossimListener)
virtual void processEvent(ossimEvent &event)
ProcessEvent.
ossimViewEventType getViewEventType() const
virtual void viewTransformChangeEvent(ossimViewEvent &)