Public Member Functions | Static Public Member Functions

PolyVox::Density< DensityType > Class Template Reference

This class represents a voxel storing only a density. More...

#include <Density.h>

Collaboration diagram for PolyVox::Density< DensityType >:

List of all members.

Public Member Functions

 Density ()
 Density (DensityType uDensity)
bool operator== (const Density &rhs) const throw ()
bool operator!= (const Density &rhs) const throw ()
DensityType getDensity () const throw ()
uint32_t getMaterial () const throw ()
void setDensity (DensityType uDensity)
void setMaterial (uint32_t uMaterial)

Static Public Member Functions

static DensityType getMaxDensity () throw ()
static DensityType getMinDensity () throw ()
static DensityType getThreshold () throw ()

Detailed Description

template<typename DensityType>
class PolyVox::Density< DensityType >

This class represents a voxel storing only a density.

In order to perform a surface extraction on a LargeVolume, PolyVox needs the underlying voxel type to provide both getDensity() and getMaterial() functions. The getDensity() function is used to determine if a voxel is 'solid', and if it is then the getMaterial() funtion is used to determine what material should be assigned to the resulting mesh.

This class meets these requirements, although it only actually stores a density value. For the getMaterial() function it just returens a constant value of '1'.

See also:
Material, MaterialDensityPair

Definition at line 47 of file Density.h.


Constructor & Destructor Documentation

template<typename DensityType >
PolyVox::Density< DensityType >::Density (  )  [inline]

Definition at line 50 of file Density.h.

template<typename DensityType >
PolyVox::Density< DensityType >::Density ( DensityType  uDensity  )  [inline]

Definition at line 51 of file Density.h.


Member Function Documentation

template<typename DensityType >
DensityType PolyVox::Density< DensityType >::getDensity (  )  const throw () [inline]

Definition at line 63 of file Density.h.

template<typename DensityType >
uint32_t PolyVox::Density< DensityType >::getMaterial (  )  const throw () [inline]

Definition at line 64 of file Density.h.

template<typename DensityType >
static DensityType PolyVox::Density< DensityType >::getMaxDensity (  )  throw () [inline, static]

Definition at line 69 of file Density.h.

template<typename DensityType >
static DensityType PolyVox::Density< DensityType >::getMinDensity (  )  throw () [inline, static]

Definition at line 70 of file Density.h.

template<typename DensityType >
static DensityType PolyVox::Density< DensityType >::getThreshold (  )  throw () [inline, static]

Definition at line 71 of file Density.h.

template<typename DensityType >
bool PolyVox::Density< DensityType >::operator!= ( const Density< DensityType > &  rhs  )  const throw () [inline]

Definition at line 58 of file Density.h.

template<typename DensityType >
bool PolyVox::Density< DensityType >::operator== ( const Density< DensityType > &  rhs  )  const throw () [inline]

Definition at line 53 of file Density.h.

template<typename DensityType >
void PolyVox::Density< DensityType >::setDensity ( DensityType  uDensity  )  [inline]

Definition at line 66 of file Density.h.

template<typename DensityType >
void PolyVox::Density< DensityType >::setMaterial ( uint32_t  uMaterial  )  [inline]

Definition at line 67 of file Density.h.


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