IntersectionVisitor
Go to the documentation of this file.
/* -*-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
* (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
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGUTIL_INTERSECTIONVISITOR
#define OSGUTIL_INTERSECTIONVISITOR 1
#include <osg/NodeVisitor>
#include <osg/Drawable>
#include <osgUtil/Export>
#include <list>
namespace osgUtil
{
// forward declare to allow Intersector to reference it.
class IntersectionVisitor;
class Intersector : public osg::Referenced
{
public:
enum CoordinateFrame
{
WINDOW,
PROJECTION,
VIEW,
MODEL
};
enum IntersectionLimit
{
NO_LIMIT,
LIMIT_ONE_PER_DRAWABLE,
LIMIT_ONE,
LIMIT_NEAREST
};
Intersector(CoordinateFrame cf=MODEL, IntersectionLimit il=NO_LIMIT):
_coordinateFrame(cf),
_intersectionLimit(il),
_disabledCount(0),
_precisionHint(USE_DOUBLE_CALCULATIONS) {}
void setCoordinateFrame(CoordinateFrame cf) { _coordinateFrame = cf; }
CoordinateFrame getCoordinateFrame() const { return _coordinateFrame; }
void setIntersectionLimit(IntersectionLimit limit) { _intersectionLimit = limit; }
IntersectionLimit getIntersectionLimit() const { return _intersectionLimit; }
virtual Intersector* clone(osgUtil::IntersectionVisitor& iv) = 0;
virtual bool enter(const osg::Node& node) = 0;
virtual void leave() = 0;
virtual void intersect(osgUtil::IntersectionVisitor& iv, osg::Drawable* drawable) = 0;
virtual void reset() { _disabledCount = 0; }
virtual bool containsIntersections() = 0;
inline bool disabled() const { return _disabledCount!=0; }
inline void incrementDisabledCount() { ++_disabledCount; }
inline void decrementDisabledCount() { if (_disabledCount>0) --_disabledCount; }
inline bool reachedLimit() { return _intersectionLimit == LIMIT_ONE && containsIntersections(); }
enum PrecisionHint
{
USE_DOUBLE_CALCULATIONS,
USE_FLOAT_CALCULATIONS
};
void setPrecisionHint(PrecisionHint hint) { _precisionHint = hint; }
PrecisionHint getPrecisionHint() const { return _precisionHint; }
protected:
CoordinateFrame _coordinateFrame;
IntersectionLimit _intersectionLimit;
unsigned int _disabledCount;
PrecisionHint _precisionHint;
};
class OSGUTIL_EXPORT IntersectorGroup : public Intersector
{
public:
IntersectorGroup();
void addIntersector(Intersector* intersector);
typedef std::vector< osg::ref_ptr<Intersector> > Intersectors;
Intersectors& getIntersectors() { return _intersectors; }
void clear();
public:
virtual Intersector* clone(osgUtil::IntersectionVisitor& iv);
virtual bool enter(const osg::Node& node);
virtual void leave();
virtual void intersect(osgUtil::IntersectionVisitor& iv, osg::Drawable* drawable);
virtual void reset();
virtual bool containsIntersections();
protected:
Intersectors _intersectors;
};
class OSGUTIL_EXPORT IntersectionVisitor : public osg::NodeVisitor
{
public:
struct ReadCallback : public osg::Referenced
{
virtual osg::ref_ptr<osg::Node> readNodeFile(const std::string& filename) = 0;
};
IntersectionVisitor(Intersector* intersector=0, ReadCallback* readCallback=0);
META_NodeVisitor(osgUtil, IntersectionVisitor)
virtual osgUtil::IntersectionVisitor* asIntersectionVisitor() { return this; }
virtual const osgUtil::IntersectionVisitor* asIntersectionVisitor() const { return this; }
virtual void reset();
void setIntersector(Intersector* intersector);
Intersector* getIntersector() { return _intersectorStack.empty() ? 0 : _intersectorStack.front().get(); }
const Intersector* getIntersector() const { return _intersectorStack.empty() ? 0 : _intersectorStack.front().get(); }
void setUseKdTreeWhenAvailable(bool useKdTrees) { _useKdTreesWhenAvailable = useKdTrees; }
bool getUseKdTreeWhenAvailable() const { return _useKdTreesWhenAvailable; }
void setDoDummyTraversal(bool dummy) { _dummyTraversal = dummy; }
bool getDoDummyTraversal() const { return _dummyTraversal; }
void setReadCallback(ReadCallback* rc) { _readCallback = rc; }
ReadCallback* getReadCallback() { return _readCallback.get(); }
const ReadCallback* getReadCallback() const { return _readCallback.get(); }
void pushWindowMatrix(osg::RefMatrix* matrix) { _windowStack.push_back(matrix); _eyePointDirty = true; }
void pushWindowMatrix(osg::Viewport* viewport) { _windowStack.push_back(new osg::RefMatrix( viewport->computeWindowMatrix()) ); _eyePointDirty = true; }
void popWindowMatrix() { _windowStack.pop_back(); _eyePointDirty = true; }
osg::RefMatrix* getWindowMatrix() { return _windowStack.empty() ? 0 : _windowStack.back().get(); }
const osg::RefMatrix* getWindowMatrix() const { return _windowStack.empty() ? 0 : _windowStack.back().get(); }
void pushProjectionMatrix(osg::RefMatrix* matrix) { _projectionStack.push_back(matrix); _eyePointDirty = true; }
void popProjectionMatrix() { _projectionStack.pop_back(); _eyePointDirty = true; }
osg::RefMatrix* getProjectionMatrix() { return _projectionStack.empty() ? 0 : _projectionStack.back().get(); }
const osg::RefMatrix* getProjectionMatrix() const { return _projectionStack.empty() ? 0 : _projectionStack.back().get(); }
void pushViewMatrix(osg::RefMatrix* matrix) { _viewStack.push_back(matrix); _eyePointDirty = true; }
void popViewMatrix() { _viewStack.pop_back(); _eyePointDirty = true; }
osg::RefMatrix* getViewMatrix() { return _viewStack.empty() ? 0 : _viewStack.back().get(); }
const osg::RefMatrix* getViewMatrix() const { return _viewStack.empty() ? 0 : _viewStack.back().get(); }
void pushModelMatrix(osg::RefMatrix* matrix) { _modelStack.push_back(matrix); _eyePointDirty = true; }
void popModelMatrix() { _modelStack.pop_back(); _eyePointDirty = true; }
osg::RefMatrix* getModelMatrix() { return _modelStack.empty() ? 0 : _modelStack.back().get(); }
const osg::RefMatrix* getModelMatrix() const { return _modelStack.empty() ? 0 : _modelStack.back().get(); }
void setReferenceEyePoint(const osg::Vec3& ep) { _referenceEyePoint = ep; _eyePointDirty = true; }
const osg::Vec3& getReferenceEyePoint() const { return _referenceEyePoint; }
void setReferenceEyePointCoordinateFrame(Intersector::CoordinateFrame cf) { _referenceEyePointCoordinateFrame = cf; }
Intersector::CoordinateFrame getReferenceEyePointCoordinateFrame() const { return _referenceEyePointCoordinateFrame; }
virtual osg::Vec3 getEyePoint() const;
enum LODSelectionMode
{
USE_HIGHEST_LEVEL_OF_DETAIL,
USE_EYE_POINT_FOR_LOD_LEVEL_SELECTION
};
void setLODSelectionMode(LODSelectionMode mode) { _lodSelectionMode = mode; }
LODSelectionMode getLODSelectionMode() const { return _lodSelectionMode; }
virtual float getDistanceToEyePoint(const osg::Vec3& pos, bool withLODScale) const;
public:
virtual void apply(osg::Node& node);
virtual void apply(osg::Drawable& drawable);
virtual void apply(osg::Geode& geode);
virtual void apply(osg::Billboard& geode);
virtual void apply(osg::Group& group);
virtual void apply(osg::LOD& lod);
virtual void apply(osg::PagedLOD& lod);
virtual void apply(osg::Transform& transform);
virtual void apply(osg::Projection& projection);
virtual void apply(osg::Camera& camera);
protected:
inline bool enter(const osg::Node& node) { return _intersectorStack.empty() ? false : _intersectorStack.back()->enter(node); }
inline void leave() { _intersectorStack.back()->leave(); }
inline void intersect(osg::Drawable* drawable) { _intersectorStack.back()->intersect(*this, drawable); }
inline void push_clone() { _intersectorStack.push_back ( _intersectorStack.front()->clone(*this) ); }
inline void pop_clone() { if (_intersectorStack.size()>=2) _intersectorStack.pop_back(); }
typedef std::list< osg::ref_ptr<Intersector> > IntersectorStack;
IntersectorStack _intersectorStack;
bool _useKdTreesWhenAvailable;
bool _dummyTraversal;
osg::ref_ptr<ReadCallback> _readCallback;
typedef std::list< osg::ref_ptr<osg::RefMatrix> > MatrixStack;
MatrixStack _windowStack;
MatrixStack _projectionStack;
MatrixStack _viewStack;
MatrixStack _modelStack;
osg::Vec3 _referenceEyePoint;
Intersector::CoordinateFrame _referenceEyePointCoordinateFrame;
LODSelectionMode _lodSelectionMode;
mutable bool _eyePointDirty;
mutable osg::Vec3 _eyePoint;
};
}
#endif
Drawable
NodeVisitor
osgUtil::IntersectionVisitor
Definition IntersectionVisitor:152
osgUtil::IntersectionVisitor::_referenceEyePoint
osg::Vec3 _referenceEyePoint
Definition IntersectionVisitor:300
osgUtil::IntersectionVisitor::setReadCallback
void setReadCallback(ReadCallback *rc)
Definition IntersectionVisitor:202
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::Projection &projection)
osgUtil::IntersectionVisitor::getLODSelectionMode
LODSelectionMode getLODSelectionMode() const
Definition IntersectionVisitor:259
osgUtil::IntersectionVisitor::_modelStack
MatrixStack _modelStack
Definition IntersectionVisitor:298
osgUtil::IntersectionVisitor::popWindowMatrix
void popWindowMatrix()
Definition IntersectionVisitor:213
osgUtil::IntersectionVisitor::setLODSelectionMode
void setLODSelectionMode(LODSelectionMode mode)
Definition IntersectionVisitor:256
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::Node &node)
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::Transform &transform)
osgUtil::IntersectionVisitor::popProjectionMatrix
void popProjectionMatrix()
Definition IntersectionVisitor:218
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::Geode &geode)
osgUtil::IntersectionVisitor::popModelMatrix
void popModelMatrix()
Definition IntersectionVisitor:228
osgUtil::IntersectionVisitor::reset
virtual void reset()
osgUtil::IntersectionVisitor::_viewStack
MatrixStack _viewStack
Definition IntersectionVisitor:297
osgUtil::IntersectionVisitor::getDoDummyTraversal
bool getDoDummyTraversal() const
Definition IntersectionVisitor:198
osgUtil::IntersectionVisitor::getViewMatrix
osg::RefMatrix * getViewMatrix()
Definition IntersectionVisitor:224
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::Camera &camera)
osgUtil::IntersectionVisitor::pushViewMatrix
void pushViewMatrix(osg::RefMatrix *matrix)
Definition IntersectionVisitor:222
osgUtil::IntersectionVisitor::_lodSelectionMode
LODSelectionMode _lodSelectionMode
Definition IntersectionVisitor:302
osgUtil::IntersectionVisitor::getReferenceEyePointCoordinateFrame
Intersector::CoordinateFrame getReferenceEyePointCoordinateFrame() const
Definition IntersectionVisitor:243
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::PagedLOD &lod)
osgUtil::IntersectionVisitor::_useKdTreesWhenAvailable
bool _useKdTreesWhenAvailable
Definition IntersectionVisitor:289
osgUtil::IntersectionVisitor::getIntersector
Intersector * getIntersector()
Definition IntersectionVisitor:185
osgUtil::IntersectionVisitor::push_clone
void push_clone()
Definition IntersectionVisitor:283
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::Billboard &geode)
osgUtil::IntersectionVisitor::_windowStack
MatrixStack _windowStack
Definition IntersectionVisitor:295
osgUtil::IntersectionVisitor::_referenceEyePointCoordinateFrame
Intersector::CoordinateFrame _referenceEyePointCoordinateFrame
Definition IntersectionVisitor:301
osgUtil::IntersectionVisitor::leave
void leave()
Definition IntersectionVisitor:281
osgUtil::IntersectionVisitor::_eyePoint
osg::Vec3 _eyePoint
Definition IntersectionVisitor:305
osgUtil::IntersectionVisitor::_eyePointDirty
bool _eyePointDirty
Definition IntersectionVisitor:304
osgUtil::IntersectionVisitor::MatrixStack
std::list< osg::ref_ptr< osg::RefMatrix > > MatrixStack
Definition IntersectionVisitor:294
osgUtil::IntersectionVisitor::getEyePoint
virtual osg::Vec3 getEyePoint() const
osgUtil::IntersectionVisitor::getModelMatrix
osg::RefMatrix * getModelMatrix()
Definition IntersectionVisitor:229
osgUtil::IntersectionVisitor::pushProjectionMatrix
void pushProjectionMatrix(osg::RefMatrix *matrix)
Definition IntersectionVisitor:217
osgUtil::IntersectionVisitor::getReadCallback
ReadCallback * getReadCallback()
Definition IntersectionVisitor:205
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::Group &group)
osgUtil::IntersectionVisitor::getUseKdTreeWhenAvailable
bool getUseKdTreeWhenAvailable() const
Definition IntersectionVisitor:195
osgUtil::IntersectionVisitor::getProjectionMatrix
osg::RefMatrix * getProjectionMatrix()
Definition IntersectionVisitor:219
osgUtil::IntersectionVisitor::pushWindowMatrix
void pushWindowMatrix(osg::Viewport *viewport)
Definition IntersectionVisitor:212
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::LOD &lod)
osgUtil::IntersectionVisitor::setUseKdTreeWhenAvailable
void setUseKdTreeWhenAvailable(bool useKdTrees)
Definition IntersectionVisitor:192
osgUtil::IntersectionVisitor::_readCallback
osg::ref_ptr< ReadCallback > _readCallback
Definition IntersectionVisitor:292
osgUtil::IntersectionVisitor::getReferenceEyePoint
const osg::Vec3 & getReferenceEyePoint() const
Definition IntersectionVisitor:237
osgUtil::IntersectionVisitor::getIntersector
const Intersector * getIntersector() const
Definition IntersectionVisitor:188
osgUtil::IntersectionVisitor::getWindowMatrix
const osg::RefMatrix * getWindowMatrix() const
Definition IntersectionVisitor:215
osgUtil::IntersectionVisitor::setIntersector
void setIntersector(Intersector *intersector)
osgUtil::IntersectionVisitor::getProjectionMatrix
const osg::RefMatrix * getProjectionMatrix() const
Definition IntersectionVisitor:220
osgUtil::IntersectionVisitor::META_NodeVisitor
META_NodeVisitor(osgUtil, IntersectionVisitor) virtual osgUtil
Definition IntersectionVisitor:168
osgUtil::IntersectionVisitor::apply
virtual void apply(osg::Drawable &drawable)
osgUtil::IntersectionVisitor::_projectionStack
MatrixStack _projectionStack
Definition IntersectionVisitor:296
osgUtil::IntersectionVisitor::_dummyTraversal
bool _dummyTraversal
Definition IntersectionVisitor:290
osgUtil::IntersectionVisitor::getReadCallback
const ReadCallback * getReadCallback() const
Definition IntersectionVisitor:208
osgUtil::IntersectionVisitor::setReferenceEyePointCoordinateFrame
void setReferenceEyePointCoordinateFrame(Intersector::CoordinateFrame cf)
Definition IntersectionVisitor:240
osgUtil::IntersectionVisitor::pushWindowMatrix
void pushWindowMatrix(osg::RefMatrix *matrix)
Definition IntersectionVisitor:211
osgUtil::IntersectionVisitor::pushModelMatrix
void pushModelMatrix(osg::RefMatrix *matrix)
Definition IntersectionVisitor:227
osgUtil::IntersectionVisitor::getViewMatrix
const osg::RefMatrix * getViewMatrix() const
Definition IntersectionVisitor:225
osgUtil::IntersectionVisitor::pop_clone
void pop_clone()
Definition IntersectionVisitor:284
osgUtil::IntersectionVisitor::setDoDummyTraversal
void setDoDummyTraversal(bool dummy)
Definition IntersectionVisitor:197
osgUtil::IntersectionVisitor::LODSelectionMode
LODSelectionMode
Definition IntersectionVisitor:250
osgUtil::IntersectionVisitor::USE_HIGHEST_LEVEL_OF_DETAIL
@ USE_HIGHEST_LEVEL_OF_DETAIL
Definition IntersectionVisitor:251
osgUtil::IntersectionVisitor::USE_EYE_POINT_FOR_LOD_LEVEL_SELECTION
@ USE_EYE_POINT_FOR_LOD_LEVEL_SELECTION
Definition IntersectionVisitor:252
osgUtil::IntersectionVisitor::enter
bool enter(const osg::Node &node)
Definition IntersectionVisitor:280
osgUtil::IntersectionVisitor::IntersectorStack
std::list< osg::ref_ptr< Intersector > > IntersectorStack
Definition IntersectionVisitor:286
osgUtil::IntersectionVisitor::IntersectionVisitor
IntersectionVisitor(Intersector *intersector=0, ReadCallback *readCallback=0)
osgUtil::IntersectionVisitor::getWindowMatrix
osg::RefMatrix * getWindowMatrix()
Definition IntersectionVisitor:214
osgUtil::IntersectionVisitor::intersect
void intersect(osg::Drawable *drawable)
Definition IntersectionVisitor:282
osgUtil::IntersectionVisitor::setReferenceEyePoint
void setReferenceEyePoint(const osg::Vec3 &ep)
Definition IntersectionVisitor:234
osgUtil::IntersectionVisitor::asIntersectionVisitor
virtual const osgUtil::IntersectionVisitor * asIntersectionVisitor() const
Definition IntersectionVisitor:176
osgUtil::IntersectionVisitor::popViewMatrix
void popViewMatrix()
Definition IntersectionVisitor:223
osgUtil::IntersectionVisitor::getModelMatrix
const osg::RefMatrix * getModelMatrix() const
Definition IntersectionVisitor:230
osgUtil::IntersectionVisitor::_intersectorStack
IntersectorStack _intersectorStack
Definition IntersectionVisitor:287
osgUtil::IntersectionVisitor::getDistanceToEyePoint
virtual float getDistanceToEyePoint(const osg::Vec3 &pos, bool withLODScale) const
osgUtil::IntersectorGroup::intersect
virtual void intersect(osgUtil::IntersectionVisitor &iv, osg::Drawable *drawable)
osgUtil::IntersectorGroup::clone
virtual Intersector * clone(osgUtil::IntersectionVisitor &iv)
osgUtil::IntersectorGroup::IntersectorGroup
IntersectorGroup()
osgUtil::IntersectorGroup::Intersectors
std::vector< osg::ref_ptr< Intersector > > Intersectors
Definition IntersectionVisitor:120
osgUtil::IntersectorGroup::_intersectors
Intersectors _intersectors
Definition IntersectionVisitor:144
osgUtil::IntersectorGroup::leave
virtual void leave()
osgUtil::IntersectorGroup::getIntersectors
Intersectors & getIntersectors()
Definition IntersectionVisitor:123
osgUtil::IntersectorGroup::reset
virtual void reset()
osgUtil::IntersectorGroup::addIntersector
void addIntersector(Intersector *intersector)
osgUtil::IntersectorGroup::containsIntersections
virtual bool containsIntersections()
osgUtil::IntersectorGroup::enter
virtual bool enter(const osg::Node &node)
osgUtil::IntersectorGroup::clear
void clear()
osgUtil::Intersector
Definition IntersectionVisitor:34
osgUtil::Intersector::reachedLimit
bool reachedLimit()
Definition IntersectionVisitor:85
osgUtil::Intersector::leave
virtual void leave()=0
osgUtil::Intersector::clone
virtual Intersector * clone(osgUtil::IntersectionVisitor &iv)=0
osgUtil::Intersector::reset
virtual void reset()
Definition IntersectionVisitor:75
osgUtil::Intersector::_coordinateFrame
CoordinateFrame _coordinateFrame
Definition IntersectionVisitor:102
osgUtil::Intersector::intersect
virtual void intersect(osgUtil::IntersectionVisitor &iv, osg::Drawable *drawable)=0
osgUtil::Intersector::incrementDisabledCount
void incrementDisabledCount()
Definition IntersectionVisitor:81
osgUtil::Intersector::containsIntersections
virtual bool containsIntersections()=0
osgUtil::Intersector::IntersectionLimit
IntersectionLimit
Definition IntersectionVisitor:46
osgUtil::Intersector::NO_LIMIT
@ NO_LIMIT
Definition IntersectionVisitor:47
osgUtil::Intersector::LIMIT_ONE
@ LIMIT_ONE
Definition IntersectionVisitor:49
osgUtil::Intersector::LIMIT_ONE_PER_DRAWABLE
@ LIMIT_ONE_PER_DRAWABLE
Definition IntersectionVisitor:48
osgUtil::Intersector::LIMIT_NEAREST
@ LIMIT_NEAREST
Definition IntersectionVisitor:50
osgUtil::Intersector::_disabledCount
unsigned int _disabledCount
Definition IntersectionVisitor:104
osgUtil::Intersector::setCoordinateFrame
void setCoordinateFrame(CoordinateFrame cf)
Definition IntersectionVisitor:59
osgUtil::Intersector::PrecisionHint
PrecisionHint
Definition IntersectionVisitor:89
osgUtil::Intersector::USE_FLOAT_CALCULATIONS
@ USE_FLOAT_CALCULATIONS
Definition IntersectionVisitor:91
osgUtil::Intersector::USE_DOUBLE_CALCULATIONS
@ USE_DOUBLE_CALCULATIONS
Definition IntersectionVisitor:90
osgUtil::Intersector::disabled
bool disabled() const
Definition IntersectionVisitor:79
osgUtil::Intersector::CoordinateFrame
CoordinateFrame
Definition IntersectionVisitor:38
osgUtil::Intersector::WINDOW
@ WINDOW
Definition IntersectionVisitor:39
osgUtil::Intersector::MODEL
@ MODEL
Definition IntersectionVisitor:42
osgUtil::Intersector::VIEW
@ VIEW
Definition IntersectionVisitor:41
osgUtil::Intersector::PROJECTION
@ PROJECTION
Definition IntersectionVisitor:40
osgUtil::Intersector::decrementDisabledCount
void decrementDisabledCount()
Definition IntersectionVisitor:83
osgUtil::Intersector::_intersectionLimit
IntersectionLimit _intersectionLimit
Definition IntersectionVisitor:103
osgUtil::Intersector::getCoordinateFrame
CoordinateFrame getCoordinateFrame() const
Definition IntersectionVisitor:61
osgUtil::Intersector::enter
virtual bool enter(const osg::Node &node)=0
osgUtil::Intersector::getPrecisionHint
PrecisionHint getPrecisionHint() const
Definition IntersectionVisitor:98
osgUtil::Intersector::getIntersectionLimit
IntersectionLimit getIntersectionLimit() const
Definition IntersectionVisitor:65
osgUtil::Intersector::setPrecisionHint
void setPrecisionHint(PrecisionHint hint)
Definition IntersectionVisitor:95
osgUtil::Intersector::_precisionHint
PrecisionHint _precisionHint
Definition IntersectionVisitor:105
osgUtil::Intersector::setIntersectionLimit
void setIntersectionLimit(IntersectionLimit limit)
Definition IntersectionVisitor:63
osgUtil::Intersector::Intersector
Intersector(CoordinateFrame cf=MODEL, IntersectionLimit il=NO_LIMIT)
Definition IntersectionVisitor:53
osg::Billboard
Definition Billboard:27
osg::Camera
Definition Camera:45
osg::Drawable
Definition Drawable:89
osg::Geode
Definition Geode:29
osg::Group
Definition Group:29
osg::LOD
Definition LOD:36
osg::NodeVisitor
Definition NodeVisitor:82
osg::Node
Definition Node:72
osg::PagedLOD
Definition PagedLOD:24
osg::Projection
Definition Projection:25
osg::Referenced
Definition Referenced:44
osg::Transform
Definition Transform:75
osg::Viewport
Definition Viewport:24
osg::Viewport::computeWindowMatrix
const osg::Matrix computeWindowMatrix() const
Definition Viewport:129
osg::ref_ptr
Definition ref_ptr:32
osgUtil
Definition NodeVisitor:25
osg::Vec3
Vec3f Vec3
Definition Vec3:21
osg::RefMatrix
RefMatrixd RefMatrix
Definition Matrix:28
Export
OSGUTIL_EXPORT
#define OSGUTIL_EXPORT
Definition osgUtil/Export:40
osgUtil::IntersectionVisitor::ReadCallback
Definition IntersectionVisitor:161
osgUtil::IntersectionVisitor::ReadCallback::readNodeFile
virtual osg::ref_ptr< osg::Node > readNodeFile(const std::string &filename)=0