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/osgUtil/SceneView

    r12794 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*/ 
     
    5252            COMPILE_GLOBJECTS_AT_INIT = 0x4, 
    5353            STANDARD_SETTINGS = HEADLIGHT | 
    54                                 COMPILE_GLOBJECTS_AT_INIT                                 
     54                                COMPILE_GLOBJECTS_AT_INIT 
    5555        }; 
    5656 
     
    7676         */ 
    7777        void setSceneData(osg::Node* node); 
    78          
     78 
    7979        /** Get the scene data to view. The data will typically be 
    8080         *  an osg::Scene but can be any osg::Node type. 
     
    8686         */ 
    8787        const osg::Node* getSceneData(unsigned int childNo=0) const { return (_camera->getNumChildren()>childNo) ? _camera->getChild(childNo) : 0; } 
    88          
     88 
    8989        /** Get the number of scene data subgraphs added to the SceneView's camera.*/ 
    9090        unsigned int getNumSceneData() const { return _camera->getNumChildren(); } 
     
    102102        /** Get the const viewport. */ 
    103103        const osg::Viewport* getViewport() const { return (_camera->getViewport()!=0) ? _camera->getViewport() : 0; } 
    104          
     104 
    105105        /** Set the DisplaySettings. */ 
    106106        inline void setDisplaySettings(osg::DisplaySettings* vs) { _displaySettings = vs; } 
    107          
     107 
    108108        /** Get the const DisplaySettings */ 
    109109        inline const osg::DisplaySettings* getDisplaySettings() const { return _displaySettings.get(); } 
     
    119119        /** Get the color used in glClearColor.*/ 
    120120        const osg::Vec4& getClearColor() const { return _camera->getClearColor(); } 
    121          
    122          
    123         /** Manually set the redraw interlaced stereo stencil mask request flag to control whether to redraw the stencil buffer on the next frame.*/   
     121 
     122 
     123        /** Manually set the redraw interlaced stereo stencil mask request flag to control whether to redraw the stencil buffer on the next frame.*/ 
    124124        void setRedrawInterlacedStereoStencilMask(bool flag) { _redrawInterlacedStereoStencilMask = flag; } 
    125125 
    126         /** Get the redraw interlaced stereo stencil mask request flag.*/   
     126        /** Get the redraw interlaced stereo stencil mask request flag.*/ 
    127127        bool getRedrawInterlacedStereoStencilMask() const { return _redrawInterlacedStereoStencilMask; } 
    128128 
     
    139139        osg::StateSet* getLocalStateSet() { return _localStateSet.get(); } 
    140140        const osg::StateSet* getLocalStateSet() const { return _localStateSet.get(); } 
    141          
     141 
    142142        enum ActiveUniforms 
    143143        { 
     
    159159        }; 
    160160 
    161         /** Set the uniforms that SceneView should set set up on each frame.*/         
     161        /** Set the uniforms that SceneView should set set up on each frame.*/ 
    162162        void setActiveUniforms(int activeUniforms) { _activeUniforms = activeUniforms; } 
    163163 
     
    166166 
    167167        void updateUniforms(); 
    168          
     168 
    169169 
    170170        typedef Options LightingMode; 
     
    176176        osg::Light* getLight() { return _light.get(); } 
    177177        const osg::Light* getLight() const { return _light.get(); } 
    178          
     178 
    179179        void setState(osg::State* state) { _renderInfo.setState(state); } 
    180180        osg::State* getState() { return _renderInfo.getState(); } 
    181181        const osg::State* getState() const { return _renderInfo.getState(); } 
    182          
     182 
    183183        void setView(osg::View* view) { _camera->setView(view); } 
    184184        osg::View* getView() { return _camera->getView(); } 
     
    188188        osg::RenderInfo& getRenderInfo() { return _renderInfo; } 
    189189        const osg::RenderInfo& getRenderInfo() const { return _renderInfo; } 
    190          
     190 
    191191 
    192192 
     
    222222        const osg::Matrixd& getProjectionMatrix() const { return _camera->getProjectionMatrix(); } 
    223223 
    224         /** Get the orthographic settings of the orthographic projection matrix.  
     224        /** Get the orthographic settings of the orthographic projection matrix. 
    225225          * Returns false if matrix is not an orthographic matrix, where parameter values are undefined.*/ 
    226226        bool getProjectionMatrixAsOrtho(double& left, double& right, 
     
    235235 
    236236        /** Get the frustum setting of a symmetric perspective projection matrix. 
    237           * Returns false if matrix is not a perspective matrix, where parameter values are undefined.  
     237          * Returns false if matrix is not a perspective matrix, where parameter values are undefined. 
    238238          * Note, if matrix is not a symmetric perspective matrix then the shear will be lost. 
    239239          * Asymmetric matrices occur when stereo, power walls, caves and reality center display are used. 
     
    245245        /** Set the view matrix. Can be thought of as setting the position of the world relative to the camera in camera coordinates. */ 
    246246        inline void setViewMatrix(const osg::Matrixf& matrix) { _camera->setViewMatrix(matrix); } 
    247          
     247 
    248248        /** Set the view matrix. Can be thought of as setting the position of the world relative to the camera in camera coordinates. */ 
    249249        inline void setViewMatrix(const osg::Matrixd& matrix) { _camera->setViewMatrix(matrix); } 
     
    263263 
    264264 
    265          
     265 
    266266        void setInitVisitor(osg::NodeVisitor* av) { _initVisitor = av; } 
    267267        osg::NodeVisitor* getInitVisitor() { return _initVisitor.get(); } 
     
    285285        osgUtil::CullVisitor* getCullVisitorRight() { return _cullVisitorRight.get(); } 
    286286        const osgUtil::CullVisitor* getCullVisitorRight() const { return _cullVisitorRight.get(); } 
    287          
     287 
    288288        void setCollectOccludersVisitor(osg::CollectOccludersVisitor* cov) { _collectOccludersVisitor = cov; } 
    289289        osg::CollectOccludersVisitor* getCollectOccludersVisitor() { return _collectOccludersVisitor.get(); } 
     
    355355        /** Set whether the draw method should call renderer->prioritizeTexture.*/ 
    356356        void setPrioritizeTextures(bool pt) { _prioritizeTextures = pt; } 
    357          
     357 
    358358        /** Get whether the draw method should call renderer->prioritizeTexture.*/ 
    359359        bool getPrioritizeTextures() const { return _prioritizeTextures; } 
     
    368368            virtual osg::Matrixd computeRightEyeView(const osg::Matrixd& view) const = 0; 
    369369        }; 
    370          
     370 
    371371        void setComputeStereoMatricesCallback(ComputeStereoMatricesCallback* callback) { _computeStereoMatricesCallback=callback; } 
    372372        ComputeStereoMatricesCallback* getComputeStereoMatricesCallback() { return _computeStereoMatricesCallback.get(); } 
     
    420420            else return computeLeftEyeViewImplementation(view); 
    421421        } 
    422          
     422 
    423423        inline osg::Matrixd computeRightEyeProjection(const osg::Matrixd& projection)  const 
    424424        { 
     
    463463        /** Do draw traversal of draw bins generated by cull traversal.*/ 
    464464        virtual void draw(); 
    465          
     465 
    466466        /** Compute the number of dynamic objects that will be held in the rendering backend */ 
    467467        unsigned int getDynamicObjectCount() const { return _dynamicObjectCount; } 
    468          
     468 
    469469        /** Release all OpenGL objects from the scene graph, such as texture objects, display lists, etc. 
    470470          * These released scene graphs are placed in the respective delete GLObjects cache, and 
     
    477477        /** Flush deleted OpenGL objects, such as texture objects, display lists, etc., within the specified available time.*/ 
    478478        virtual void flushDeletedGLObjects(double& availableTime); 
    479          
     479 
    480480        /** Extract stats for current draw list. */ 
    481481        bool getStats(Statistics& primStats); 
     
    491491        /** Do cull traversal of attached scene graph using Cull NodeVisitor. Return true if computeNearFar has been done during the cull traversal.*/ 
    492492        virtual bool cullStage(const osg::Matrixd& projection,const osg::Matrixd& modelview,osgUtil::CullVisitor* cullVisitor, osgUtil::StateGraph* rendergraph, osgUtil::RenderStage* renderStage, osg::Viewport *viewport); 
    493          
     493 
    494494        void computeLeftEyeViewport(const osg::Viewport *viewport); 
    495495        void computeRightEyeViewport(const osg::Viewport *viewport); 
     
    501501        osg::ref_ptr<osg::StateSet>                 _localStateSet; 
    502502        osg::RenderInfo                             _renderInfo; 
    503          
     503 
    504504        bool                                        _initCalled; 
    505505        osg::ref_ptr<osg::NodeVisitor>              _initVisitor; 
     
    522522 
    523523        osg::ref_ptr<osg::CollectOccludersVisitor>  _collectOccludersVisitor; 
    524          
     524 
    525525        osg::ref_ptr<osg::FrameStamp>               _frameStamp; 
    526          
     526 
    527527        osg::observer_ptr<osg::Camera>              _camera; 
    528528        osg::ref_ptr<osg::Camera>                   _cameraWithOwnership; 
    529          
     529 
    530530        osg::ref_ptr<osg::StateSet>                 _globalStateSet; 
    531531        osg::ref_ptr<osg::Light>                    _light; 
    532532        osg::ref_ptr<osg::DisplaySettings>          _displaySettings; 
    533          
     533 
    534534        osg::ref_ptr<osg::StateSet>                 _secondaryStateSet; 
    535535 
     
    538538 
    539539        LightingMode                                _lightingMode; 
    540          
     540 
    541541        bool                                        _prioritizeTextures; 
    542          
     542 
    543543        bool                                        _automaticFlush; 
    544544        bool                                        _requiresFlush; 
    545          
    546         int                                         _activeUniforms;         
     545 
     546        int                                         _activeUniforms; 
    547547        double                                      _previousFrameTime; 
    548548        double                                      _previousSimulationTime; 
    549          
     549 
    550550        bool                                        _redrawInterlacedStereoStencilMask; 
    551551        int                                         _interlacedStereoStencilWidth; 
    552552        int                                         _interlacedStereoStencilHeight; 
    553553 
    554         unsigned int                                _dynamicObjectCount;         
     554        unsigned int                                _dynamicObjectCount; 
    555555}; 
    556556