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

    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*/ 
     
    3535        inline ForceOperator(); 
    3636        inline ForceOperator(const ForceOperator& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY); 
    37          
     37 
    3838        META_Object(osgParticle, ForceOperator); 
    39          
     39 
    4040        /// Get the force vector. 
    4141        inline const osg::Vec3& getForce() const; 
    42          
     42 
    4343        /// Set the force vector. 
    4444        inline void setForce(const osg::Vec3& f); 
    45          
     45 
    4646        /// Apply the force to a particle. Do not call this method manually. 
    4747        inline void operate(Particle* P, double dt); 
    48          
     48 
    4949        /// Perform some initialization. Do not call this method manually. 
    5050        inline void beginOperate(Program *prg); 
    51          
     51 
    5252    protected: 
    5353        virtual ~ForceOperator() {}; 
    54         ForceOperator& operator=(const ForceOperator&) { return *this; }         
    55          
     54        ForceOperator& operator=(const ForceOperator&) { return *this; } 
     55 
    5656    private: 
    5757        osg::Vec3 _force; 
    5858        osg::Vec3 _xf_force; 
    5959    }; 
    60      
     60 
    6161    // INLINE FUNCTIONS 
    62      
     62 
    6363    inline ForceOperator::ForceOperator() 
    6464    : Operator(), _force(0, 0, 0) 
    65     {         
     65    { 
    6666    } 
    67      
     67 
    6868    inline ForceOperator::ForceOperator(const ForceOperator& copy, const osg::CopyOp& copyop) 
    6969    : Operator(copy, copyop), _force(copy._force) 
    7070    { 
    7171    } 
    72      
     72 
    7373    inline const osg::Vec3& ForceOperator::getForce() const 
    7474    { 
    7575        return _force; 
    7676    } 
    77      
     77 
    7878    inline void ForceOperator::setForce(const osg::Vec3& v) 
    7979    { 
    8080        _force = v; 
    8181    } 
    82      
     82 
    8383    inline void ForceOperator::operate(Particle* P, double dt) 
    8484    { 
    8585        P->addVelocity(_xf_force * (P->getMassInv() * dt)); 
    8686    } 
    87      
     87 
    8888    inline void ForceOperator::beginOperate(Program *prg) 
    8989    {