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

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

#include <Material.h>

Public Member Functions

 Material ()
 
 Material (Type uMaterial)
 
bool operator== (const Material &rhs) const
 
bool operator!= (const Material &rhs) const
 
Type getMaterial () const
 
void setMaterial (Type uMaterial)
 Set the material value of the voxel.
 

Detailed Description

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

This class represents a voxel storing only a material.

Detailed description...

See Also
Density, MaterialDensityPair

Definition at line 40 of file Material.h.

Constructor & Destructor Documentation

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

Definition at line 43 of file Material.h.

template<typename Type>
PolyVox::Material< Type >::Material ( Type  uMaterial)
inline

Definition at line 44 of file Material.h.

Member Function Documentation

template<typename Type>
Type PolyVox::Material< Type >::getMaterial ( ) const
inline
Returns
The current material value of the voxel

Definition at line 57 of file Material.h.

Referenced by PolyVox::DefaultIsQuadNeeded< Material< Type > >::operator()().

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

Definition at line 51 of file Material.h.

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

Definition at line 46 of file Material.h.

template<typename Type>
void PolyVox::Material< Type >::setMaterial ( Type  uMaterial)
inline

Set the material value of the voxel.

Parameters
uMaterialThe material to set to

Definition at line 63 of file Material.h.


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