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

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgAnimation/StatsHandler

    r12139 r13041  
    1 /*  -*-c++-*-  
     1/*  -*-c++-*- 
    22 *  Copyright (C) 2009 Cedric Pinson <mornifle@plopbyte.net> 
    33 * 
    4  * This library is open source and may be redistributed and/or modified under   
    5  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     4 * This library is open source and may be redistributed and/or modified under 
     5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    66 * (at your option) any later version.  The full license is in LICENSE file 
    77 * included with this distribution, and on the openscenegraph.org website. 
    8  *  
     8 * 
    99 * This library is distributed in the hope that it will be useful, 
    1010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1212 * OpenSceneGraph Public License for more details. 
    1313*/ 
     
    2727    struct StatAction 
    2828    { 
    29          
     29 
    3030        std::string _name; 
    3131        osg::ref_ptr<osg::Group> _group; 
     
    4242 
    4343/** Event handler for adding on screen stats reporting to Viewers.*/ 
    44     class OSGANIMATION_EXPORT StatsHandler : public osgGA::GUIEventHandler  
     44    class OSGANIMATION_EXPORT StatsHandler : public osgGA::GUIEventHandler 
    4545    { 
    46     public:  
     46    public: 
    4747 
    4848        StatsHandler(); 
     
    5454            LAST = 2 
    5555        }; 
    56          
     56 
    5757        void setKeyEventTogglesOnScreenStats(int key) { _keyEventTogglesOnScreenStats = key; } 
    5858        int getKeyEventTogglesOnScreenStats() const { return _keyEventTogglesOnScreenStats; } 
    59          
     59 
    6060        void setKeyEventPrintsOutStats(int key) { _keyEventPrintsOutStats = key; } 
    6161        int getKeyEventPrintsOutStats() const { return _keyEventPrintsOutStats; } 
     
    8484 
    8585        osg::Geometry* createTick(const osg::Vec3& pos, float height, const osg::Vec4& colour, unsigned int numTicks); 
    86          
     86 
    8787        osg::Node* createCameraTimeStats(const std::string& font, osg::Vec3& pos, float startBlocks, bool acquireGPUStats, float characterSize, osg::Stats* viewerStats, osg::Camera* camera); 
    8888 
    8989        void setUpScene(osgViewer::Viewer* viewer); 
    90          
     90 
    9191        int                                 _keyEventTogglesOnScreenStats; 
    9292        int                                 _keyEventPrintsOutStats; 
     
    9696        bool                                _initialized; 
    9797        osg::ref_ptr<osg::Camera>           _camera; 
    98          
     98 
    9999        osg::ref_ptr<osg::Switch>           _switch; 
    100100        osg::ref_ptr<osg::Group>            _group; 
    101          
     101 
    102102        unsigned int                        _frameRateChildNum; 
    103103        unsigned int                        _numBlocks; 
    104104        double                              _blockMultiplier; 
    105          
     105 
    106106        float                               _statsWidth; 
    107107        float                               _statsHeight;