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

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

#include <Material.h>

List of all members.

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 45 of file Material.h.


Constructor & Destructor Documentation

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

Definition at line 48 of file Material.h.

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

Definition at line 49 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 62 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 56 of file Material.h.

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>
void PolyVox::Material< Type >::setMaterial ( Type  uMaterial)
inline

Set the material value of the voxel.

Parameters:
uMaterialThe material to set to

Definition at line 68 of file Material.h.


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