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/osgShadow/MinimalShadowMap

    r12188 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 * 
     
    2222namespace osgShadow { 
    2323 
    24 class OSGSHADOW_EXPORT MinimalShadowMap : public StandardShadowMap  
     24class OSGSHADOW_EXPORT MinimalShadowMap : public StandardShadowMap 
    2525{ 
    2626    public : 
     
    3535        /** Classic OSG cloning constructor */ 
    3636        MinimalShadowMap( 
    37             const MinimalShadowMap& msm,  
     37            const MinimalShadowMap& msm, 
    3838            const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY); 
    3939 
     
    7070                    { _shadowReceivingCoarseBoundAccuracy = accuracy; } 
    7171 
    72         ShadowReceivingCoarseBoundAccuracy  
     72        ShadowReceivingCoarseBoundAccuracy 
    7373                getShadowReceivingCoarseBoundAccuracy() const 
    7474                    { return _shadowReceivingCoarseBoundAccuracy; } 
     
    7878        virtual ~MinimalShadowMap(void); 
    7979 
    80     protected:          
     80    protected: 
    8181        // Matrix modellingSpaceToWorld and its inverse 
    8282        // are used to define Modelling Space where shadowed scene drawables 
    8383        // have minimal (smallest possible extent) bounding boxes. 
    8484 
    85         // Computing visible shadow range in this space  
     85        // Computing visible shadow range in this space 
    8686        // allows for optimal use of ShadowMap resolution. 
    8787 
    8888        // By default it is set to identity ie computations are in world space. 
    89         // But it should be set to ElipsoidModel::localToWorld  
     89        // But it should be set to ElipsoidModel::localToWorld 
    9090        // when scene objects are put on earth ellipsoid surface. 
    9191 
    92         // Other scenarios are also possible for example when models are  
     92        // Other scenarios are also possible for example when models are 
    9393        // built in XZY space which would require identity matrix with swapped colums 
    9494 
    9595        osg::Matrix                        _modellingSpaceToWorld; 
    9696        float                              _maxFarPlane; 
    97         float                              _minLightMargin;  
    98         ShadowReceivingCoarseBoundAccuracy _shadowReceivingCoarseBoundAccuracy;         
     97        float                              _minLightMargin; 
     98        ShadowReceivingCoarseBoundAccuracy _shadowReceivingCoarseBoundAccuracy; 
    9999 
    100100        struct OSGSHADOW_EXPORT ViewData: public BaseClass::ViewData 
     
    116116            virtual void cullShadowReceivingScene( ); 
    117117 
    118             virtual void aimShadowCastingCamera(  
     118            virtual void aimShadowCastingCamera( 
    119119                const osg::BoundingSphere &bounds, 
    120120                const osg::Light *light, 
     
    132132                ( const osg::Camera* cameraMain, osg::Camera* cameraShadow, int pass = 1 ); 
    133133 
    134             void cutScenePolytope( const osg::Matrix & matrix,  
     134            void cutScenePolytope( const osg::Matrix & matrix, 
    135135                const osg::Matrix & inverse, 
    136                 const osg::BoundingBox &bb =  
     136                const osg::BoundingBox &bb = 
    137137                osg::BoundingBox(-1,-1,-1,1,1,1) ); 
    138138 
    139139            osg::BoundingBox computeScenePolytopeBounds 
    140                 ( const osg::Matrix & m = *(osg::Matrix*)(NULL) );     
     140                ( const osg::Matrix & m = *(osg::Matrix*)(NULL) ); 
    141141 
    142142            // Utility methods for adjusting projection matrices