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

    r11755 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*/ 
     
    2929 
    3030    /** A box-shaped particle placer. 
    31         This placer sets the initial position of incoming particle by choosing a random position  
    32         within the volume of a box; this placer is defined by four parameters: a <I>center point</I>,  
    33         which is inherited directly from <CODE>osgParticle::CenteredPlacer</CODE>, and three ranges of values  
     31        This placer sets the initial position of incoming particle by choosing a random position 
     32        within the volume of a box; this placer is defined by four parameters: a <I>center point</I>, 
     33        which is inherited directly from <CODE>osgParticle::CenteredPlacer</CODE>, and three ranges of values 
    3434    for the valid <I>X</I>, <I>Y</I>, and <I>Z</I> coordinates. 
    3535    */ 
     
    3838        inline BoxPlacer(); 
    3939        inline BoxPlacer(const BoxPlacer& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY); 
    40          
     40 
    4141        /// Get the range of possible values along the X axis. 
    4242        inline const rangef& getXRange() const; 
    43          
     43 
    4444        /// Set the range of possible values along the X axis. 
    4545        inline void setXRange(const rangef& r); 
    46          
     46 
    4747        /// Set the range of possible values along the X axis. 
    4848        inline void setXRange(float r1, float r2); 
    49          
     49 
    5050        /// Get the range of possible values along the Y axis. 
    51         inline const rangef& getYRange() const;         
    52          
     51        inline const rangef& getYRange() const; 
     52 
    5353        /// Set the range of possible values along the Y axis. 
    5454        inline void setYRange(const rangef& r); 
    55          
     55 
    5656        /// Set the range of possible values along the Y axis. 
    57         inline void setYRange(float r1, float r2);     
     57        inline void setYRange(float r1, float r2); 
    5858 
    5959        /// Get the range of possible values along the Z axis. 
    60         inline const rangef& getZRange() const;    
     60        inline const rangef& getZRange() const; 
    6161 
    6262        /// Set the range of possible values along the Z axis. 
    6363        inline void setZRange(const rangef& r); 
    64          
     64 
    6565        /// Set the range of possible values along the Z axis. 
    66         inline void setZRange(float r1, float r2);   
     66        inline void setZRange(float r1, float r2); 
    6767 
    6868        META_Object(osgParticle, BoxPlacer); 
    69          
     69 
    7070        /// Place a particle. Do not call it manually. 
    7171        inline void place(Particle* P) const; 
    72          
     72 
    7373        /// return the volume of the box 
    7474        inline float volume() const; 
     
    7979    protected: 
    8080        virtual ~BoxPlacer() {} 
    81         BoxPlacer& operator=(const BoxPlacer&) { return *this; }         
    82          
     81        BoxPlacer& operator=(const BoxPlacer&) { return *this; } 
     82 
    8383    private: 
    8484        rangef _x_range; 
     
    8888 
    8989    // INLINE FUNCTIONS 
    90      
     90 
    9191    inline BoxPlacer::BoxPlacer() 
    9292    : CenteredPlacer(), _x_range(-1, 1), _y_range(-1, 1), _z_range(-1, 1) 
    9393    { 
    9494    } 
    95      
     95 
    9696    inline BoxPlacer::BoxPlacer(const BoxPlacer& copy, const osg::CopyOp& copyop) 
    97     : CenteredPlacer(copy, copyop),  
     97    : CenteredPlacer(copy, copyop), 
    9898    _x_range(copy._x_range), _y_range(copy._y_range), _z_range(copy._z_range) 
    9999    { 
    100100    } 
    101      
     101 
    102102    inline const rangef& BoxPlacer::getXRange() const 
    103103    { 
     
    109109        _x_range = r; 
    110110    } 
    111      
     111 
    112112    inline void BoxPlacer::setXRange(float r1, float r2) 
    113113    { 
     
    120120        return _y_range; 
    121121    } 
    122      
     122 
    123123    inline void BoxPlacer::setYRange(const rangef& r) 
    124124    { 
    125125        _y_range = r; 
    126126    } 
    127      
     127 
    128128    inline void BoxPlacer::setYRange(float r1, float r2) 
    129129    { 
     
    141141        _z_range = r; 
    142142    } 
    143      
     143 
    144144    inline void BoxPlacer::setZRange(float r1, float r2) 
    145145    { 
     
    151151    { 
    152152        osg::Vec3 pos( 
    153             getCenter().x() + _x_range.get_random(),  
    154             getCenter().y() + _y_range.get_random(),  
     153            getCenter().x() + _x_range.get_random(), 
     154            getCenter().y() + _y_range.get_random(), 
    155155            getCenter().z() + _z_range.get_random()); 
    156          
     156 
    157157        P->setPosition(pos); 
    158158    } 
    159      
     159 
    160160    inline float BoxPlacer::volume() const 
    161161    {