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/osgPresentation/AnimationMaterial

    r12139 r13041  
    1 /* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield  
     1/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield 
    22 * 
    3  * This software is open source and may be redistributed and/or modified under   
     3 * This software is open source and may be redistributed and/or modified under 
    44 * the terms of the GNU General Public License (GPL) version 2.0. 
    55 * The full license is in LICENSE.txt file included with this distribution,. 
    6  *  
     6 * 
    77 * This software is distributed in the hope that it will be useful, 
    88 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1010 * include LICENSE.txt for more details. 
    1111*/ 
     
    3232{ 
    3333    public: 
    34      
     34 
    3535        AnimationMaterial():_loopMode(LOOP) {} 
    3636 
     
    4343 
    4444 
    45         /** get the transformation matrix for a point in time.*/         
     45        /** get the transformation matrix for a point in time.*/ 
    4646        bool getMaterial(double time,osg::Material& material) const; 
    4747 
    4848        void insert(double time,osg::Material* material); 
    49          
     49 
    5050        double getFirstTime() const { if (!_timeControlPointMap.empty()) return _timeControlPointMap.begin()->first; else return 0.0;} 
    5151        double getLastTime() const { if (!_timeControlPointMap.empty()) return _timeControlPointMap.rbegin()->first; else return 0.0;} 
    5252        double getPeriod() const { return getLastTime()-getFirstTime();} 
    53          
     53 
    5454        enum LoopMode 
    5555        { 
     
    5858            NO_LOOPING 
    5959        }; 
    60          
     60 
    6161        void setLoopMode(LoopMode lm) { _loopMode = lm; } 
    62          
     62 
    6363        LoopMode getLoopMode() const { return _loopMode; } 
    6464 
    6565 
    6666        typedef std::map<double, osg::ref_ptr<osg::Material> > TimeControlPointMap; 
    67          
     67 
    6868        TimeControlPointMap& getTimeControlPointMap() { return _timeControlPointMap; } 
    69          
     69 
    7070        const TimeControlPointMap& getTimeControlPointMap() const { return _timeControlPointMap; } 
    71          
     71 
    7272        /** read the anumation path from a flat ascii file stream.*/ 
    7373        void read(std::istream& in); 
     
    7575        /** write the anumation path to a flat ascii file stream.*/ 
    7676        void write(std::ostream& out) const; 
    77          
     77 
    7878        bool requiresBlending() const; 
    7979 
    8080    protected: 
    81      
     81 
    8282        virtual ~AnimationMaterial() {} 
    83          
     83 
    8484        void interpolate(osg::Material& material, float r, const osg::Material& lhs,const osg::Material& rhs) const; 
    8585 
     
    101101            _pause(false), 
    102102            _pauseTime(0.0) {} 
    103              
     103 
    104104 
    105105        AnimationMaterialCallback(const AnimationMaterialCallback& apc,const osg::CopyOp& copyop): 
     
    114114            _pauseTime(apc._pauseTime) {} 
    115115 
    116          
     116 
    117117        META_Object(osg,AnimationMaterialCallback); 
    118118 
     
    126126            _pause(false), 
    127127            _pauseTime(0.0) {} 
    128              
     128 
    129129        void setAnimationMaterial(AnimationMaterial* path) { _animationMaterial = path; } 
    130130 
     
    132132 
    133133        const AnimationMaterial* getAnimationMaterial() const { return _animationMaterial.get(); } 
    134          
     134 
    135135        void setTimeOffset(double offset) { _timeOffset = offset; } 
    136136        double getTimeOffset() const { return _timeOffset; } 
    137          
     137 
    138138        void setTimeMultiplier(double multiplier) { _timeMultiplier = multiplier; } 
    139139        double getTimeMultiplier() const { return _timeMultiplier; } 
     
    149149        /** implements the callback*/ 
    150150        virtual void operator()(osg::Node* node, osg::NodeVisitor* nv); 
    151          
     151 
    152152        void update(osg::Node& node); 
    153153 
     
    164164 
    165165    protected: 
    166      
     166 
    167167        ~AnimationMaterialCallback(){} 
    168168