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/OperationArrayFunctor

    r12139 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*/ 
     
    2828{ 
    2929    public: 
    30          
     30 
    3131        virtual void apply(osg::Array&) {} 
    3232//        virtual void apply(osg::ByteArray& array) { T::process<osg::ByteArray>(array); } 
     
    6161{ 
    6262    template <typename ArrayType> 
    63     void process(ArrayType & array)  
    64     {    
     63    void process(ArrayType & array) 
     64    { 
    6565        typedef typename ArrayType::ElementDataType ElementDataType; 
    66                  
     66 
    6767        ElementDataType convertedVector; 
    6868        osgUtil::ConvertVec<osg::Vec3d, ElementDataType>::convert(_vector, convertedVector); 
    69          
     69 
    7070        typename ArrayType::iterator it = array.begin(); 
    7171        std::advance(it, _begin); 
    72          
     72 
    7373        typename ArrayType::iterator end = it; 
    7474        std::advance(end, _count); 
    75          
     75 
    7676        for (; it < end; ++it) 
    7777            (*it) += convertedVector; 
     
    8080    unsigned int _begin; 
    8181    unsigned int _count; 
    82      
     82 
    8383    osg::Vec3d _vector; 
    8484}; 
     
    8888{ 
    8989    template <typename ArrayType> 
    90     void process(ArrayType & array)  
    91     {    
     90    void process(ArrayType & array) 
     91    { 
    9292        typedef typename ArrayType::ElementDataType ElementDataType; 
    93                  
     93 
    9494        ElementDataType convertedVector; 
    9595        osgUtil::ConvertVec<osg::Vec3d, ElementDataType>::convert(_vector, convertedVector); 
    96          
     96 
    9797        typename ArrayType::iterator it = array.begin(); 
    9898        std::advance(it, _begin); 
    99          
     99 
    100100        typename ArrayType::iterator end = it; 
    101101        std::advance(end, _count); 
    102          
     102 
    103103        for (; it < end; ++it) 
    104104            (*it) *= convertedVector; 
     
    107107    unsigned int _begin; 
    108108    unsigned int _count; 
    109      
     109 
    110110    osg::Vec3d _vector; 
    111111};