Classes | Public Member Functions | Public Attributes
ApproxMVBB::AABB< Dim > Class Template Reference

#include <AABB.hpp>

List of all members.

Classes

struct  reset_impl
struct  reset_impl< 0, dummy >
struct  unite_impl
struct  unite_impl< 0, dummy >
struct  uniteBox_impl
struct  uniteBox_impl< 0, dummy >

Public Member Functions

 AABB ()
 AABB (const VectorStat< Dim > &p)
 AABB (const VectorStat< Dim > &l, const VectorStat< Dim > &u)
VectorStat< Dim > center ()
void expand (PREC d)
void expand (VectorStat< Dim > d)
template<bool MoveMax>
void expandToMaxExtent (const unsigned int &axis)
void expandToMaxExtent ()
void expandToMinExtentAbsolute (PREC minExtent)
void expandToMinExtentAbsolute (ArrayStat< Dim > minExtent)
void expandToMinExtentRelative (PREC p, PREC defaultExtent, PREC eps)
ArrayStat< Dim > extent () const
bool isEmpty () const
PREC maxExtent () const
AABB operator+ (const AABB &box)
template<typename Derived >
AABBoperator+= (const MatrixBase< Derived > &p)
AABBoperator+= (const AABB &box)
bool overlaps (const AABB &box) const
template<typename Derived >
bool overlaps (const MatrixBase< Derived > &p) const
bool overlapsSubSpace (const AABB &box, unsigned int fixedAxis) const
void reset ()
AABBtransform (const AffineTrafo &M)
template<typename Derived >
AABBunite (const MatrixBase< Derived > &p)
void unite (const AABB &box)
PREC volume () const

Public Attributes

VectorStat< Dim > m_maxPoint
VectorStat< Dim > m_minPoint

Detailed Description

template<unsigned int Dim>
class ApproxMVBB::AABB< Dim >

Definition at line 23 of file AABB.hpp.


Constructor & Destructor Documentation

template<unsigned int Dim>
ApproxMVBB::AABB< Dim >::AABB ( ) [inline]

Definition at line 78 of file AABB.hpp.

template<unsigned int Dim>
ApproxMVBB::AABB< Dim >::AABB ( const VectorStat< Dim > &  p) [inline]

Definition at line 85 of file AABB.hpp.

template<unsigned int Dim>
ApproxMVBB::AABB< Dim >::AABB ( const VectorStat< Dim > &  l,
const VectorStat< Dim > &  u 
) [inline]

Definition at line 87 of file AABB.hpp.


Member Function Documentation

template<unsigned int Dim>
VectorStat<Dim> ApproxMVBB::AABB< Dim >::center ( ) [inline]

Definition at line 138 of file AABB.hpp.

template<unsigned int Dim>
void ApproxMVBB::AABB< Dim >::expand ( PREC  d) [inline]

Definition at line 169 of file AABB.hpp.

template<unsigned int Dim>
void ApproxMVBB::AABB< Dim >::expand ( VectorStat< Dim >  d) [inline]

Definition at line 175 of file AABB.hpp.

template<unsigned int Dim>
template<bool MoveMax>
void ApproxMVBB::AABB< Dim >::expandToMaxExtent ( const unsigned int &  axis) [inline]

Expands the selected axes axis to maximal value, which simulates a box with infinite extent in this direction

Template Parameters:
MoveMaxIf true, the maximum value is moved to max value, otherwise the minimum value is moved to lowest.

Definition at line 235 of file AABB.hpp.

template<unsigned int Dim>
void ApproxMVBB::AABB< Dim >::expandToMaxExtent ( ) [inline]

Definition at line 244 of file AABB.hpp.

template<unsigned int Dim>
void ApproxMVBB::AABB< Dim >::expandToMinExtentAbsolute ( PREC  minExtent) [inline]

Adjust box that all axes have at least a minimal extent minExtent

Definition at line 203 of file AABB.hpp.

template<unsigned int Dim>
void ApproxMVBB::AABB< Dim >::expandToMinExtentAbsolute ( ArrayStat< Dim >  minExtent) [inline]

Adjust box that all axes have at least a minimal extent minExtent for each axis

Definition at line 217 of file AABB.hpp.

template<unsigned int Dim>
void ApproxMVBB::AABB< Dim >::expandToMinExtentRelative ( PREC  p,
PREC  defaultExtent,
PREC  eps 
) [inline]

Adjust box that all axes have at least a minimal extent of maxExtent*p, if maxExtent*p < eps then all axes to default extent

Definition at line 182 of file AABB.hpp.

template<unsigned int Dim>
ArrayStat<Dim> ApproxMVBB::AABB< Dim >::extent ( ) const [inline]

Definition at line 155 of file AABB.hpp.

template<unsigned int Dim>
bool ApproxMVBB::AABB< Dim >::isEmpty ( ) const [inline]

Definition at line 165 of file AABB.hpp.

template<unsigned int Dim>
PREC ApproxMVBB::AABB< Dim >::maxExtent ( ) const [inline]

Definition at line 161 of file AABB.hpp.

template<unsigned int Dim>
AABB ApproxMVBB::AABB< Dim >::operator+ ( const AABB< Dim > &  box) [inline]

Definition at line 117 of file AABB.hpp.

template<unsigned int Dim>
template<typename Derived >
AABB& ApproxMVBB::AABB< Dim >::operator+= ( const MatrixBase< Derived > &  p) [inline]

Definition at line 101 of file AABB.hpp.

template<unsigned int Dim>
AABB& ApproxMVBB::AABB< Dim >::operator+= ( const AABB< Dim > &  box) [inline]

Definition at line 112 of file AABB.hpp.

template<unsigned int Dim>
bool ApproxMVBB::AABB< Dim >::overlaps ( const AABB< Dim > &  box) const [inline]

Definition at line 140 of file AABB.hpp.

template<unsigned int Dim>
template<typename Derived >
bool ApproxMVBB::AABB< Dim >::overlaps ( const MatrixBase< Derived > &  p) const [inline]

Definition at line 145 of file AABB.hpp.

template<unsigned int Dim>
bool ApproxMVBB::AABB< Dim >::overlapsSubSpace ( const AABB< Dim > &  box,
unsigned int  fixedAxis 
) const [inline]

Definition at line 149 of file AABB.hpp.

template<unsigned int Dim>
void ApproxMVBB::AABB< Dim >::reset ( ) [inline]

Definition at line 81 of file AABB.hpp.

template<unsigned int Dim>
AABB& ApproxMVBB::AABB< Dim >::transform ( const AffineTrafo &  M) [inline]

Definition at line 123 of file AABB.hpp.

template<unsigned int Dim>
template<typename Derived >
AABB& ApproxMVBB::AABB< Dim >::unite ( const MatrixBase< Derived > &  p) [inline]

Definition at line 94 of file AABB.hpp.

template<unsigned int Dim>
void ApproxMVBB::AABB< Dim >::unite ( const AABB< Dim > &  box) [inline]

Definition at line 108 of file AABB.hpp.

template<unsigned int Dim>
PREC ApproxMVBB::AABB< Dim >::volume ( ) const [inline]

Definition at line 249 of file AABB.hpp.


Member Data Documentation

template<unsigned int Dim>
VectorStat<Dim> ApproxMVBB::AABB< Dim >::m_maxPoint

Definition at line 255 of file AABB.hpp.

template<unsigned int Dim>
VectorStat<Dim> ApproxMVBB::AABB< Dim >::m_minPoint

Definition at line 254 of file AABB.hpp.


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


asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Sat Jun 8 2019 20:21:50