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/osgParticle/RadialShooter

    r5328 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*/ 
     
    4343        /// Get the range of possible values for <B>theta</B> angle. 
    4444        inline const rangef& getThetaRange() const; 
    45          
     45 
    4646        /// Set the range of possible values for <B>theta</B> angle. 
    4747        inline void setThetaRange(const rangef& r); 
    48          
     48 
    4949        /// Set the range of possible values for <B>theta</B> angle. 
    5050        inline void setThetaRange(float r1, float r2); 
    51          
     51 
    5252        /// Get the range of possible values for <B>phi</B> angle. 
    5353        inline const rangef& getPhiRange() const; 
    54          
     54 
    5555        /// Set the range of possible values for <B>phi</B> angle. 
    5656        inline void setPhiRange(const rangef& r); 
    57          
     57 
    5858        /// Set the range of possible values for <B>phi</B> angle. 
    5959        inline void setPhiRange(float r1, float r2); 
    60          
     60 
    6161        /// Get the range of possible values for initial speed of particles. 
    62         inline const rangef& getInitialSpeedRange() const;         
    63          
     62        inline const rangef& getInitialSpeedRange() const; 
     63 
    6464        /// Set the range of possible values for initial speed of particles. 
    6565        inline void setInitialSpeedRange(const rangef& r); 
    66          
     66 
    6767        /// Set the range of possible values for initial speed of particles. 
    6868        inline void setInitialSpeedRange(float r1, float r2); 
    6969 
    7070        /// Get the range of possible values for initial rotational speed of particles. 
    71         inline const rangev3& getInitialRotationalSpeedRange() const;         
    72          
     71        inline const rangev3& getInitialRotationalSpeedRange() const; 
     72 
    7373        /// Set the range of possible values for initial rotational speed of particles. 
    7474        inline void setInitialRotationalSpeedRange(const rangev3& r); 
    75          
     75 
    7676        /// Set the range of possible values for initial rotational speed of particles. 
    7777        inline void setInitialRotationalSpeedRange(const osg::Vec3& r1, const osg::Vec3& r2); 
     
    9494 
    9595    inline RadialShooter::RadialShooter() 
    96     :    Shooter(),  
    97         _theta_range(0, 0.5f*osg::PI_4),  
    98         _phi_range(0, 2*osg::PI),  
     96    :    Shooter(), 
     97        _theta_range(0, 0.5f*osg::PI_4), 
     98        _phi_range(0, 2*osg::PI), 
    9999        _speed_range(10, 10), 
    100100        _rot_speed_range(osg::Vec3(0,0,0), osg::Vec3(0,0,0)) 
     
    103103 
    104104    inline RadialShooter::RadialShooter(const RadialShooter& copy, const osg::CopyOp& copyop) 
    105     :    Shooter(copy, copyop),  
    106         _theta_range(copy._theta_range),  
    107         _phi_range(copy._phi_range),  
     105    :    Shooter(copy, copyop), 
     106        _theta_range(copy._theta_range), 
     107        _phi_range(copy._phi_range), 
    108108        _speed_range(copy._speed_range), 
    109109        _rot_speed_range(copy._rot_speed_range) 
    110110    { 
    111111    } 
    112      
     112 
    113113    inline const rangef& RadialShooter::getThetaRange() const 
    114114    { 
     
    181181        float speed = _speed_range.get_random(); 
    182182        osg::Vec3 rot_speed = _rot_speed_range.get_random(); 
    183          
     183 
    184184        P->setVelocity(osg::Vec3( 
    185185            speed * sinf(theta) * cosf(phi), 
     
    187187            speed * cosf(theta) 
    188188            )); 
    189              
     189 
    190190        P->setAngularVelocity(rot_speed); 
    191191    }