All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
fcl::BVFitter< BV > Class Template Reference

The class for the default algorithm fitting a bounding volume to a set of points. More...

#include <BV_fitter.h>

Inheritance diagram for fcl::BVFitter< BV >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void clear ()
 Clear the geometry primitive data.
BV fit (unsigned int *primitive_indices, int num_primitives)
 Compute a bounding volume that fits a set of primitives (points or triangles). The primitive data was set by set function and primitive_indices is the primitive index relative to the data.
void set (Vec3f *vertices_, Triangle *tri_indices_, BVHModelType type_)
 Prepare the geometry primitive data for fitting.
void set (Vec3f *vertices_, Vec3f *prev_vertices_, Triangle *tri_indices_, BVHModelType type_)
 Prepare the geometry primitive data for fitting, for deformable mesh.
virtual ~BVFitter ()
 default deconstructor

Private Attributes

Vec3fprev_vertices
Triangletri_indices
BVHModelType type
Vec3fvertices

Detailed Description

template<typename BV>
class fcl::BVFitter< BV >

The class for the default algorithm fitting a bounding volume to a set of points.

Definition at line 92 of file BV_fitter.h.


Constructor & Destructor Documentation

template<typename BV >
virtual fcl::BVFitter< BV >::~BVFitter ( ) [inline, virtual]

default deconstructor

Definition at line 96 of file BV_fitter.h.


Member Function Documentation

template<typename BV >
void fcl::BVFitter< BV >::clear ( ) [inline, virtual]

Clear the geometry primitive data.

Implements fcl::BVFitterBase< BV >.

Definition at line 156 of file BV_fitter.h.

template<typename BV >
BV fcl::BVFitter< BV >::fit ( unsigned int *  primitive_indices,
int  num_primitives 
) [inline, virtual]

Compute a bounding volume that fits a set of primitives (points or triangles). The primitive data was set by set function and primitive_indices is the primitive index relative to the data.

The primitive is triangle

can fitting both current and previous frame

The primitive is point

can fitting both current and previous frame

Implements fcl::BVFitterBase< BV >.

Definition at line 118 of file BV_fitter.h.

template<typename BV >
void fcl::BVFitter< BV >::set ( Vec3f vertices_,
Triangle tri_indices_,
BVHModelType  type_ 
) [inline, virtual]

Prepare the geometry primitive data for fitting.

Implements fcl::BVFitterBase< BV >.

Definition at line 99 of file BV_fitter.h.

template<typename BV >
void fcl::BVFitter< BV >::set ( Vec3f vertices_,
Vec3f prev_vertices_,
Triangle tri_indices_,
BVHModelType  type_ 
) [inline, virtual]

Prepare the geometry primitive data for fitting, for deformable mesh.

Implements fcl::BVFitterBase< BV >.

Definition at line 108 of file BV_fitter.h.


Member Data Documentation

template<typename BV >
Vec3f* fcl::BVFitter< BV >::prev_vertices [private]

Definition at line 167 of file BV_fitter.h.

template<typename BV >
Triangle* fcl::BVFitter< BV >::tri_indices [private]

Definition at line 168 of file BV_fitter.h.

template<typename BV >
BVHModelType fcl::BVFitter< BV >::type [private]

Definition at line 169 of file BV_fitter.h.

template<typename BV >
Vec3f* fcl::BVFitter< BV >::vertices [private]

Definition at line 166 of file BV_fitter.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


fcl
Author(s): Jia Pan
autogenerated on Tue Jan 15 2013 16:05:31