TriangleBSPCoreT< BSPTraits > Class Template Reference

Inheritance diagram for TriangleBSPCoreT< BSPTraits >:
Inheritance graph
[legend]
Collaboration diagram for TriangleBSPCoreT< BSPTraits >:
Collaboration graph
[legend]

List of all members.

Classes

struct  Node

Public Types

typedef BSPTraits Traits
typedef BSPTraits::Point Point
typedef BSPTraits::Handle Handle
typedef Point::value_type Scalar
typedef ACG::Geometry::PlaneT
< Scalar > 
Plane
typedef std::vector< Handle > Handles
typedef Handles::iterator HandleIter

Public Member Functions

 TriangleBSPCoreT (const BSPTraits &_traits)
 ~TriangleBSPCoreT ()
 Destructor.
void reserve (unsigned int _n)
 Reserve memory for _n entries.
void push_back (Handle _h)
 Add a handle to the BSP.
void build (unsigned int _max_handles, unsigned int _max_depth)
 Finally build the tree.

Protected Attributes

BSPTraits traits_
Handles handles_
Noderoot_

Private Member Functions

void _build (Node *_node, unsigned int _max_handles, unsigned int _depth)

Detailed Description

template<class BSPTraits>
class TriangleBSPCoreT< BSPTraits >

Definition at line 68 of file TriangleBSPCoreT.hh.


Constructor & Destructor Documentation

template<class BSPTraits>
TriangleBSPCoreT< BSPTraits >::TriangleBSPCoreT ( const BSPTraits &  _traits  )  [inline]

Constructor: need traits that define the types and give us the points by traits_.point(PointHandle)

Definition at line 87 of file TriangleBSPCoreT.hh.


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

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .