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

    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*/ 
     
    3939        /// get vertex <B>A</B>. 
    4040        inline const osg::Vec3& getVertexA() const; 
    41          
     41 
    4242        /// Set vertex <B>A</B> of the segment as a vector. 
    4343        inline void setVertexA(const osg::Vec3& v); 
    44          
     44 
    4545        /// Set vertex <B>A</B> of the segment as three floats. 
    4646        inline void setVertexA(float x, float y, float z); 
    47          
     47 
    4848        /// get vertex <B>B</B>. 
    4949        inline const osg::Vec3& getVertexB() const; 
    50          
     50 
    5151        /// Set vertex <B>B</B> of the segment as a vector. 
    5252        inline void setVertexB(const osg::Vec3& v); 
    53          
     53 
    5454        /// Set vertex <B>B</B> of the segment as three floats. 
    5555        inline void setVertexB(float x, float y, float z); 
    56          
     56 
    5757        /// Set both vertices. 
    5858        inline void setSegment(const osg::Vec3& A, const osg::Vec3& B); 
    59          
     59 
    6060        /// Place a particle. This method is called by <CODE>ModularEmitter</CODE>, do not call it manually. 
    6161        inline void place(Particle* P) const; 
     
    6363        /// return the length of the segment 
    6464        inline float volume() const; 
    65          
     65 
    6666        /// return the control position 
    6767        inline osg::Vec3 getControlPosition() const; 
     
    6969    protected: 
    7070        virtual ~SegmentPlacer() {} 
    71         SegmentPlacer& operator=(const SegmentPlacer&) { return *this; }         
     71        SegmentPlacer& operator=(const SegmentPlacer&) { return *this; } 
    7272 
    7373    private: 
     
    7777 
    7878    // INLINE FUNCTIONS 
    79      
     79 
    8080    inline SegmentPlacer::SegmentPlacer() 
    8181    : Placer(), _vertexA(-1, 0, 0), _vertexB(1, 0, 0) 
    8282    { 
    8383    } 
    84      
     84 
    8585    inline SegmentPlacer::SegmentPlacer(const SegmentPlacer& copy, const osg::CopyOp& copyop) 
    8686    : Placer(copy, copyop), _vertexA(copy._vertexA), _vertexB(copy._vertexB) 
     
    108108        P->setPosition(rangev3(_vertexA, _vertexB).get_random()); 
    109109    } 
    110      
     110 
    111111    inline float SegmentPlacer::volume() const 
    112112    { 
    113113        return (_vertexB - _vertexA).length(); 
    114114    } 
    115      
     115 
    116116    inline void SegmentPlacer::setVertexA(const osg::Vec3& v) 
    117117    { 
    118118        _vertexA = v; 
    119119    } 
    120      
     120 
    121121    inline void SegmentPlacer::setVertexA(float x, float y, float z) 
    122122    { 
    123123        _vertexA.set(x, y, z); 
    124124    } 
    125      
     125 
    126126    inline void SegmentPlacer::setVertexB(const osg::Vec3& v) 
    127127    { 
     
    132132    { 
    133133        _vertexB.set(x, y, z); 
    134     }     
    135      
     134    } 
     135 
    136136    inline osg::Vec3 SegmentPlacer::getControlPosition() const 
    137137    {