openscenegraph
|
Classes | |
struct | Intersection |
Public Types | |
typedef std::multiset< Intersection > | Intersections |
![]() | |
enum | CoordinateFrame { WINDOW, PROJECTION, VIEW, MODEL } |
enum | IntersectionLimit { NO_LIMIT, LIMIT_ONE_PER_DRAWABLE, LIMIT_ONE, LIMIT_NEAREST } |
Protected Member Functions | |
bool | intersects (const osg::BoundingSphere &bs) |
bool | intersectAndClip (osg::Vec3d &s, osg::Vec3d &e, const osg::BoundingBox &bb) |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
LineSegmentIntersector * | _parent |
osg::Vec3d | _start |
osg::Vec3d | _end |
Intersections | _intersections |
![]() | |
CoordinateFrame | _coordinateFrame |
IntersectionLimit | _intersectionLimit |
unsigned int | _disabledCount |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
Concrete class for implementing line intersections with the scene graph. To be used in conjunction with IntersectionVisitor.
typedef std::multiset<Intersection> osgUtil::LineSegmentIntersector::Intersections |
osgUtil::LineSegmentIntersector::LineSegmentIntersector | ( | const osg::Vec3d & | start, |
const osg::Vec3d & | end | ||
) |
Construct a LineSegmentIntersector the runs between the specified start and end points in MODEL coordinates.
osgUtil::LineSegmentIntersector::LineSegmentIntersector | ( | CoordinateFrame | cf, |
const osg::Vec3d & | start, | ||
const osg::Vec3d & | end | ||
) |
Construct a LineSegmentIntersector the runs between the specified start and end points in the specified coordinate frame.
osgUtil::LineSegmentIntersector::LineSegmentIntersector | ( | CoordinateFrame | cf, |
double | x, | ||
double | y | ||
) |
Convenience constructor for supporting picking in WINDOW, or PROJECTION coordinates In WINDOW coordinates creates a start value of (x,y,0) and end value of (x,y,1). In PROJECTION coordinates (clip space cube) creates a start value of (x,y,-1) and end value of (x,y,1). In VIEW and MODEL coordinates creates a start value of (x,y,0) and end value of (x,y,1).
|
virtual |
Implements osgUtil::Intersector.
|
inlinevirtual |
Implements osgUtil::Intersector.
|
virtual |
Implements osgUtil::Intersector.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Implements osgUtil::Intersector.
|
protected |
|
protected |
|
virtual |
Implements osgUtil::Intersector.
|
virtual |
Reimplemented from osgUtil::Intersector.
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |