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/Sector.cpp

    r10321 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*/ 
     
    1919 
    2020// 
    21 // Elevation Range  
     21// Elevation Range 
    2222// 
    2323 
     
    5959 
    6060// 
    61 // Elevation Range  
     61// Elevation Range 
    6262// 
    6363void ElevationRange::setElevationRange(float minElevation,float maxElevation,float fadeAngle) 
     
    287287    if ( ang > osg::PI ) _cosHorizFadeAngle = -1.0 ; 
    288288    else _cosHorizFadeAngle = cos(ang); 
    289      
     289 
    290290    ang = acos(_cosVertAngle)+angle ; 
    291291    if ( ang > osg::PI ) _cosVertFadeAngle = -1.0 ; 
     
    299299 
    300300float DirectionalSector::operator() (const osg::Vec3& eyeLocal) const 
    301 {       
     301{ 
    302302   float elev_intensity, azim_intensity ; 
    303     
     303 
    304304   // Tranform eyeLocal into the LightPoint frame 
    305305   osg::Vec3 EPlp = _local_to_LP * eyeLocal ; 
    306     
     306 
    307307   /*fprintf(stderr, "    eyeLocal = %f, %f, %f\n", eyeLocal[0], eyeLocal[1], eyeLocal[2]) ; 
    308308   fprintf(stderr, "    EPlp     = %f, %f, %f\n", EPlp[0], EPlp[1], EPlp[2]) ;*/ 
    309     
     309 
    310310   // Elevation check 
    311311     // Project EPlp into LP YZ plane and dot with LPy 
     
    331331   } 
    332332   // Elevation check passed 
    333     
     333 
    334334   // Azimuth check 
    335335     // Project EPlp into LP XY plane and dot with LPy 
     
    357357   } 
    358358   // Azimuth check passed 
    359     
     359 
    360360   // We're good! Return full intensity 
    361361   //fprintf(stderr, "   %%%% Returing intensity = %f\n", elev_intensity * azim_intensity) ;