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/osgVolume/Property.cpp

    r12878 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 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*/ 
     
    134134void AlphaFuncProperty::setValue(float v) 
    135135{ 
    136     _uniform->set(v);  
     136    _uniform->set(v); 
    137137    _alphaFunc->setReferenceValue(v); 
    138138} 
     
    219219 
    220220void PropertyVisitor::apply(CompositeProperty& cp) 
    221 {  
     221{ 
    222222    for(unsigned int i=0; i<cp.getNumProperties(); ++i) 
    223223    { 
     
    227227 
    228228void PropertyVisitor::apply(SwitchProperty& sp) 
    229 {  
     229{ 
    230230    if (_traverseOnlyActiveChildren) 
    231231    { 
     
    269269{ 
    270270    public: 
    271      
     271 
    272272        CycleSwitchVisitor(int delta): 
    273273            PropertyVisitor(false), 
    274274            _delta(delta), 
    275275            _switchModified(true) {} 
    276          
     276 
    277277        virtual void apply(SwitchProperty& sp) 
    278278        { 
     
    290290                        sp.setActiveProperty(0); 
    291291                    } 
    292                      
     292 
    293293                    _switchModified = true; 
    294294                } 
     
    308308                } 
    309309            } 
    310              
     310 
    311311            PropertyVisitor::apply(sp); 
    312312        } 
    313          
     313 
    314314        int     _delta; 
    315315        bool    _switchModified; 
     
    355355 
    356356    bool passOnUpdates = false; 
    357      
     357 
    358358    switch(ea.getEventType()) 
    359359    { 
     
    395395        float v = (ea.getY()-ea.getYmin())/(ea.getYmax()-ea.getYmin()); 
    396396        if (ea.getMouseYOrientation()==osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS) v = 1.0f-v; 
    397          
     397 
    398398        float v2 = v*v; 
    399399        float v4 = v2*v2;