PolyVox  0.2.1
Open source voxel management library
Public Member Functions | Static Public Member Functions
PolyVox::Density< Type > Class Template Reference

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

#include <Density.h>

List of all members.

Public Member Functions

 Density ()
 Constructor.
 Density (Type uDensity)
 Copy constructor.
template<typename CastType >
 Density (const Density< CastType > &density)
 Copy constructor with cast.
bool operator== (const Density &rhs) const
bool operator!= (const Density &rhs) const
Density< Type > & operator+= (const Density< Type > &rhs)
Density< Type > & operator-= (const Density< Type > &rhs)
Density< Type > & operator/= (uint32_t rhs)
Type getDensity () const
void setDensity (Type uDensity)
 Set the density of the voxel.

Static Public Member Functions

static Type getMaxDensity ()
static Type getMinDensity ()

Detailed Description

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

This class represents a voxel storing only a density.

Detailed description...

Definition at line 47 of file Density.h.


Constructor & Destructor Documentation

template<typename Type>
PolyVox::Density< Type >::Density ( )
inline

Constructor.

Definition at line 51 of file Density.h.

template<typename Type>
PolyVox::Density< Type >::Density ( Type  uDensity)
inline

Copy constructor.

Definition at line 54 of file Density.h.

template<typename Type>
template<typename CastType >
PolyVox::Density< Type >::Density ( const Density< CastType > &  density)
inlineexplicit

Copy constructor with cast.

Definition at line 58 of file Density.h.

+ Here is the call graph for this function:


Member Function Documentation

template<typename Type>
Type PolyVox::Density< Type >::getDensity ( ) const
inline
Returns:
The current density of the voxel

Definition at line 96 of file Density.h.

Referenced by PolyVox::DefaultMarchingCubesController< Density< Type > >::convertToDensity(), and PolyVox::Density< Type >::Density().

template<typename Type>
static Type PolyVox::Density< Type >::getMaxDensity ( )
inlinestatic
Returns:
The maximum allowed density of the voxel

Definition at line 105 of file Density.h.

template<typename Type>
static Type PolyVox::Density< Type >::getMinDensity ( )
inlinestatic
Returns:
The minimum allowed density of the voxel

Definition at line 107 of file Density.h.

template<typename Type>
bool PolyVox::Density< Type >::operator!= ( const Density< Type > &  rhs) const
inline

Definition at line 68 of file Density.h.

template<typename Type>
Density<Type>& PolyVox::Density< Type >::operator+= ( const Density< Type > &  rhs)
inline

Definition at line 77 of file Density.h.

template<typename Type>
Density<Type>& PolyVox::Density< Type >::operator-= ( const Density< Type > &  rhs)
inline

Definition at line 83 of file Density.h.

template<typename Type>
Density<Type>& PolyVox::Density< Type >::operator/= ( uint32_t  rhs)
inline

Definition at line 89 of file Density.h.

template<typename Type>
bool PolyVox::Density< Type >::operator== ( const Density< Type > &  rhs) const
inline

Definition at line 63 of file Density.h.

template<typename Type>
void PolyVox::Density< Type >::setDensity ( Type  uDensity)
inline

Set the density of the voxel.

Parameters:
uDensityThe density to set to

Definition at line 102 of file Density.h.


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