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/include/osgUtil/UpdateVisitor

    r9377 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*/ 
     
    3333 * Basic UpdateVisitor implementation for animating a scene. 
    3434 * This visitor traverses the scene graph, calling each nodes appCallback if 
    35  * it exists.  
     35 * it exists. 
    3636 */ 
    3737class OSGUTIL_EXPORT UpdateVisitor : public osg::NodeVisitor 
     
    4848        /** During traversal each type of node calls its callbacks and its children traversed. */ 
    4949        virtual void apply(osg::Node& node)         { handle_callbacks_and_traverse(node); } 
    50          
     50 
    5151        virtual void apply(osg::Geode& node)        { handle_geode_callbacks(node); } 
    5252        virtual void apply(osg::Billboard& node)    { handle_geode_callbacks(node); } 
    53          
     53 
    5454        virtual void apply(osg::LightSource& node)  { handle_callbacks_and_traverse(node); } 
    55          
     55 
    5656        virtual void apply(osg::Group& node)        { handle_callbacks_and_traverse(node); } 
    5757        virtual void apply(osg::Transform& node)    { handle_callbacks_and_traverse(node); } 
     
    6969        /** Prevent unwanted copy operator.*/ 
    7070        UpdateVisitor& operator = (const UpdateVisitor&) { return *this; } 
    71          
     71 
    7272        inline void handle_callbacks(osg::StateSet* stateset) 
    7373        { 
     
    7777            } 
    7878        } 
    79          
     79 
    8080        inline void handle_callbacks_and_traverse(osg::Node& node) 
    8181        { 
     
    9999                osg::Drawable::UpdateCallback* callback = geode.getDrawable(i)->getUpdateCallback(); 
    100100                if (callback) callback->update(this,geode.getDrawable(i)); 
    101                  
     101 
    102102                handle_callbacks(geode.getDrawable(i)->getStateSet()); 
    103103            } 
    104              
     104 
    105105            // should we traverse just in case a subclass of Geode adds children??  Won't for now as 
    106106            // Geode's arn't designed to have children. 
    107107            // traverse(geode); 
    108         }     
     108        } 
    109109}; 
    110110