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/LightPointNode.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*/ 
     
    107107 
    108108    bsphere.set(_bbox.center(),0.0f); 
    109      
     109 
    110110    for(itr=_lightPointList.begin(); 
    111111        itr!=_lightPointList.end(); 
     
    136136    #endif 
    137137 
    138      
     138 
    139139#ifdef USE_TIMER 
    140140    t1 = timer.tick(); 
     
    142142 
    143143    osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(&nv); 
    144      
     144 
    145145#ifdef USE_TIMER 
    146146    t2 = timer.tick(); 
    147147#endif 
    148      
     148 
    149149 
    150150    // should we disable small feature culling here? 
    151151    if (cv /*&& !cv->isCulled(_bbox)*/) 
    152152    { 
    153      
     153 
    154154        osg::Matrix matrix = *(cv->getModelViewMatrix()); 
    155155        osg::RefMatrix& projection = *(cv->getProjectionMatrix()); 
     
    163163            cv->getCurrentRenderBin()->addStateGraph(rg); 
    164164        } 
    165          
     165 
    166166#ifdef USE_TIMER 
    167167        t3 = timer.tick(); 
     
    194194            drawable = _pointSprites ? new LightPointSpriteDrawable : new LightPointDrawable; 
    195195            rg->setUserData(drawable); 
    196              
     196 
    197197            if (cv->getFrameStamp()) 
    198198            { 
     
    208208            ++litr) 
    209209        {} 
    210          
     210 
    211211        if (litr == rg->_leaves.end()) 
    212212        { 
    213             // haven't found the drawable added in the RenderLeaf list, therefore this may be the  
     213            // haven't found the drawable added in the RenderLeaf list, therefore this may be the 
    214214            // first time through LightPointNode in this frame, so need to add drawable into the StateGraph RenderLeaf list 
    215215            // and update its time signatures. 
     
    235235#endif 
    236236 
    237          
     237 
    238238        if (cv->getComputeNearFarMode() != osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR) 
    239239            cv->updateCalculatedNearFar(matrix,_bbox); 
    240          
    241          
     240 
     241 
    242242        const float minimumIntensity = 1.0f/256.0f; 
    243243        const osg::Vec3 eyePoint = cv->getEyeLocal(); 
    244          
     244 
    245245        double time=drawable->getSimulationTime(); 
    246246        double timeInterval=drawable->getSimulationTimeInterval(); 
    247          
     247 
    248248        const osg::Polytope clipvol(cv->getCurrentCullingSet().getFrustum()); 
    249249        const bool computeClipping = false;//(clipvol.getCurrentMask()!=0); 
     
    255255        { 
    256256            const LightPoint& lp = *itr; 
    257      
     257 
    258258            if (!lp._on) continue; 
    259259 
     
    393393            } 
    394394        } 
    395          
     395 
    396396#ifdef USE_TIMER 
    397397        t8 = timer.tick(); 
    398398#endif 
    399                 
     399 
    400400    } 
    401401#ifdef USE_TIMER