#include <VVoxel.h>
Public Member Functions | |
| VVoxel () | |
| VVoxel (float voxelData) | |
| VVoxel (float voxelData, VVector gradient) | |
| VVoxel (float *samplesNegZOffset, float *samplesNoZOffset, float *samplesPosZOffset) | |
| float | getData () |
| float | getGradientMagnitude () |
| float * | getDataPtr () |
| float * | getGradientPtr () |
| VVector | getGradient () |
| void | setGradient (VVector gradient) |
Private Attributes | |
| float | m_VoxelData |
| VVector | m_Gradient |
Definition at line 11 of file VVoxel.h.
| VVoxel::VVoxel | ( | float | voxelData | ) | [inline] |
| VVoxel::VVoxel | ( | float | voxelData, | |
| VVector | gradient | |||
| ) | [inline] |
| VVoxel::VVoxel | ( | float * | samplesNegZOffset, | |
| float * | samplesNoZOffset, | |||
| float * | samplesPosZOffset | |||
| ) | [inline] |
constructor with 27 values for interpolating density and gradient. Original code taken from stefan bruckners framework
| samplesNegZOffset | samples with offset 1 in neg z direction from the current position | |
| samplesNoZOffset | samples with no offset in z direction | |
| samplesPosZOffset | samples with offset 1 in pos z direction |
Definition at line 41 of file VVoxel.h.
References m_Gradient, and m_VoxelData.
| float VVoxel::getData | ( | ) | [inline] |
returns the voxelData
Definition at line 183 of file VVoxel.h.
References m_VoxelData.
| float VVoxel::getGradientMagnitude | ( | ) | [inline] |
returns the GradientMagnitude
Definition at line 192 of file VVoxel.h.
References VVector::getMagnitude(), and m_Gradient.
| float* VVoxel::getDataPtr | ( | ) | [inline] |
returns a Pointer to the Voxeldensity
Definition at line 201 of file VVoxel.h.
References m_VoxelData.
| float* VVoxel::getGradientPtr | ( | ) | [inline] |
gets a Pointer to the Gradient
Definition at line 210 of file VVoxel.h.
References VVector::getPtr(), and m_Gradient.
| VVector VVoxel::getGradient | ( | ) | [inline] |
gets the Gradient Object
Definition at line 219 of file VVoxel.h.
References m_Gradient.
| void VVoxel::setGradient | ( | VVector | gradient | ) | [inline] |
sets the Gradient
| gradient | VVector containing the Gradient |
Definition at line 228 of file VVoxel.h.
References m_Gradient.
float VVoxel::m_VoxelData [private] |
VoxelData scaled in [0, 1].
Definition at line 234 of file VVoxel.h.
Referenced by getData(), getDataPtr(), and VVoxel().
VVector VVoxel::m_Gradient [private] |
Gradient at Voxel.
Definition at line 235 of file VVoxel.h.
Referenced by getGradient(), getGradientMagnitude(), getGradientPtr(), setGradient(), and VVoxel().
1.5.4