VVoxel Class Reference

#include <VVoxel.h>

List of all members.

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


Detailed Description

class representing a Voxel

Definition at line 11 of file VVoxel.h.


Constructor & Destructor Documentation

VVoxel::VVoxel (  )  [inline]

default constructor

Definition at line 18 of file VVoxel.h.

VVoxel::VVoxel ( float  voxelData  )  [inline]

constructor with given voxelData

Parameters:
voxelData float containing the VoxelData

Definition at line 26 of file VVoxel.h.

VVoxel::VVoxel ( float  voxelData,
VVector  gradient 
) [inline]

Definition at line 30 of file VVoxel.h.

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

Parameters:
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.


Member Function Documentation

float VVoxel::getData (  )  [inline]

returns the voxelData

Returns:
Value of m_VoxelData

Definition at line 183 of file VVoxel.h.

References m_VoxelData.

float VVoxel::getGradientMagnitude (  )  [inline]

returns the GradientMagnitude

Returns:
float containing the Magnitude

Definition at line 192 of file VVoxel.h.

References VVector::getMagnitude(), and m_Gradient.

float* VVoxel::getDataPtr (  )  [inline]

returns a Pointer to the Voxeldensity

Returns:
float * with density

Definition at line 201 of file VVoxel.h.

References m_VoxelData.

float* VVoxel::getGradientPtr (  )  [inline]

gets a Pointer to the Gradient

Returns:
float Ptr to first gradient Object.

Definition at line 210 of file VVoxel.h.

References VVector::getPtr(), and m_Gradient.

VVector VVoxel::getGradient (  )  [inline]

gets the Gradient Object

Returns:
VVector containing the Gradient

Definition at line 219 of file VVoxel.h.

References m_Gradient.

void VVoxel::setGradient ( VVector  gradient  )  [inline]

sets the Gradient

Parameters:
gradient VVector containing the Gradient

Definition at line 228 of file VVoxel.h.

References m_Gradient.


Member Data Documentation

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().


The documentation for this class was generated from the following file:
Generated on Mon Jan 21 01:15:17 2008 for FlowVis by  doxygen 1.5.4