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/src/osgSim/HeightAboveTerrain.cpp

    r11487 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*/ 
     
    2323{ 
    2424    _lowestHeight = -1000.0; 
    25      
     25 
    2626    setDatabaseCacheReadCallback(new DatabaseCacheReadCallback); 
    2727} 
     
    5252        if (em) 
    5353        { 
    54          
     54 
    5555            osg::Vec3d start = itr->_point; 
    5656            osg::Vec3d upVector = em->computeLocalUpVector(start.x(), start.y(), start.z()); 
     
    5858            double latitude, longitude, height; 
    5959            em->convertXYZToLatLongHeight(start.x(), start.y(), start.z(), latitude, longitude, height); 
    60             osg::Vec3d end = start - upVector * (height - _lowestHeight);             
    61              
     60            osg::Vec3d end = start - upVector * (height - _lowestHeight); 
     61 
    6262            itr->_hat = height; 
    6363 
     
    7171            osg::Vec3d start = itr->_point; 
    7272            osg::Vec3d upVector (0.0, 0.0, 1.0); 
    73              
     73 
    7474            double height = start.z(); 
    75             osg::Vec3d end = start - upVector * (height - _lowestHeight);             
     75            osg::Vec3d end = start - upVector * (height - _lowestHeight); 
    7676 
    7777            itr->_hat = height; 
     
    8181        } 
    8282    } 
    83      
     83 
    8484    _intersectionVisitor.reset(); 
    8585    _intersectionVisitor.setTraversalMask(traversalMask); 
    8686    _intersectionVisitor.setIntersector( intersectorGroup.get() ); 
    87      
     87 
    8888    scene->accept(_intersectionVisitor); 
    89      
     89 
    9090    unsigned int index = 0; 
    9191    osgUtil::IntersectorGroup::Intersectors& intersectors = intersectorGroup->getIntersectors(); 
     
    107107        } 
    108108    } 
    109      
     109 
    110110} 
    111111