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/src/osgParticle/SmokeTrailEffect.cpp

    r8500 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*/ 
     
    2525 
    2626SmokeTrailEffect::SmokeTrailEffect(bool automaticSetup): 
    27     ParticleEffect(automaticSetup)  
     27    ParticleEffect(automaticSetup) 
    2828{ 
    2929    setDefaults(); 
    30      
     30 
    3131    _position.set(0.0f,0.0f,0.0f); 
    3232    _scale = 1.0f; 
     
    3535    _emitterDuration = 65.0; 
    3636    _defaultParticleTemplate.setLifeTime(5.0*_scale); 
    37          
     37 
    3838    if (_automaticSetup) buildEffect(); 
    3939} 
     
    4242{ 
    4343    setDefaults(); 
    44      
     44 
    4545    _position = position; 
    4646    _scale = scale; 
     
    4949    _emitterDuration = 65.0; 
    5050    _defaultParticleTemplate.setLifeTime(5.0*_scale); 
    51          
     51 
    5252    if (_automaticSetup) buildEffect(); 
    5353} 
     
    6262{ 
    6363    ParticleEffect::setDefaults(); 
    64      
    65     _textureFileName = "Images/continous_smoke.rgb";     
     64 
     65    _textureFileName = "Images/continous_smoke.rgb"; 
    6666    _emitterDuration = 65.0; 
    6767 
     
    7171    _defaultParticleTemplate.setAlphaRange(osgParticle::rangef(0.7f, 1.0f)); 
    7272    _defaultParticleTemplate.setColorRange(osgParticle::rangev4( 
    73                                             osg::Vec4(1, 1.0f, 1.0f, 1.0f),  
     73                                            osg::Vec4(1, 1.0f, 1.0f, 1.0f), 
    7474                                            osg::Vec4(1, 1.0f, 1.f, 0.0f))); 
    7575 
     
    9191        osgParticle::Particle& ptemplate = _particleSystem->getDefaultParticleTemplate(); 
    9292 
    93         float radius = 0.5f*_scale;  
     93        float radius = 0.5f*_scale; 
    9494        float density = 1.0f; // 1.0kg/m^3 
    9595 
    9696        ptemplate.setLifeTime(_defaultParticleTemplate.getLifeTime()); 
    9797 
    98         // the following ranges set the envelope of the respective  
     98        // the following ranges set the envelope of the respective 
    9999        // graphical properties in time. 
    100100        ptemplate.setSizeRange(osgParticle::rangef(radius*_defaultParticleTemplate.getSizeRange().minimum, 
     
    154154    // set up program. 
    155155    if (!_program) 
    156     {         
     156    { 
    157157        _program = new osgParticle::FluidProgram; 
    158158    } 
    159      
     159 
    160160    if (_program.valid()) 
    161161    {