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/osgDB/ImageOptions

    r10171 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*/ 
     
    2222{ 
    2323    public: 
    24      
     24 
    2525        ImageOptions(); 
    26          
     26 
    2727        ImageOptions(const std::string& str); 
    28              
     28 
    2929        ImageOptions(const ImageOptions& options,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY): 
    3030            osgDB::Options(options,copyop), 
     
    3939            _destinationDataType(options._destinationDataType), 
    4040            _destinationPixelFormat(options._destinationPixelFormat) {} 
    41            
     41 
    4242 
    4343        META_Object(osgDB,ImageOptions); 
     
    5959                windowHeight = h; 
    6060            } 
    61              
     61 
    6262            double windowX; 
    6363            double windowY; 
     
    6565            double windowHeight; 
    6666        }; 
    67          
     67 
    6868        /** PixelWindow stores the window (in exact pixels) from the overall imagery from which to extract the osg::Image*/ 
    6969        struct PixelWindow 
     
    7474                windowWidth(0), 
    7575                windowHeight(0) {} 
    76          
     76 
    7777            void set(unsigned int x, unsigned int y, unsigned int w, unsigned int h) 
    7878            { 
     
    8282                windowHeight = h; 
    8383            } 
    84              
     84 
    8585            unsigned int windowX; 
    8686            unsigned int windowY; 
     
    8888            unsigned int windowHeight; 
    8989        }; 
    90          
     90 
    9191        enum ImageWindowMode 
    9292        { 
     
    9595            PIXEL_WINDOW 
    9696        }; 
    97          
     97 
    9898        enum ImageSamplingMode 
    9999        { 
     
    111111                _w(1.0), 
    112112                _h(1.0) {} 
    113          
     113 
    114114            void set(double x,double y, double w, double h) 
    115115            { 
     
    119119                _h = h; 
    120120            } 
    121          
     121 
    122122            double _x,_y,_w,_h; 
    123123        }; 
    124124 
    125125 
    126         // source         
     126        // source 
    127127        ImageSamplingMode   _sourceImageSamplingMode; 
    128128        ImageWindowMode     _sourceImageWindowMode; 
     
    132132        // destination 
    133133        osg::ref_ptr<osg::Image> _destinationImage; 
    134         
     134 
    135135        ImageWindowMode     _destinationImageWindowMode; 
    136136        RatioWindow         _destinationRatioWindow; 
     
    141141 
    142142        void init(); 
    143          
     143 
    144144}; 
    145145