PolyVox  0.2.1
Open source voxel management library
Public Member Functions | Public Attributes
PolyVox::SimpleVolume< VoxelType >::Block Class Reference

#include <SimpleVolume.h>

+ Collaboration diagram for PolyVox::SimpleVolume< VoxelType >::Block:

List of all members.

Public Member Functions

 Block (uint16_t uSideLength=0)
 ~Block ()
uint16_t getSideLength (void) const
VoxelType getVoxelAt (uint16_t uXPos, uint16_t uYPos, uint16_t uZPos) const
VoxelType getVoxelAt (const Vector3DUint16 &v3dPos) const
void setVoxelAt (uint16_t uXPos, uint16_t uYPos, uint16_t uZPos, VoxelType tValue)
void setVoxelAt (const Vector3DUint16 &v3dPos, VoxelType tValue)
void fill (VoxelType tValue)
void initialise (uint16_t uSideLength)
uint32_t calculateSizeInBytes (void)

Public Attributes

VoxelTypem_tUncompressedData
uint16_t m_uSideLength
uint8_t m_uSideLengthPower

Detailed Description

template<typename VoxelType>
class PolyVox::SimpleVolume< VoxelType >::Block

Definition at line 49 of file SimpleVolume.h.


Constructor & Destructor Documentation

template<typename VoxelType >
PolyVox::SimpleVolume< VoxelType >::Block::Block ( uint16_t  uSideLength = 0)

Definition at line 27 of file SimpleVolumeBlock.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
PolyVox::SimpleVolume< VoxelType >::Block::~Block ( )

Definition at line 39 of file SimpleVolumeBlock.inl.


Member Function Documentation

template<typename VoxelType >
uint32_t PolyVox::SimpleVolume< VoxelType >::Block::calculateSizeInBytes ( void  )

Definition at line 125 of file SimpleVolumeBlock.inl.

template<typename VoxelType >
void PolyVox::SimpleVolume< VoxelType >::Block::fill ( VoxelType  tValue)

Definition at line 97 of file SimpleVolumeBlock.inl.

template<typename VoxelType >
uint16_t PolyVox::SimpleVolume< VoxelType >::Block::getSideLength ( void  ) const

Definition at line 45 of file SimpleVolumeBlock.inl.

template<typename VoxelType >
VoxelType PolyVox::SimpleVolume< VoxelType >::Block::getVoxelAt ( uint16_t  uXPos,
uint16_t  uYPos,
uint16_t  uZPos 
) const
template<typename VoxelType >
VoxelType PolyVox::SimpleVolume< VoxelType >::Block::getVoxelAt ( const Vector3DUint16 v3dPos) const

Definition at line 68 of file SimpleVolumeBlock.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
void PolyVox::SimpleVolume< VoxelType >::Block::initialise ( uint16_t  uSideLength)

Definition at line 104 of file SimpleVolumeBlock.inl.

Referenced by PolyVox::SimpleVolume< VoxelType >::Block::Block().

+ Here is the call graph for this function:

template<typename VoxelType >
void PolyVox::SimpleVolume< VoxelType >::Block::setVoxelAt ( uint16_t  uXPos,
uint16_t  uYPos,
uint16_t  uZPos,
VoxelType  tValue 
)

Definition at line 74 of file SimpleVolumeBlock.inl.

template<typename VoxelType >
void PolyVox::SimpleVolume< VoxelType >::Block::setVoxelAt ( const Vector3DUint16 v3dPos,
VoxelType  tValue 
)

Definition at line 91 of file SimpleVolumeBlock.inl.

+ Here is the call graph for this function:


Member Data Documentation

template<typename VoxelType>
VoxelType* PolyVox::SimpleVolume< VoxelType >::Block::m_tUncompressedData
template<typename VoxelType>
uint16_t PolyVox::SimpleVolume< VoxelType >::Block::m_uSideLength

Definition at line 68 of file SimpleVolume.h.

template<typename VoxelType>
uint8_t PolyVox::SimpleVolume< VoxelType >::Block::m_uSideLengthPower

Definition at line 69 of file SimpleVolume.h.


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