H3D::Bound Class Reference

The Bound class is the abstract base class for all classes specifying bounding objects. More...

#include <Bound.h>

Inheritance diagram for H3D::Bound:

Inheritance graph
List of all members.

Public Member Functions

virtual bool isInside (const Vec3f &p)=0
 Determines if a given point is inside the bound or not.
virtual bool lineSegmentIntersect (const Vec3f &from, const Vec3f &to)=0
 Checks a line segment for intersection with the bound.
virtual Vec3f closestPoint (const Vec3f &p)=0

Static Public Member Functions

template<class Iterator>
static BoundboundUnion (Iterator begin, Iterator end)
 Returns a Bound that is the union between all the bounds specified by the iterators.
template<class Iterator>
static BoundSFBoundUnion (Iterator begin, Iterator end)
 Returns a Bound that is the union between the Bound objects in the SFBound fields specified by the iterators.

Detailed Description

The Bound class is the abstract base class for all classes specifying bounding objects.


Member Function Documentation

template<class Iterator>
Bound * H3D::Bound::boundUnion Iterator  begin,
Iterator  end
[inline, static]
 

Returns a Bound that is the union between all the bounds specified by the iterators.

Iterator is a iterator to a Bound.

virtual bool H3D::Bound::lineSegmentIntersect const Vec3f from,
const Vec3f to
[pure virtual]
 

Checks a line segment for intersection with the bound.

If line intersects, true is returned.

Implemented in H3D::InfiniteBound, H3D::EmptyBound, and H3D::BoxBound.


Generated on Thu Aug 24 12:38:51 2006 for H3D API by  doxygen 1.4.5