H3D API  2.4.1
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
H3D::TransformedBoxBound Class Reference

A TransformedBoxBound is a wrapper around another BoxBound and its values are the values of the BoxBound transformed by a transformation matrix. More...

#include <H3D/Bound.h>

Inheritance diagram for H3D::TransformedBoxBound:
Inheritance graph

Classes

class  Center
 The Center field updates itself from the boxBound and matrix fields. More...
 
class  Size
 The Size field updates itself from the boxBound and matrix fields. More...
 

Public Types

typedef RefCountSField< BoxBoundSFBoxBound
 The BoxBound object is reference counted by the field.
 

Public Member Functions

 TransformedBoxBound (Inst< Center > _center=0, Inst< Size > _size=0, Inst< SFMatrix4f > _matrix=0, Inst< SFBoxBound > _boxBound=0)
 Constructor.
 
- Public Member Functions inherited from H3D::BoxBound
 BoxBound (Inst< SFVec3f > _center=0, Inst< SFVec3f > _size=0)
 Constructor.
 
template<class InputIterator >
void fitAroundPoints (InputIterator begin, InputIterator end)
 This function sets the BoxBound to encompass all the points between the begin and end iterators. More...
 
virtual bool isInside (const Vec3f &p)
 Determines if a given point is inside the bound or not.
 
virtual bool lineSegmentIntersect (const Vec3f &from, const Vec3f &to)
 Checks a line segment for intersection with the bound. More...
 
virtual bool movingSphereIntersect (const Vec3f &from, const Vec3f &to, H3DFloat radius)
 Checks a moving sphere for intersection with the bound. More...
 
virtual Vec3f closestPoint (const Vec3f &p)
 Returns the closest point on the bound to the given point.
 
virtual void render ()
 Render the outline of the bound with OpenGL.
 

Public Attributes

H3DUniquePtr< SFMatrix4fmatrix
 The matrix to transform with.
 
H3DUniquePtr< SFBoxBoundboxBound
 The BoxBound which values are to be transformed.
 
- Public Attributes inherited from H3D::BoxBound
H3DUniquePtr< SFVec3fcenter
 The center point of the bounding box.
 
H3DUniquePtr< SFVec3fsize
 The size of the bounding box.
 

Additional Inherited Members

- Static Public Member Functions inherited from H3D::Bound
template<class Iterator >
static BoundboundUnion (Iterator begin, Iterator end)
 Returns a Bound that is the union between all the bounds specified by the iterators. More...
 
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

A TransformedBoxBound is a wrapper around another BoxBound and its values are the values of the BoxBound transformed by a transformation matrix.


The documentation for this class was generated from the following file: