Show
Ignore:
Timestamp:
09/19/14 12:35:23 (13 days ago)
Author:
robert
Message:

Moved widgets from VolumeEditorWidget? to TransferFunctionWidget?, and widget utilities into WidgetUtils?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgGA/GUIEventAdapter

    r13587 r13890  
    1212*/ 
    1313 
    14 #ifndef OSGGA_EVENT 
    15 #define OSGGA_EVENT 1 
     14#ifndef OSGGA_GUIEVENTADAPTER 
     15#define OSGGA_GUIEVENTADAPTER 1 
    1616 
    1717#include <osg/Object> 
    1818#include <osg/Matrix> 
    1919#include <osg/GraphicsContext> 
    20 #include <osgGA/Export> 
     20 
     21#include <osgGA/Event> 
    2122 
    2223namespace osgGA{ 
     
    7879/** Event class for storing Keyboard, mouse and window events. 
    7980*/ 
    80 class OSGGA_EXPORT GUIEventAdapter : public osg::Object 
     81class OSGGA_EXPORT GUIEventAdapter : public Event 
    8182{ 
    8283public: 
     
    449450        META_Object(osgGA, GUIEventAdapter); 
    450451 
     452        virtual GUIEventAdapter* asGUIEventAdapter() { return this; } 
     453        virtual const GUIEventAdapter* asGUIEventAdapter() const { return this; } 
     454 
    451455 
    452456        /** Get the accumulated event state singleton. 
     
    467471        /** get the event type. */ 
    468472        virtual EventType getEventType() const { return _eventType; } 
    469  
    470         /** set time in seconds of event. */ 
    471         void setTime(double time) { _time = time; } 
    472  
    473         /** get time in seconds of event. */ 
    474         double getTime() const { return _time; } 
    475473 
    476474        /** deprecated function for getting time of event. */ 
     
    710708        mutable bool _handled; 
    711709        EventType _eventType; 
    712         double _time; 
    713710 
    714711        osg::observer_ptr<osg::GraphicsContext> _context;