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

    r11687 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*/ 
     
    3737    /**    An emitter class that holds three objects to control the creation of particles. 
    3838        These objects are a <I>counter</I>, a <I>placer</I> and a <I>shooter</I>. 
    39         The counter controls the number of particles to be emitted at each frame;  
    40         the placer must initialize the particle's position vector, while the shooter initializes  
     39        The counter controls the number of particles to be emitted at each frame; 
     40        the placer must initialize the particle's position vector, while the shooter initializes 
    4141        its velocity vector. 
    4242        You can use the predefined counter/placer/shooter classes, or you can create your own. 
     
    4646        ModularEmitter(); 
    4747        ModularEmitter(const ModularEmitter& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY); 
    48          
     48 
    4949        META_Node(osgParticle,ModularEmitter); 
    50          
     50 
    5151        /// Get the counter object. 
    5252        inline Counter* getCounter(); 
    53          
     53 
    5454        /// Get the const Counter object. 
    5555        inline const Counter* getCounter() const; 
    56          
     56 
    5757        /// Set the Counter object. 
    5858        inline void setCounter(Counter* c); 
    59          
     59 
    6060        /// Get the ratio between number of particle to create in compensation for movement of the emitter 
    6161        inline float getNumParticlesToCreateMovementCompensationRatio() const; 
     
    6767        /// Get the Placer object. 
    6868        inline Placer* getPlacer(); 
    69          
    70         /// Get the const Placer object.         
     69 
     70        /// Get the const Placer object. 
    7171        inline const Placer* getPlacer() const; 
    72          
     72 
    7373        /// Set the Placer object. 
    7474        inline void setPlacer(Placer* p); 
    75          
     75 
    7676        /// Get the Shooter object. 
    7777        inline Shooter *getShooter(); 
    78          
     78 
    7979        /// Get the const Shooter object. 
    8080        inline const Shooter *getShooter() const; 
    81          
     81 
    8282        /// Set the Shooter object. 
    83         inline void setShooter(Shooter *s);         
     83        inline void setShooter(Shooter *s); 
    8484 
    8585    protected: 
    8686        virtual ~ModularEmitter() {} 
    8787        ModularEmitter &operator=(const ModularEmitter &) { return *this; } 
    88          
     88 
    8989        virtual void emitParticles(double dt); 
    90          
     90 
    9191    private: 
    92      
     92 
    9393        float _numParticleToCreateMovementCompensationRatio; 
    9494        osg::ref_ptr<Counter> _counter; 
     
    9696        osg::ref_ptr<Shooter> _shooter; 
    9797    }; 
    98      
     98 
    9999    // INLINE FUNCTIONS 
    100      
     100 
    101101    inline Counter* ModularEmitter::getCounter() 
    102102    { 
    103103        return _counter.get(); 
    104104    } 
    105      
     105 
    106106    inline const Counter* ModularEmitter::getCounter() const 
    107107    { 
     
    153153        _shooter = s; 
    154154    } 
    155      
     155 
    156156} 
    157157