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/osgSim/ElevationSlice

    r12701 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*/ 
     
    3434    public : 
    3535 
    36      
     36 
    3737        ElevationSlice(); 
    38          
    39         /** Set the start point of the slice.*/         
     38 
     39        /** Set the start point of the slice.*/ 
    4040        void setStartPoint(const osg::Vec3d& startPoint) { _startPoint = startPoint; } 
    4141 
    42         /** Get the start point of the slice.*/         
     42        /** Get the start point of the slice.*/ 
    4343        const osg::Vec3d& getStartPoint() const { return _startPoint; } 
    44          
    45         /** Set the end point of the slice.*/         
     44 
     45        /** Set the end point of the slice.*/ 
    4646        void setEndPoint(const osg::Vec3d& endPoint) { _endPoint = endPoint; } 
    4747 
    48         /** Get the end point of the slice.*/         
     48        /** Get the end point of the slice.*/ 
    4949        const osg::Vec3d& getEndPoint() const { return _endPoint; } 
    5050 
    51          
     51 
    5252        typedef std::vector<osg::Vec3d> Vec3dList; 
    53          
     53 
    5454        /** Get the intersections in the form of a vector of Vec3d. */ 
    5555        const Vec3dList& getIntersections() const  { return _intersections; } 
     
    5757        typedef std::pair<double,double> DistanceHeight; 
    5858        typedef std::vector<DistanceHeight> DistanceHeightList; 
    59          
     59 
    6060        /** Get the intersections in the form a vector of pair<double,double> representing distance along the slice and height. */ 
    6161        const DistanceHeightList& getDistanceHeightIntersections() const { return _distanceHeightIntersections; } 
    62          
    63         
     62 
     63 
    6464        /** Compute the intersections with the specified scene graph, the results are stored in vectors of Vec3d. 
    6565          * Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, 
     
    7070        /** Compute the vertical distance between the specified scene graph and a single HAT point.*/ 
    7171        static Vec3dList computeElevationSlice(osg::Node* scene, const osg::Vec3d& startPoint, const osg::Vec3d& endPoint, osg::Node::NodeMask traversalMask=0xffffffff); 
    72          
    73          
     72 
     73 
    7474        /** Clear the database cache.*/ 
    7575        void clearDatabaseCache() { if (_dcrc.valid()) _dcrc->clearDatabaseCache(); } 
     
    8484 
    8585    protected : 
    86      
    87      
     86 
     87 
    8888        osg::Vec3d                              _startPoint; 
    8989        osg::Vec3d                              _endPoint; 
    9090        Vec3dList                               _intersections; 
    9191        DistanceHeightList                      _distanceHeightIntersections; 
    92          
     92 
    9393        osg::ref_ptr<DatabaseCacheReadCallback> _dcrc; 
    9494        osgUtil::IntersectionVisitor            _intersectionVisitor;