Show
Ignore:
Timestamp:
03/21/12 18:36:20 (3 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

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

    r12938 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    2626 
    2727/** 
    28  * EventQueue implementation for collecting and adapting windowing events  
     28 * EventQueue implementation for collecting and adapting windowing events 
    2929 */ 
    3030class OSGGA_EXPORT EventQueue : public osg::Referenced 
     
    3535 
    3636        typedef std::list< osg::ref_ptr<GUIEventAdapter> > Events; 
    37                  
     37 
    3838        /** Set events.*/ 
    3939        void setEvents(Events& events); 
     
    8080        /** Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. */ 
    8181        void mouseScroll(GUIEventAdapter::ScrollingMotion sm) { mouseScroll(sm,getTime()); } 
    82          
     82 
    8383        /** Method for adapting mouse scroll wheel events, placing this event on the back of the event queue, with specified time. */ 
    8484        void mouseScroll(GUIEventAdapter::ScrollingMotion sm, double time); 
    85          
     85 
    8686 
    8787        /** Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. */ 
     
    9090        /** Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. */ 
    9191        void mouseScroll2D(float x, float y, double time); 
    92          
     92 
    9393 
    9494        /** Method for adapting pen pressure events, placing this event on the back of the event queue.*/ 
    9595        void penPressure(float pressure) { penPressure(pressure, getTime()); } 
    96          
     96 
    9797        /** Method for adapting pen pressure events, placing this event on the back of the event queue, with specified time.*/ 
    9898        void penPressure(float pressure, double time); 
     
    103103        /** Method for adapting pen orientation events, placing this event on the back of the event queue, with specified time.*/ 
    104104        void penOrientation(float tiltX, float tiltY, float rotation, double time); 
    105          
     105 
    106106         /** Method for adapting pen proximity events, placing this event on the back of the event queue.*/ 
    107107        void penProximity(GUIEventAdapter::TabletPointerType pt, bool isEntering) { penProximity(pt, isEntering, getTime()); } 
     
    134134          * Button numbering is 1 for left mouse button, 2 for middle, 3 for right. */ 
    135135        void mouseDoubleButtonPress(float x, float y, unsigned int button) { mouseDoubleButtonPress(x, y, button, getTime()); } 
    136          
     136 
    137137        /** Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time. 
    138138          * Button numbering is 1 for left mouse button, 2 for middle, 3 for right. */ 
    139139        void mouseDoubleButtonPress(float x, float y, unsigned int button, double time); 
    140          
     140 
    141141 
    142142        /** Method for adapting mouse button release events, placing this event on the back of the event queue. 
     
    161161        /** Method for adapting keyboard press events. Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time.*/ 
    162162        void keyRelease(int key, double time, int unmodifiedKey = 0); 
    163              
     163 
    164164        GUIEventAdapter* touchBegan(unsigned int id, GUIEventAdapter::TouchPhase phase, float x, float y, double time); 
    165165        GUIEventAdapter*  touchBegan(unsigned int id, GUIEventAdapter::TouchPhase phase,  float x, float y) { 
    166166            return touchBegan(id, phase, x, y, getTime()); 
    167167        } 
    168          
     168 
    169169        GUIEventAdapter*  touchMoved(unsigned int id, GUIEventAdapter::TouchPhase phase,  float x, float y, double time); 
    170170        GUIEventAdapter*  touchMoved(unsigned int id, GUIEventAdapter::TouchPhase phase,  float x, float y) { 
    171171            return touchMoved(id, phase, x, y, getTime()); 
    172172        } 
    173          
     173 
    174174        GUIEventAdapter*  touchEnded(unsigned int id, GUIEventAdapter::TouchPhase phase,  float x, float y, unsigned int tap_count, double time); 
    175175        GUIEventAdapter*  touchEnded(unsigned int id, GUIEventAdapter::TouchPhase phase,  float x, float y, unsigned int tap_count) { 
    176176            return touchEnded(id, phase, x, y, tap_count, getTime()); 
    177177        } 
    178          
     178 
    179179 
    180180 
     
    195195        /** Method for adapting frame events.*/ 
    196196        void frame(double time); 
    197          
     197 
    198198 
    199199        void setStartTick(osg::Timer_t tick) { _startTick = tick; clear(); } 
     
    207207        /** convenience method for create an event ready to fill in.  Clones the getCurrentEventState() to produce a up to date event state. */ 
    208208        GUIEventAdapter* createEvent(); 
    209          
    210          
     209 
     210 
    211211        void setCurrentEventState(GUIEventAdapter* ea) { _accumulateEventState = ea; } 
    212212        GUIEventAdapter* getCurrentEventState() { return _accumulateEventState.get(); } 
     
    228228        /** Prevent unwanted copy operator.*/ 
    229229        EventQueue& operator = (const EventQueue&) { return *this; } 
    230          
     230 
    231231        osg::ref_ptr<GUIEventAdapter>   _accumulateEventState; 
    232232 
     
    237237        Events                      _eventQueue; 
    238238        bool                        _firstTouchEmulatesMouse; 
    239      
     239 
    240240}; 
    241241