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

    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*/ 
     
    5151        void setSmoothing(bool on) { _smoothing = on; } 
    5252        bool getSmoothing() const { return _smoothing; } 
    53          
     53 
    5454        class ContinueSimplificationCallback : public osg::Referenced 
    5555        { 
     
    6060                    return simplifier.continueSimplificationImplementation(nextError, numOriginalPrimitives, numRemainingPrimitives); 
    6161                } 
    62              
     62 
    6363            protected: 
    6464                virtual ~ContinueSimplificationCallback() {} 
    6565        }; 
    66          
     66 
    6767        void setContinueSimplificationCallback(ContinueSimplificationCallback* cb) { _continueSimplificationCallback = cb; } 
    6868        ContinueSimplificationCallback* getContinueSimplificationCallback() { return _continueSimplificationCallback.get(); } 
    6969        const ContinueSimplificationCallback* getContinueSimplificationCallback() const { return _continueSimplificationCallback.get(); } 
    70          
    71          
     70 
     71 
    7272        bool continueSimplification(float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const 
    7373        { 
     
    9797        /** simply the geometry.*/ 
    9898        void simplify(osg::Geometry& geometry); 
    99          
     99 
    100100        typedef std::vector<unsigned int> IndexList; /// a list of point indices 
    101101 
     
    105105 
    106106    protected: 
    107      
     107 
    108108        double _sampleRatio; 
    109109        double _maximumError; 
     
    111111        bool  _triStrip; 
    112112        bool  _smoothing; 
    113          
     113 
    114114        osg::ref_ptr<ContinueSimplificationCallback> _continueSimplificationCallback; 
    115      
     115 
    116116}; 
    117117