Interface IVolumeDataAccessor
Interface to implement to share easier access to volume data within ABR.
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public interface IVolumeDataAccessor
Methods
|
Improve this Doc
View Source
GetScalarValueAtDataSpacePoint(Vector3)
Looks up the value in the original voxel data based upon a position specified in data space coordinates
(i.e., real-world units).
Declaration
float GetScalarValueAtDataSpacePoint(Vector3 dataSpacePoint)
Parameters
Type |
Name |
Description |
Vector3 |
dataSpacePoint |
|
Returns
|
Improve this Doc
View Source
GetScalarValueAtNearestVoxel(Vector3Int)
Looks up the value in the original voxel data based upon a point in voxel space. This function does
not use interpolation. It simply returns that data value stored for the center point of the closest
voxel.
Declaration
float GetScalarValueAtNearestVoxel(Vector3Int voxelCoords)
Parameters
Type |
Name |
Description |
Vector3Int |
voxelCoords |
|
Returns
|
Improve this Doc
View Source
GetScalarValueAtVoxelSpacePoint(Vector3)
Looks up the value in the original voxel data based upon a point in
voxel space. In the raw volume data each voxel contains one data
value. If we think of those being the values of the data at a point
right in the center of each voxel, then the point we are querying
will rarely align perfectly with those center points; rather, it
will fall somewhere between them. That is why the pointInVoxelSpace
is allowed to include a fractional component. This function uses
the fractional portion to perform a tri-linear interpolation of the
data from the eight surrounding voxels to estimate the data value at
the exact 3D location requested. See also
GetValueAtNearestVoxel(), which is faster but less precise because
it does not use interpolation. Or, GetValueAtVoxel(), which is
even faster but does not support fractional voxel coordinates.
Declaration
float GetScalarValueAtVoxelSpacePoint(Vector3 voxelSpacePoint)
Parameters
Type |
Name |
Description |
Vector3 |
voxelSpacePoint |
|
Returns
|
Improve this Doc
View Source
GetScalarValueAtWorldSpacePoint(Vector3)
Looks up the value in the original voxel data based upon a position
specified in Unity World coordinates.
Declaration
float GetScalarValueAtWorldSpacePoint(Vector3 worldSpacePoint)
Parameters
Type |
Name |
Description |
Vector3 |
worldSpacePoint |
|
Returns
|
Improve this Doc
View Source
NormalizeScalarValue(float, KeyData)
Uses the min and max values in the volume data to remap a data value to
a normalized range between 0 and 1.
Declaration
float NormalizeScalarValue(float value, KeyData keyData)
Parameters
Returns