00001 // SceneExaminer with patch for 2-finger panning in touch() method. 00002 00003 #ifndef _MySceneExaminer_ 00004 #define _MySceneExaminer_ 00005 00006 #include <Inventor/ViewerComponents/nodes/SceneExaminer.h> 00007 00008 class MySceneExaminer : public SceneExaminer 00009 { 00010 public: 00011 MySceneExaminer(); 00012 00013 virtual void touch( SoTouchEvent* touchEvent, SoHandleEventAction* action ); 00014 00015 private: 00016 // Must copy this method because it's declared private in parent class. :-( 00017 SoEvent* convertTouchEvent( SoTouchEvent* touchEvent ); 00018 00019 // Must duplicate these variables because they are declared private in parent class. :-( 00020 bool m_isTouchOrbitActivated; 00021 00022 SoMouseButtonEvent m_touchMouseButtonEvent; 00023 SoLocation2Event m_touchLocation2Event; 00024 }; 00025 00026 #endif // _SceneExaminer_ 00027