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

    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    enum SinkTarget { SINK_POSITION, SINK_VELOCITY, SINK_ANGULAR_VELOCITY }; 
    3232    enum SinkStrategy { SINK_INSIDE, SINK_OUTSIDE }; 
    33      
     33 
    3434    SinkOperator() 
    3535    : DomainOperator(), _sinkTarget(SINK_POSITION), _sinkStrategy(SINK_INSIDE) 
    3636    {} 
    37      
     37 
    3838    SinkOperator( const SinkOperator& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY ) 
    3939    : DomainOperator(copy, copyop), _sinkTarget(copy._sinkTarget), _sinkStrategy(copy._sinkStrategy) 
    4040    {} 
    41      
     41 
    4242    META_Object( osgParticle, SinkOperator ); 
    43      
     43 
    4444    /// Set the sink strategy 
    4545    void setSinkTarget( SinkTarget so ) { _sinkTarget = so; } 
    46      
     46 
    4747    /// Get the sink strategy 
    4848    SinkTarget getSinkTarget() const { return _sinkTarget; } 
    49      
     49 
    5050    /// Set the sink strategy 
    5151    void setSinkStrategy( SinkStrategy ss ) { _sinkStrategy = ss; } 
    52      
     52 
    5353    /// Get the sink strategy 
    5454    SinkStrategy getSinkStrategy() const { return _sinkStrategy; } 
    55      
     55 
    5656    /// Perform some initializations. Do not call this method manually. 
    5757    void beginOperate( Program* prg ); 
    58      
     58 
    5959protected: 
    6060    virtual ~SinkOperator() {} 
    6161    SinkOperator& operator=( const SinkOperator& ) { return *this; } 
    62      
     62 
    6363    virtual void handlePoint( const Domain& domain, Particle* P, double dt ); 
    6464    virtual void handleLineSegment( const Domain& domain, Particle* P, double dt ); 
     
    6969    virtual void handleBox( const Domain& domain, Particle* P, double dt ); 
    7070    virtual void handleDisk( const Domain& domain, Particle* P, double dt ); 
    71      
     71 
    7272    inline const osg::Vec3& getValue( Particle* P ); 
    7373    inline void kill( Particle* P, bool insideDomain ); 
    74      
     74 
    7575    SinkTarget _sinkTarget; 
    7676    SinkStrategy _sinkStrategy;