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

    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*/ 
     
    3333    : Operator(), _magnitude(1.0f), _epsilon(1e-3), _maxRadius(FLT_MAX) 
    3434    {} 
    35      
     35 
    3636    OrbitOperator( const OrbitOperator& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY ) 
    3737    :   Operator(copy, copyop), _center(copy._center), _magnitude(copy._magnitude), 
    3838        _epsilon(copy._epsilon), _maxRadius(copy._maxRadius) 
    3939    {} 
    40      
     40 
    4141    META_Object( osgParticle, OrbitOperator ); 
    42      
     42 
    4343    /// Set the center of orbit 
    4444    void setCenter( const osg::Vec3& c ) { _center = c; } 
    45      
     45 
    4646    /// Get the center of orbit 
    4747    const osg::Vec3& getCenter() const { return _center; } 
    48      
     48 
    4949    /// Set the acceleration scale 
    5050    void setMagnitude( float mag ) { _magnitude = mag; } 
    51      
     51 
    5252    /// Get the acceleration scale 
    5353    float getMagnitude() const { return _magnitude; } 
    54      
     54 
    5555    /// Set the acceleration epsilon 
    5656    void setEpsilon( float eps ) { _epsilon = eps; } 
    57      
     57 
    5858    /// Get the acceleration epsilon 
    5959    float getEpsilon() const { return _epsilon; } 
    60      
     60 
    6161    /// Set max radius between the center and the particle 
    6262    void setMaxRadius( float max ) { _maxRadius = max; } 
    63      
     63 
    6464    /// Get max radius between the center and the particle 
    6565    float getMaxRadius() const { return _maxRadius; } 
    66      
     66 
    6767    /// Apply the acceleration to a particle. Do not call this method manually. 
    6868    inline void operate( Particle* P, double dt ); 
    69      
     69 
    7070    /// Perform some initializations. Do not call this method manually. 
    7171    inline void beginOperate( Program* prg ); 
    72      
     72 
    7373protected: 
    7474    virtual ~OrbitOperator() {} 
    7575    OrbitOperator& operator=( const OrbitOperator& ) { return *this; } 
    76      
     76 
    7777    osg::Vec3 _center; 
    7878    osg::Vec3 _xf_center;