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/osg/AnimationPath

    r11790 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*/ 
     
    3434{ 
    3535    public: 
    36      
     36 
    3737        AnimationPath():_loopMode(LOOP) {} 
    3838 
     
    6464                _rotation(rotation), 
    6565                _scale(scale) {} 
    66          
     66 
    6767            void setPosition(const osg::Vec3d& position) { _position = position; } 
    6868            const osg::Vec3d& getPosition() const { return _position; } 
     
    8181                _scale = first._scale*one_minus_ratio + second._scale*ratio; 
    8282            } 
    83              
     83 
    8484            inline void interpolate(double ratio,const ControlPoint& first, const ControlPoint& second) 
    8585            { 
     
    125125 
    126126        }; 
    127          
     127 
    128128 
    129129        /** Given a specific time, return the transformation matrix for a point. */ 
     
    153153            return true; 
    154154        } 
    155          
     155 
    156156        bool getInverse(double time,Matrixd& matrix) const 
    157157        { 
     
    164164        /** Given a specific time, return the local ControlPoint frame for a point. */ 
    165165        virtual bool getInterpolatedControlPoint(double time,ControlPoint& controlPoint) const; 
    166          
     166 
    167167        /** Insert a control point into the AnimationPath.*/ 
    168168        void insert(double time,const ControlPoint& controlPoint); 
    169          
     169 
    170170        double getFirstTime() const { if (!_timeControlPointMap.empty()) return _timeControlPointMap.begin()->first; else return 0.0;} 
    171171        double getLastTime() const { if (!_timeControlPointMap.empty()) return _timeControlPointMap.rbegin()->first; else return 0.0;} 
    172172        double getPeriod() const { return getLastTime()-getFirstTime();} 
    173          
     173 
    174174        enum LoopMode 
    175175        { 
     
    178178            NO_LOOPING 
    179179        }; 
    180          
     180 
    181181        void setLoopMode(LoopMode lm) { _loopMode = lm; } 
    182          
     182 
    183183        LoopMode getLoopMode() const { return _loopMode; } 
    184184 
    185185 
    186186        typedef std::map<double,ControlPoint> TimeControlPointMap; 
    187          
     187 
    188188        void setTimeControlPointMap(TimeControlPointMap& tcpm) { _timeControlPointMap=tcpm; } 
    189189 
    190190        TimeControlPointMap& getTimeControlPointMap() { return _timeControlPointMap; } 
    191          
     191 
    192192        const TimeControlPointMap& getTimeControlPointMap() const { return _timeControlPointMap; } 
    193          
     193 
    194194        bool empty() const { return _timeControlPointMap.empty(); } 
    195          
     195 
    196196        void clear() { _timeControlPointMap.clear(); } 
    197197 
     
    206206 
    207207    protected: 
    208      
     208 
    209209        virtual ~AnimationPath() {} 
    210210 
     
    241241            _pauseTime(apc._pauseTime) {} 
    242242 
    243          
     243 
    244244        META_Object(osg,AnimationPathCallback); 
    245245 
     
    258258        /** Construct an AnimationPathCallback and automatically create an animation path to produce a rotation about a point.*/ 
    259259        AnimationPathCallback(const osg::Vec3d& pivot,const osg::Vec3d& axis,float angularVelocity); 
    260   
    261              
     260 
     261 
    262262        void setAnimationPath(AnimationPath* path) { _animationPath = path; } 
    263263        AnimationPath* getAnimationPath() { return _animationPath.get(); } 
     
    272272        void setTimeOffset(double offset) { _timeOffset = offset; } 
    273273        double getTimeOffset() const { return _timeOffset; } 
    274          
     274 
    275275        void setTimeMultiplier(double multiplier) { _timeMultiplier = multiplier; } 
    276276        double getTimeMultiplier() const { return _timeMultiplier; } 
     
    289289        /** Implements the callback. */ 
    290290        virtual void operator()(Node* node, NodeVisitor* nv); 
    291          
     291 
    292292        void update(osg::Node& node); 
    293293 
     
    305305 
    306306    protected: 
    307      
     307 
    308308        ~AnimationPathCallback(){} 
    309309