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

    r7101 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*/ 
     
    2727 
    2828    /**    A program class for performing operations on particles using a sequence of <I>operators</I>. 
    29         To use a <CODE>FluidProgram</CODE> you have to create some <CODE>Operator</CODE> objects and  
     29        To use a <CODE>FluidProgram</CODE> you have to create some <CODE>Operator</CODE> objects and 
    3030        add them to the program. 
    3131        All operators will be applied to each particle in the same order they've been added to the program. 
    32     */     
     32    */ 
    3333    class OSGPARTICLE_EXPORT FluidProgram: public Program { 
    3434    public: 
    3535        FluidProgram(); 
    3636        FluidProgram(const FluidProgram& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY); 
    37          
     37 
    3838        META_Node(osgParticle,FluidProgram); 
    39          
     39 
    4040        /// Set the viscosity of the fluid. 
    4141        inline void setFluidViscosity(float v) 
     
    4444            _viscosityCoefficient = 6 * osg::PI * _viscosity; 
    4545        } 
    46         
     46 
    4747        /// Get the viscosity of the fluid. 
    4848        inline float getFluidViscosity() const { return _viscosity; } 
     
    5757        /// Get the density of the fluid. 
    5858        inline float getFluidDensity() const { return _density; } 
    59          
    60          
     59 
     60 
    6161        /// Set the wind vector. 
    6262        inline void setWind(const osg::Vec3& wind) { _wind = wind; } 
    63          
     63 
    6464        /// Get the wind vector. 
    6565        inline const osg::Vec3& getWind() const { return _wind; } 
    66          
     66 
    6767        /// Set the acceleration vector. 
    6868        inline void setAcceleration(const osg::Vec3& v) { _acceleration = v; } 
    69          
     69 
    7070        /// Get the acceleration vector. 
    7171        inline const osg::Vec3& getAcceleration() const { return _acceleration; } 
     
    8383            setFluidViscosity(1.8e-5f); 
    8484        } 
    85          
     85 
    8686        /// Set the fluid parameters as for pure water (20°C temperature). 
    8787        inline void setFluidToWater() 
     
    9191            setFluidViscosity(1.002e-3f); 
    9292        } 
    93              
     93 
    9494 
    9595    protected: 
     
    9797        virtual ~FluidProgram() {} 
    9898        FluidProgram& operator=(const FluidProgram&) { return *this; } 
    99          
     99 
    100100        virtual void execute(double dt); 
    101101 
     
    108108        float       _densityCoefficient; 
    109109    }; 
    110      
     110 
    111111 
    112112}