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

    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        HeightAboveTerrain(); 
    38          
    39      
     38 
     39 
    4040        /** Clear the internal HAT List so it contains no height above terrain tests.*/ 
    4141        void clear(); 
    42          
     42 
    4343        /** Add a height above terrain test point in the CoordinateFrame.*/ 
    4444        unsigned int addPoint(const osg::Vec3d& point); 
     
    4646        /** Get the number of height above terrain tests.*/ 
    4747        unsigned int getNumPoints() const { return _HATList.size(); } 
    48          
     48 
    4949        /** Set the source point of single height above terrain test.*/ 
    5050        void setPoint(unsigned int i, const osg::Vec3d& point) { _HATList[i]._point = point; } 
     
    5454 
    5555        /** Get the intersection height for a single height above terrain test. 
    56           * Note, you must call computeIntersections(..) before you can query the HeightAboveTerrain.  
     56          * Note, you must call computeIntersections(..) before you can query the HeightAboveTerrain. 
    5757          * If no intersections are found then height returned will be the height above mean sea level. */ 
    5858        double getHeightAboveTerrain(unsigned int i) const  { return _HATList[i]._hat; } 
     
    6464        /** Get the lowest height that the should be tested for.*/ 
    6565        double getLowestHeight() const { return _lowestHeight; } 
    66          
     66 
    6767        /** Compute the HAT intersections with the specified scene graph. 
    6868          * The results are all stored in the form of a single height above terrain value per HAT test. 
     
    7474        /** Compute the vertical distance between the specified scene graph and a single HAT point. */ 
    7575        static double computeHeightAboveTerrain(osg::Node* scene, const osg::Vec3d& point, osg::Node::NodeMask traversalMask=0xffffffff); 
    76          
    77          
     76 
     77 
    7878        /** Clear the database cache.*/ 
    7979        void clearDatabaseCache() { if (_dcrc.valid()) _dcrc->clearDatabaseCache(); } 
     
    8686        /** Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs.*/ 
    8787        DatabaseCacheReadCallback* getDatabaseCacheReadCallback() { return _dcrc.get(); } 
    88          
     88 
    8989    protected : 
    90      
     90 
    9191        struct HAT 
    9292        { 
     
    9494                _point(point), 
    9595                _hat(0.0) {} 
    96                  
     96 
    9797            osg::Vec3d      _point; 
    9898            double          _hat; 
    9999        }; 
    100          
     100 
    101101        typedef std::vector<HAT> HATList; 
    102          
     102 
    103103 
    104104        double                                  _lowestHeight; 
    105105        HATList                                 _HATList; 
    106106 
    107          
     107 
    108108        osg::ref_ptr<DatabaseCacheReadCallback> _dcrc; 
    109109        osgUtil::IntersectionVisitor            _intersectionVisitor;