Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
@@ -30,16 +30,16 @@ namespace osgUtil {
|
||||
|
||||
|
||||
class OSGUTIL_EXPORT Hit
|
||||
{
|
||||
{
|
||||
/** Deprecated */
|
||||
public:
|
||||
|
||||
Hit();
|
||||
Hit(const Hit& hit);
|
||||
~Hit();
|
||||
|
||||
|
||||
Hit& operator = (const Hit& hit);
|
||||
|
||||
|
||||
typedef std::vector<int> VecIndexList;
|
||||
|
||||
bool operator < (const Hit& hit) const
|
||||
@@ -48,11 +48,11 @@ class OSGUTIL_EXPORT Hit
|
||||
if (hit._originalLineSegment<_originalLineSegment) return false;
|
||||
return _ratio<hit._ratio;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const osg::Vec3& getLocalIntersectPoint() const { return _intersectPoint; }
|
||||
const osg::Vec3& getLocalIntersectNormal() const { return _intersectNormal; }
|
||||
|
||||
|
||||
const osg::Vec3 getWorldIntersectPoint() const { if (_matrix.valid()) return _intersectPoint*(*_matrix); else return _intersectPoint; }
|
||||
const osg::Vec3 getWorldIntersectNormal() const ;
|
||||
|
||||
@@ -69,8 +69,8 @@ class OSGUTIL_EXPORT Hit
|
||||
const osg::RefMatrix* getInverseMatrix() const { return _inverse.get(); }
|
||||
const VecIndexList& getVecIndexList() const { return _vecIndexList; }
|
||||
int getPrimitiveIndex() const { return _primitiveIndex; }
|
||||
|
||||
|
||||
|
||||
|
||||
float _ratio;
|
||||
osg::ref_ptr<osg::LineSegment> _originalLineSegment;
|
||||
osg::ref_ptr<osg::LineSegment> _localLineSegment;
|
||||
@@ -79,7 +79,7 @@ class OSGUTIL_EXPORT Hit
|
||||
osg::ref_ptr<osg::Drawable> _drawable;
|
||||
osg::ref_ptr<osg::RefMatrix> _matrix;
|
||||
osg::ref_ptr<osg::RefMatrix> _inverse;
|
||||
|
||||
|
||||
VecIndexList _vecIndexList;
|
||||
int _primitiveIndex;
|
||||
osg::Vec3 _intersectPoint;
|
||||
@@ -100,7 +100,7 @@ class OSGUTIL_EXPORT IntersectVisitor : public osg::NodeVisitor
|
||||
META_NodeVisitor("osgUtil","IntersectVisitor")
|
||||
|
||||
void reset();
|
||||
|
||||
|
||||
/** Add a line segment to use for intersection testing during scene traversal.
|
||||
* Note, a maximum of 32 line segments can be added to a IntersectVistor,
|
||||
* adding more than this will result in warning being emitted to the console
|
||||
@@ -113,7 +113,7 @@ class OSGUTIL_EXPORT IntersectVisitor : public osg::NodeVisitor
|
||||
HitList& getHitList(const osg::LineSegment* seg) { return _segHitList[seg]; }
|
||||
|
||||
int getNumHits(const osg::LineSegment* seg) { return _segHitList[seg].size(); }
|
||||
|
||||
|
||||
LineSegmentHitListMap& getSegHitList() { return _segHitList; }
|
||||
|
||||
bool hits();
|
||||
@@ -123,7 +123,7 @@ class OSGUTIL_EXPORT IntersectVisitor : public osg::NodeVisitor
|
||||
USE_HIGHEST_LEVEL_OF_DETAIL,
|
||||
USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION
|
||||
};
|
||||
|
||||
|
||||
void setLODSelectionMode(LODSelectionMode mode) { _lodSelectionMode = mode; }
|
||||
LODSelectionMode getLODSelectionMode() const { return _lodSelectionMode; }
|
||||
|
||||
@@ -190,11 +190,11 @@ class OSGUTIL_EXPORT IntersectVisitor : public osg::NodeVisitor
|
||||
void leaveNode();
|
||||
|
||||
typedef std::vector<osg::ref_ptr<IntersectState> > IntersectStateStack;
|
||||
|
||||
|
||||
IntersectStateStack _intersectStateStack;
|
||||
|
||||
LineSegmentHitListMap _segHitList;
|
||||
|
||||
|
||||
LODSelectionMode _lodSelectionMode;
|
||||
osg::Vec3 _pseudoEyePoint;
|
||||
};
|
||||
@@ -213,7 +213,7 @@ class OSGUTIL_EXPORT PickVisitor : public osgUtil::IntersectVisitor
|
||||
void apply(osg::Camera& camera);
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
float _mx;
|
||||
float _my;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user