Updraft  1.0
Open source glider flight visualisation tool.
eventinfo.h
Go to the documentation of this file.
00001 #ifndef UPDRAFT_SRC_EVENTINFO_H_
00002 #define UPDRAFT_SRC_EVENTINFO_H_
00003 
00004 #include <osg/Vec3>
00005 
00006 namespace Updraft {
00007 
00008 enum EventType {
00009   INVALID = 0,
00010   LEFT_CLICK,
00011   RIGHT_CLICK
00012 };
00013 
00019 class EventInfo {
00020  public:
00021   EventInfo(EventType type_): type(type_) {}
00022   EventInfo(EventType type_, osg::Vec3 inter_):
00023     type(type_), intersection(inter_) {}
00024 
00025   EventType type;
00026 
00028   osg::Vec3 intersection;
00029 };
00030 
00031 }  // End namespace Updraft
00032 
00033 #endif
00034 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines