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

    r12139 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2010 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2010 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*/ 
     
    3131    DampingOperator() : Operator(), _cutoffLow(0.0f), _cutoffHigh(FLT_MAX) 
    3232    { _damping.set(1.0f, 1.0f, 1.0f); } 
    33      
     33 
    3434    DampingOperator( const DampingOperator& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY ) 
    3535    :   Operator(copy, copyop), _damping(copy._damping), 
    3636        _cutoffLow(copy._cutoffLow), _cutoffHigh(copy._cutoffHigh) 
    3737    {} 
    38      
     38 
    3939    META_Object( osgParticle, DampingOperator ); 
    40      
     40 
    4141    /// Set the damping factors 
    4242    void setDamping( float x, float y, float z ) { _damping.set(x, y, z); } 
    4343    void setDamping( const osg::Vec3& damping ) { _damping = damping; } 
    44      
     44 
    4545    /// Set the damping factors to one value 
    4646    void setDamping( float x ) { _damping.set(x, x, x); } 
    47      
     47 
    4848    /// Get the damping factors 
    4949    void getDamping( float& x, float& y, float& z ) const 
    5050    { x = _damping.x(); y = _damping.y(); z = _damping.z(); } 
    51      
     51 
    5252    const osg::Vec3& getDamping() const { return _damping; } 
    53      
     53 
    5454    /// Set the velocity cutoff factors 
    5555    void setCutoff( float low, float high ) { _cutoffLow = low; _cutoffHigh = high; } 
    5656    void setCutoffLow( float low ) { _cutoffLow = low; } 
    5757    void setCutoffHigh( float low ) { _cutoffHigh = low; } 
    58      
     58 
    5959    /// Get the velocity cutoff factors 
    6060    void getCutoff( float& low, float& high ) const { low = _cutoffLow; high = _cutoffHigh; } 
    6161    float getCutoffLow() const { return _cutoffLow; } 
    6262    float getCutoffHigh() const { return _cutoffHigh; } 
    63      
     63 
    6464    /// Apply the acceleration to a particle. Do not call this method manually. 
    6565    inline void operate( Particle* P, double dt ); 
    66      
     66 
    6767protected: 
    6868    virtual ~DampingOperator() {} 
    6969    DampingOperator& operator=( const DampingOperator& ) { return *this; } 
    70      
     70 
    7171    osg::Vec3 _damping; 
    7272    float _cutoffLow;