PolyVox
0.3.0-dev
Open source voxel management library
|
#include <SimpleVolume.h>
Definition at line 81 of file SimpleVolume.h.
PolyVox::SimpleVolume< VoxelType >::Sampler::Sampler | ( | SimpleVolume< VoxelType > * | volume | ) |
Construct a new Sampler.
volume | The SimpleVolume you want to sample |
Definition at line 37 of file SimpleVolumeSampler.inl.
PolyVox::SimpleVolume< VoxelType >::Sampler::~Sampler | ( | ) |
Definition at line 43 of file SimpleVolumeSampler.inl.
VoxelType PolyVox::SimpleVolume< VoxelType >::Sampler::getSubSampledVoxel | ( | uint8_t | uLevel | ) | const |
|
inline |
Get the value of the current voxel.
Definition at line 89 of file SimpleVolumeSampler.inl.
Referenced by PolyVox::AmbientOcclusionCalculatorRaycastCallback< IsVoxelTransparentCallback >::operator()().
void PolyVox::SimpleVolume< VoxelType >::Sampler::moveNegativeX | ( | void | ) |
Decrease the x position by 1.
Definition at line 236 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::moveNegativeY | ( | void | ) |
Decrease the y position by 1.
Definition at line 258 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::moveNegativeZ | ( | void | ) |
Decrease the z position by 1.
Definition at line 280 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::movePositiveX | ( | void | ) |
Increase the x position by 1.
Definition at line 170 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::movePositiveY | ( | void | ) |
Increase the y position by 1.
Definition at line 192 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::movePositiveZ | ( | void | ) |
Increase the z position by 1.
Definition at line 214 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 434 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 424 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 444 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 404 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 394 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 414 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 464 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 454 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 474 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 342 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 332 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 352 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 312 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 302 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 322 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 372 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 362 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 382 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 526 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 516 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 536 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 496 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 486 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 506 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 556 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 546 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 566 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::setPosition | ( | const Vector3DInt32 & | v3dNewPos | ) |
Set the current voxel position.
v3dNewPos | The position to set to |
Definition at line 105 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::setPosition | ( | int32_t | xPos, |
int32_t | yPos, | ||
int32_t | zPos | ||
) |
Set the current voxel position.
xPos | The x position to set to |
yPos | The y position to set to |
zPos | The z position to set to |
Definition at line 116 of file SimpleVolumeSampler.inl.
|
inline |
Set the value of the current voxel.
This function checks that the current voxel position that you're trying to set is not outside the volume. If it is, this function returns false, otherwise it will return true.
tValue | The value to set to voxel to |
Definition at line 156 of file SimpleVolumeSampler.inl.