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/osg/Transform.cpp

    r10296 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*/ 
     
    2121{ 
    2222    public: 
    23      
     23 
    2424        enum CoordMode 
    2525        { 
     
    2727            LOCAL_TO_WORLD 
    2828        }; 
    29          
     29 
    3030 
    3131        CoordMode       _coordMode; 
     
    5151            } 
    5252        } 
    53          
     53 
    5454        void accumulate(const NodePath& nodePath) 
    5555        { 
    5656            if (nodePath.empty()) return; 
    57   
     57 
    5858            unsigned int i = 0; 
    5959            if (_ignoreCameras) 
     
    6868                { 
    6969                    const osg::Camera* camera = dynamic_cast<const osg::Camera*>(*ritr); 
    70                     if (camera &&  
     70                    if (camera && 
    7171                        (camera->getReferenceFrame()!=osg::Transform::RELATIVE_RF || camera->getParents().empty())) 
    7272                    { 
     
    7474                    } 
    7575                } 
    76             }             
     76            } 
    7777 
    78             // do the accumulation of the active part of nodepath.         
     78            // do the accumulation of the active part of nodepath. 
    7979            for(; 
    8080                i<nodePath.size(); 
     
    8484            } 
    8585        } 
    86          
     86 
    8787    protected: 
    88      
     88 
    8989        TransformVisitor& operator = (const TransformVisitor&) { return *this; } 
    90      
     90 
    9191}; 
    9292 
     
    136136    Group(transform,copyop), 
    137137    _referenceFrame(transform._referenceFrame) 
    138 {     
     138{ 
    139139} 
    140140 
     
    146146{ 
    147147    if (_referenceFrame == rf) return; 
    148      
     148 
    149149    _referenceFrame = rf; 
    150      
     150 
    151151    // switch off culling if transform is absolute. 
    152152    setCullingActive(_referenceFrame==RELATIVE_RF); 
     
    157157    BoundingSphere bsphere = Group::computeBound(); 
    158158    if (!bsphere.valid()) return bsphere; 
    159      
     159 
    160160    // note, NULL pointer for NodeVisitor, so compute's need 
    161161    // to handle this case gracefully, normally this should not be a problem.