PolyVox
0.2.1
Open source voxel management library
|
#include <SimpleVolume.h>
Definition at line 82 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 35 of file SimpleVolumeSampler.inl.
PolyVox::SimpleVolume< VoxelType >::Sampler::~Sampler | ( | ) |
Definition at line 41 of file SimpleVolumeSampler.inl.
VoxelType PolyVox::SimpleVolume< VoxelType >::Sampler::getSubSampledVoxel | ( | uint8_t | uLevel | ) | const |
Definition at line 61 of file SimpleVolumeSampler.inl.
|
inline |
Get the value of the current voxel.
Definition at line 102 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 227 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::moveNegativeY | ( | void | ) |
Decrease the y position by 1.
Definition at line 243 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::moveNegativeZ | ( | void | ) |
Decrease the z position by 1.
Definition at line 259 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::movePositiveX | ( | void | ) |
Increase the x position by 1.
Definition at line 179 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::movePositiveY | ( | void | ) |
Increase the y position by 1.
Definition at line 195 of file SimpleVolumeSampler.inl.
void PolyVox::SimpleVolume< VoxelType >::Sampler::movePositiveZ | ( | void | ) |
Increase the z position by 1.
Definition at line 211 of file SimpleVolumeSampler.inl.
SimpleVolume< VoxelType >::Sampler & PolyVox::SimpleVolume< VoxelType >::Sampler::operator= | ( | const Sampler & | rhs | ) |
Definition at line 46 of file SimpleVolumeSampler.inl.
|
inline |
Definition at line 407 of file SimpleVolumeSampler.inl.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void PolyVox::SimpleVolume< VoxelType >::Sampler::setPosition | ( | const Vector3DInt32 & | v3dNewPos | ) |
Set the current voxel position.
v3dNewPos | The position to set to |
Definition at line 111 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 122 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 162 of file SimpleVolumeSampler.inl.