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/src/osgParticle/ExplosionDebrisEffect.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*/ 
     
    3030{ 
    3131    setDefaults(); 
    32      
     32 
    3333    _position.set(0.0f,0.0f,0.0f); 
    3434    _scale = 1.0f; 
    3535    _intensity = 1.0f; 
    36       
     36 
    3737    _emitterDuration = 0.1; 
    3838    _defaultParticleTemplate.setLifeTime(1.0+0.6*_scale); 
    39     
     39 
    4040    if (_automaticSetup) buildEffect(); 
    4141} 
     
    4444{ 
    4545    setDefaults(); 
    46      
     46 
    4747    _position = position; 
    4848    _scale = scale; 
    4949    _intensity = intensity; 
    50       
     50 
    5151    _emitterDuration = 0.1; 
    5252    _defaultParticleTemplate.setLifeTime(1.0+0.6*_scale); 
    53     
     53 
    5454    if (_automaticSetup) buildEffect(); 
    5555} 
     
    6464{ 
    6565    ParticleEffect::setDefaults(); 
    66      
    67     _textureFileName = "Images/particle.rgb";     
     66 
     67    _textureFileName = "Images/particle.rgb"; 
    6868    _emitterDuration = 0.1; 
    69      
     69 
    7070    // set up unit particle. 
    71     _defaultParticleTemplate.setLifeTime(1.0+0.6*_scale);    
     71    _defaultParticleTemplate.setLifeTime(1.0+0.6*_scale); 
    7272    _defaultParticleTemplate.setSizeRange(osgParticle::rangef(0.75f, 3.0f)); 
    7373    _defaultParticleTemplate.setAlphaRange(osgParticle::rangef(0.0f, 1.0f)); 
    7474    _defaultParticleTemplate.setColorRange(osgParticle::rangev4( 
    75                             osg::Vec4(0.5f, 0.5f, 0.0f, 1.0f),  
     75                            osg::Vec4(0.5f, 0.5f, 0.0f, 1.0f), 
    7676                            osg::Vec4(0.2f, 0.2f, 0.2f, 0.5f))); 
    7777 
     
    9393        osgParticle::Particle& ptemplate = _particleSystem->getDefaultParticleTemplate(); 
    9494 
    95         float radius = 0.05f*_scale;  
     95        float radius = 0.05f*_scale; 
    9696        float density = 1000.0f; // 1000.0kg/m^3 
    9797 
    9898        ptemplate.setLifeTime(_defaultParticleTemplate.getLifeTime()); 
    9999 
    100         // the following ranges set the envelope of the respective  
     100        // the following ranges set the envelope of the respective 
    101101        // graphical properties in time. 
    102102        ptemplate.setSizeRange(osgParticle::rangef(radius*_defaultParticleTemplate.getSizeRange().minimum, 
     
    155155    // set up program. 
    156156    if (!_program) 
    157     {         
     157    { 
    158158        _program = new osgParticle::FluidProgram; 
    159159    } 
    160      
     160 
    161161    if (_program.valid()) 
    162162    { 
     
    164164        _program->setWind(_wind); 
    165165    } 
    166      
     166 
    167167} 
    168      
     168