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

    r12367 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*/ 
     
    3535        _inexp(0.0f), _outexp(0.0f) 
    3636    {} 
    37      
     37 
    3838    ExplosionOperator( const ExplosionOperator& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY ) 
    3939    :   Operator(copy, copyop), _center(copy._center), _radius(copy._radius), 
     
    4141        _inexp(copy._inexp), _outexp(copy._outexp) 
    4242    {} 
    43      
     43 
    4444    META_Object( osgParticle, ExplosionOperator ); 
    45      
     45 
    4646    /// Set the center of shock wave 
    4747    void setCenter( const osg::Vec3& c ) { _center = c; } 
    48      
     48 
    4949    /// Get the center of shock wave 
    5050    const osg::Vec3& getCenter() const { return _center; } 
    51      
     51 
    5252    /// Set the radius of wave peak 
    5353    void setRadius( float r ) { _radius = r; } 
    54      
     54 
    5555    /// Get the radius of wave peak 
    5656    float getRadius() const { return _radius; } 
    57      
     57 
    5858    /// Set the acceleration scale 
    5959    void setMagnitude( float mag ) { _magnitude = mag; } 
    60      
     60 
    6161    /// Get the acceleration scale 
    6262    float getMagnitude() const { return _magnitude; } 
    63      
     63 
    6464    /// Set the acceleration epsilon 
    6565    void setEpsilon( float eps ) { _epsilon = eps; } 
    66      
     66 
    6767    /// Get the acceleration epsilon 
    6868    float getEpsilon() const { return _epsilon; } 
    69      
     69 
    7070    /// Set broadness of the strength of the wave 
    7171    void setSigma( float s ) { _sigma = s; } 
    72      
     72 
    7373    /// Get broadness of the strength of the wave 
    7474    float getSigma() const { return _sigma; } 
    75      
     75 
    7676    /// Apply the acceleration to a particle. Do not call this method manually. 
    7777    inline void operate( Particle* P, double dt ); 
    78      
     78 
    7979    /// Perform some initializations. Do not call this method manually. 
    8080    inline void beginOperate( Program* prg ); 
    81      
     81 
    8282protected: 
    8383    virtual ~ExplosionOperator() {} 
    8484    ExplosionOperator& operator=( const ExplosionOperator& ) { return *this; } 
    85      
     85 
    8686    osg::Vec3 _center; 
    8787    osg::Vec3 _xf_center; 
     
    116116        _xf_center = _center; 
    117117    } 
    118      
     118 
    119119    float oneOverSigma = (_sigma!=0.0f ? (1.0f / _sigma) : 1.0f); 
    120120    _inexp = -0.5f * oneOverSigma * oneOverSigma;