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/osgSim/OverlayNode

    r9458 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*/ 
     
    4343 
    4444        OverlayNode(const OverlayNode& es, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY); 
    45              
     45 
    4646        META_Node(osgSim, OverlayNode); 
    47          
     47 
    4848        virtual void traverse(osg::NodeVisitor& nv); 
    4949 
     
    5757        /** Set the overlay subgraph which will be rendered to texture.*/ 
    5858        void setOverlaySubgraph(osg::Node* node); 
    59          
     59 
    6060        /** Get the overlay subgraph which will be rendered to texture.*/ 
    6161        osg::Node* getOverlaySubgraph() { return _overlaySubgraph.get(); } 
     
    6363        /** Get the const overlay subgraph which will be render to texture.*/ 
    6464        const osg::Node* getOverlaySubgraph() const { return _overlaySubgraph.get(); } 
    65          
     65 
    6666 
    6767        /** Inform the OverlayNode that the overlay texture needs to be updated.*/ 
    6868        void dirtyOverlayTexture(); 
    69          
     69 
    7070        /** Set whether the OverlayNode should update the overlay texture on every frame.*/ 
    7171        void setContinuousUpdate(bool update) { _continuousUpdate = update; } 
     
    9292        /** Set the TexEnv mode used to combine the overlay texture with the base color/texture of the OverlayNode's decorate subgraph.*/ 
    9393        void setTexEnvMode(GLenum mode); 
    94          
     94 
    9595        /** Get the TexEnv mode used to combine the overlay texture with the base color/texture of the OverlayNode's decorate subgraph.*/ 
    9696        GLenum getTexEnvMode() const { return _texEnvMode; } 
     
    101101        /** Get the texture unit that the texture should be assigned to.*/ 
    102102        unsigned int getOverlayTextureUnit() const { return _textureUnit; } 
    103          
     103 
    104104        /** Set the texture size hint. The size hint is used to request a texture of specified size.*/ 
    105105        void setOverlayTextureSizeHint(unsigned int size); 
     
    107107        /** Get the texture size hint.*/ 
    108108        unsigned int getOverlayTextureSizeHint() const { return _textureSizeHint; } 
    109          
    110          
     109 
     110 
    111111        /** Set whether to use a mutex to ensure ref() and unref() are thread safe.*/ 
    112112        virtual void setThreadSafeRefUnref(bool threadSafe); 
     
    123123 
    124124        virtual ~OverlayNode() {} 
    125          
     125 
    126126        void init(); 
    127127        void init_OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY(); 
    128128        void init_VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY(); 
    129129        void init_VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY(); 
    130          
     130 
    131131        void traverse_OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY(osg::NodeVisitor& nv); 
    132132        void traverse_VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY(osg::NodeVisitor& nv); 
     
    137137 
    138138        typedef osg::buffered_value< int > TextureObjectValidList; 
    139          
     139 
    140140        mutable TextureObjectValidList _textureObjectValidList; 
    141141 
     
    148148        osg::ref_ptr<osg::StateSet>     _overlayStateSet; 
    149149        osg::ref_ptr<osg::StateSet>     _mainStateSet; 
    150          
     150 
    151151        // texture to render to, and to read from. 
    152152        GLenum                          _texEnvMode; 
     
    158158        double                          _overlayBaseHeight; 
    159159        bool                            _updateCamera; 
    160          
     160 
    161161        osg::Camera::RenderTargetImplementation _renderTargetImpl; 
    162162 
     
    177177 
    178178            osg::ref_ptr<osg::Program>      _mainSubgraphProgram; 
    179              
     179 
    180180            osg::ref_ptr<osg::Uniform>      _y0; 
    181181            osg::ref_ptr<osg::Uniform>      _lightingEnabled; 
    182182        }; 
    183          
     183 
    184184        typedef std::map<osgUtil::CullVisitor*, osg::ref_ptr<OverlayData> > OverlayDataMap; 
    185          
     185 
    186186        OpenThreads::Mutex              _overlayDataMapMutex; 
    187187        OverlayDataMap                  _overlayDataMap; 
    188          
     188 
    189189        OverlayNode::OverlayData* getOverlayData(osgUtil::CullVisitor* cv); 
    190          
     190 
    191191}; 
    192192