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

    r11754 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*/ 
     
    2828    class Particle; 
    2929 
    30     /** An abstract base class used by <CODE>ModularProgram</CODE> to perform operations on particles before they are updated.  
     30    /** An abstract base class used by <CODE>ModularProgram</CODE> to perform operations on particles before they are updated. 
    3131        To implement a new operator, derive from this class and override the <CODE>operate()</CODE> method. 
    3232        You should also override the <CODE>beginOperate()</CODE> method to query the calling program for the reference frame 
    3333        used, and initialize the right transformations if needed. 
    3434    */ 
    35     class Operator: public osg::Object {         
     35    class Operator: public osg::Object { 
    3636    public: 
    3737        inline Operator(); 
     
    4141        virtual const char* className() const { return "Operator"; } 
    4242        virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const Operator* >(obj) != 0; } 
    43          
     43 
    4444        /// Get whether this operator is enabled. 
    4545        inline bool isEnabled() const; 
    46          
     46 
    4747        /// Enable or disable this operator. 
    4848        inline void setEnabled(bool v); 
    49          
     49 
    5050        /** Do something on all emitted particles. 
    5151            This method is called by <CODE>ModularProgram</CODE> objects to perform some operations 
     
    6262            } 
    6363        } 
    64          
    65         /**    Do something on a particle.  
     64 
     65        /**    Do something on a particle. 
    6666            You must override it in descendant classes. Common operations 
    6767            consist of modifying the particle's velocity vector. The <CODE>dt</CODE> parameter is 
    68             the time elapsed from last operation.             
     68            the time elapsed from last operation. 
    6969        */ 
    7070        virtual void operate(Particle* P, double dt) = 0; 
    71          
     71 
    7272        /** Do something before processing particles via the <CODE>operate()</CODE> method. 
    7373            Overriding this method could be necessary to query the calling <CODE>Program</CODE> object 
     
    7676        */ 
    7777        virtual void beginOperate(Program *) {} 
    78          
     78 
    7979        /// Do something after all particles have been processed. 
    8080        virtual void endOperate() {} 
     
    8383        virtual ~Operator() {} 
    8484        Operator &operator=(const Operator &) { return *this; } 
    85          
     85 
    8686    private: 
    87         bool _enabled;         
     87        bool _enabled; 
    8888    }; 
    89      
     89 
    9090    // INLINE FUNCTIONS 
    91      
     91 
    9292    inline Operator::Operator() 
    9393    : osg::Object(), _enabled(true) 
    9494    { 
    9595    } 
    96      
     96 
    9797    inline Operator::Operator(const Operator& copy, const osg::CopyOp& copyop) 
    9898    : osg::Object(copy, copyop), _enabled(copy._enabled) 
    9999    { 
    100100    } 
    101      
    102     inline bool Operator::isEnabled() const     
     101 
     102    inline bool Operator::isEnabled() const 
    103103    { 
    104104        return _enabled; 
    105105    } 
    106      
     106 
    107107    inline void Operator::setEnabled(bool v) 
    108108    {