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/osgSim/BlinkSequence

    r11438 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*/ 
     
    3737 
    3838       META_Object(osgSim,SequenceGroup); 
    39         
     39 
    4040       inline void setBaseTime( double t ) { _baseTime = t; } 
    4141       inline double getBaseTime() const { return _baseTime; } 
     
    8181        inline void setPhaseShift(double ps) { _phaseShift = ps; } 
    8282 
    83         /** get the pahse shift.*/         
     83        /** get the pahse shift.*/ 
    8484        inline double getPhaseShift() const { return _phaseShift; } 
    8585 
     
    8989        /** compute the color for the time interval sepecifed. Averages the colors if the length is greater than the current pulse.*/ 
    9090        inline osg::Vec4 color(double time,double length) const; 
    91          
     91 
    9292 
    9393    protected: 
     
    9696        typedef std::pair<double,osg::Vec4> IntervalColor; 
    9797        typedef std::vector<IntervalColor>  PulseData; 
    98          
     98 
    9999        double                      _pulsePeriod; 
    100100        double                      _phaseShift; 
     
    146146    } 
    147147 
    148     // if time interval fits inside the current pulse  
     148    // if time interval fits inside the current pulse 
    149149    // then simply return this pulses color value. 
    150150    if (lt+length<=itr->first) 
     
    175175    color += itr->second*len; 
    176176 
    177     // normalise the time waited color.    
     177    // normalise the time waited color. 
    178178    color /= length; 
    179179