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/Sequence

    r10950 r13041  
    11/* -*-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 */ 
     
    1717#include <osg/Group> 
    1818 
    19 namespace osg  
     19namespace osg 
    2020{ 
    21    
     21 
    2222/** Sequence is a Group node which allows automatic, time based 
    2323switching between children. 
     
    6464        /** Get time for child. */ 
    6565        double getTime(unsigned int frame) const; 
    66          
     66 
    6767        /** Set the time list for children. */ 
    6868        void setTimeList(const std::vector<double>& timeList) { _frameTime = timeList; } 
    69          
     69 
    7070        /** Get the time list for children. */ 
    7171        const std::vector<double>& getTimeList() const { return _frameTime; } 
    7272 
    73         /** Set default time in seconds for new child.  
     73        /** Set default time in seconds for new child. 
    7474            if t<0, t=0 */ 
    7575        void setDefaultTime(double t) {_defaultTime = (t<0.?0.:t);} 
     
    7878        double getDefaultTime(void) const {return _defaultTime;}; 
    7979 
    80         /** Set time of last frame of last loop, in seconds.   
     80        /** Set time of last frame of last loop, in seconds. 
    8181            if t<= 0, then ignored */ 
    8282        void setLastFrameTime(double t) {_lastFrameTime = (t<0.?0.:t);} 
     
    9494            SWING 
    9595        }; 
    96          
     96 
    9797        /** Set sequence mode. */ 
    9898        void setLoopMode(LoopMode mode) { _loopMode = mode; _value = -1; } 
    99          
     99 
    100100        /** Get sequence mode. */ 
    101101        LoopMode getLoopMode() const { return _loopMode; } 
    102          
     102 
    103103        /** Set interval beginning. */ 
    104104        void setBegin(int begin) { _begin = begin; _value = -1; } 
    105          
     105 
    106106        /** Get interval beginning. */ 
    107107        int getBegin() const { return _begin; } 
    108          
     108 
    109109        /** Set interval ending. */ 
    110110        void setEnd(int end) { _end = end; _value = -1; } 
    111          
     111 
    112112        /** Get interval ending. */ 
    113113        int getEnd() const { return _end; } 
     
    123123            end = _end; 
    124124        } 
    125          
     125 
    126126        /** Set speed. */ 
    127127        void setSpeed(float speed) { _speed = speed; } 
    128          
     128 
    129129        /** Get speed. */ 
    130130        float getSpeed() const { return _speed; } 
    131          
     131 
    132132        /** Set number of repeats. */ 
    133133        void setNumRepeats(int nreps) { _nreps = (nreps<0?-1:nreps); _nrepsRemain = _nreps; } 
    134          
     134 
    135135        /** Get number of repeats. */ 
    136136        int getNumRepeats() const { return _nreps; } 
     
    218218        // _nreps: how many times to repeat- default param is -1, repeat forever 
    219219        // init to 0, no repetitions 
    220         // _nrepsRemain: set to nreps and counts down every traversal,  
     220        // _nrepsRemain: set to nreps and counts down every traversal, 
    221221        // stopping when it gets to zero.  init to 0 
    222222        int _nreps, _nrepsRemain; 
     
    247247 
    248248}; 
    249    
     249 
    250250} 
    251251