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/osg/LOD

    r12817 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*/ 
     
    3636{ 
    3737    public : 
    38      
     38 
    3939        LOD(); 
    4040 
     
    4848 
    4949        virtual void traverse(NodeVisitor& nv); 
    50          
     50 
    5151        virtual bool addChild(Node *child); 
    5252 
     
    5757        typedef std::pair<float,float>  MinMaxPair; 
    5858        typedef std::vector<MinMaxPair> RangeList; 
    59        
     59 
    6060        /** Modes which control how the center of object should be determined when computing which child is active.*/ 
    6161        enum CenterMode 
     
    7272        CenterMode getCenterMode() const { return _centerMode; } 
    7373 
    74         /** Sets the object-space point which defines the center of the osg::LOD.   
     74        /** Sets the object-space point which defines the center of the osg::LOD. 
    7575            center is affected by any transforms in the hierarchy above the osg::LOD.*/ 
    7676        inline void setCenter(const vec_type& center) { if (_centerMode!=UNION_OF_BOUNDING_SPHERE_AND_USER_DEFINED) { _centerMode=USER_DEFINED_CENTER; } _userDefinedCenter = center; } 
    77          
     77 
    7878        /** return the LOD center point. */ 
    7979        inline const vec_type& getCenter() const { if ((_centerMode==USER_DEFINED_CENTER)||(_centerMode==UNION_OF_BOUNDING_SPHERE_AND_USER_DEFINED)) return _userDefinedCenter; else return getBound().center(); } 
    8080 
    8181 
    82         /** Set the object-space reference radius of the volume enclosed by the LOD.  
     82        /** Set the object-space reference radius of the volume enclosed by the LOD. 
    8383          * Used to determine the bounding sphere of the LOD in the absence of any children.*/ 
    8484        inline void setRadius(value_type radius) { _radius = radius; } 
    85          
     85 
    8686        /** Get the object-space radius of the volume enclosed by the LOD.*/ 
    8787        inline value_type getRadius() const { return _radius; } 
     
    9393            PIXEL_SIZE_ON_SCREEN 
    9494        }; 
    95          
     95 
    9696        /** Set how the range values should be interpreted when computing which child is active.*/ 
    9797        void setRangeMode(RangeMode mode) { _rangeMode = mode; } 
     
    104104            Values are floating point distance specified in local objects coordinates.*/ 
    105105        void setRange(unsigned int childNo, float min,float max); 
    106          
     106 
    107107        /** returns the min visible range for specified child.*/ 
    108108        inline float getMinRange(unsigned int childNo) const { return _rangeList[childNo].first; } 
     
    110110        /** returns the max visible range for specified child.*/ 
    111111        inline float getMaxRange(unsigned int childNo) const { return _rangeList[childNo].second; } 
    112          
    113         /** returns the number of ranges currently set.  
     112 
     113        /** returns the number of ranges currently set. 
    114114          * An LOD which has been fully set up will have getNumChildren()==getNumRanges(). */ 
    115115        inline unsigned int getNumRanges() const { return _rangeList.size(); }