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/IntersectVisitor

    r10100 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*/ 
     
    3131 
    3232class OSGUTIL_EXPORT Hit 
    33 {  
     33{ 
    3434    /** Deprecated */ 
    3535    public: 
     
    3838        Hit(const Hit& hit); 
    3939        ~Hit(); 
    40          
     40 
    4141        Hit& operator = (const Hit& hit); 
    42          
     42 
    4343        typedef std::vector<int> VecIndexList; 
    4444 
     
    4949            return _ratio<hit._ratio; 
    5050        } 
    51          
    52          
     51 
     52 
    5353        const osg::Vec3& getLocalIntersectPoint() const { return _intersectPoint; } 
    5454        const osg::Vec3& getLocalIntersectNormal() const { return _intersectNormal; } 
    55          
     55 
    5656        const osg::Vec3 getWorldIntersectPoint() const { if (_matrix.valid()) return _intersectPoint*(*_matrix); else return _intersectPoint; } 
    5757        const osg::Vec3 getWorldIntersectNormal() const ; 
     
    7070        const VecIndexList& getVecIndexList() const { return _vecIndexList; } 
    7171        int getPrimitiveIndex() const { return _primitiveIndex; } 
    72          
    73          
     72 
     73 
    7474        float                           _ratio; 
    7575        osg::ref_ptr<osg::LineSegment>  _originalLineSegment; 
     
    8080        osg::ref_ptr<osg::RefMatrix>    _matrix; 
    8181        osg::ref_ptr<osg::RefMatrix>    _inverse; 
    82          
     82 
    8383        VecIndexList                    _vecIndexList; 
    8484        int                             _primitiveIndex; 
     
    101101 
    102102        void reset(); 
    103          
     103 
    104104        /** Add a line segment to use for intersection testing during scene traversal. 
    105105          * Note, a maximum of 32 line segments can be added to a IntersectVistor, 
     
    114114 
    115115        int getNumHits(const osg::LineSegment* seg) { return _segHitList[seg].size(); } 
    116          
     116 
    117117        LineSegmentHitListMap& getSegHitList() { return _segHitList; } 
    118118 
     
    124124            USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION 
    125125        }; 
    126          
     126 
    127127        void setLODSelectionMode(LODSelectionMode mode) { _lodSelectionMode = mode; } 
    128128        LODSelectionMode getLODSelectionMode() const { return _lodSelectionMode; } 
     
    191191 
    192192        typedef std::vector<osg::ref_ptr<IntersectState> > IntersectStateStack; 
    193          
     193 
    194194        IntersectStateStack         _intersectStateStack; 
    195195 
    196196        LineSegmentHitListMap       _segHitList; 
    197          
     197 
    198198        LODSelectionMode            _lodSelectionMode; 
    199199        osg::Vec3                   _pseudoEyePoint; 
     
    214214 
    215215    protected: 
    216          
     216 
    217217        float _mx; 
    218218        float _my;