PolyVox  0.3.0-dev
Open source voxel management library
Public Member Functions | Static Public Member Functions | List of all members
PolyVox::Density< Type > Class Template Reference

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

#include <Density.h>

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 43 of file Density.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 47 of file Density.h.

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

Copy constructor.

Definition at line 50 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 54 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 92 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 101 of file Density.h.

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

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

Definition at line 103 of file Density.h.

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

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

Definition at line 64 of file Density.h.

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

Definition at line 73 of file Density.h.

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

Definition at line 79 of file Density.h.

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

Definition at line 85 of file Density.h.

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

Definition at line 59 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 98 of file Density.h.


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