PolyVox
0.3.0-dev
Open source voxel management library
|
#include <Block.h>
Public Member Functions | |
Block (uint16_t uSideLength=0) | |
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 | initialise (uint16_t uSideLength) |
uint32_t | calculateSizeInBytes (void) |
void | compress (Compressor *pCompressor) |
void | uncompress (Compressor *pCompressor) |
PolyVox::Block< VoxelType >::Block | ( | uint16_t | uSideLength = 0 | ) |
uint32_t PolyVox::Block< VoxelType >::calculateSizeInBytes | ( | void | ) |
void PolyVox::Block< VoxelType >::compress | ( | Compressor * | pCompressor | ) |
uint16_t PolyVox::Block< VoxelType >::getSideLength | ( | void | ) | const |
VoxelType PolyVox::Block< VoxelType >::getVoxelAt | ( | uint16_t | uXPos, |
uint16_t | uYPos, | ||
uint16_t | uZPos | ||
) | const |
Definition at line 61 of file Block.inl.
Referenced by PolyVox::LargeVolume< VoxelType >::getVoxel(), and PolyVox::LargeVolume< VoxelType >::getVoxelAt().
VoxelType PolyVox::Block< VoxelType >::getVoxelAt | ( | const Vector3DUint16 & | v3dPos | ) | const |
void PolyVox::Block< VoxelType >::initialise | ( | uint16_t | uSideLength | ) |
Definition at line 109 of file Block.inl.
Referenced by PolyVox::Block< VoxelType >::Block().
void PolyVox::Block< VoxelType >::setVoxelAt | ( | uint16_t | uXPos, |
uint16_t | uYPos, | ||
uint16_t | uZPos, | ||
VoxelType | tValue | ||
) |
Definition at line 84 of file Block.inl.
Referenced by PolyVox::LargeVolume< VoxelType >::setVoxelAt().
void PolyVox::Block< VoxelType >::setVoxelAt | ( | const Vector3DUint16 & | v3dPos, |
VoxelType | tValue | ||
) |
void PolyVox::Block< VoxelType >::uncompress | ( | Compressor * | pCompressor | ) |
bool PolyVox::Block< VoxelType >::m_bIsCompressed |
bool PolyVox::Block< VoxelType >::m_bIsUncompressedDataModified |
uint8_t* PolyVox::Block< VoxelType >::m_pCompressedData |
VoxelType* PolyVox::Block< VoxelType >::m_tUncompressedData |
Definition at line 70 of file Block.h.
Referenced by PolyVox::LargeVolume< VoxelType >::Sampler::setPosition().
uint32_t PolyVox::Block< VoxelType >::m_uCompressedDataLength |
uint16_t PolyVox::Block< VoxelType >::m_uSideLength |
uint8_t PolyVox::Block< VoxelType >::m_uSideLengthPower |