public class VolumeBlocks extends Object
getLutBlockScales(int) can be called at any point after init().
For the next frame start over with init().
| Constructor and Description |
|---|
VolumeBlocks() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBaseLevel()
Get the base resolution level for rendering the volume.
|
double |
getBaseLevelVoxelSizeInWorldCoordinates()
Get the size of a voxel at base resolution in world coordinates.
|
List<FillTask> |
getFillTasks()
Sets up
RequiredBlocks (internally) and creates a list of FillTasks for the cache to process. |
org.joml.Matrix4f |
getIms() |
LookupTextureARGB |
getLookupTexture() |
float[][] |
getLutBlockScales(int NUM_BLOCK_SCALES)
Set up
lutBlockScales array for shader. |
org.joml.Vector3f |
getSourceLevelMax() |
org.joml.Vector3f |
getSourceLevelMin() |
TextureCache |
getTextureCache() |
void |
init(MultiResolutionStack3D<?> multiResolutionStack,
TextureCache textureCache,
int viewportWidth,
org.joml.Matrix4fc pv) |
boolean |
makeLut(int timestamp) |
void |
setBaseLevel(int baseLevel)
Set the base resolution level for rendering the volume.
|
public void init(MultiResolutionStack3D<?> multiResolutionStack, TextureCache textureCache, int viewportWidth, org.joml.Matrix4fc pv)
multiResolutionStack - single-channel, multi-resolution sourceviewportWidth - width of the surface to be renderedpv - projection * view matrix, transforms world coordinates to NDC coordinatespublic int getBaseLevel()
This is chosen automatically, when calling init(MultiResolutionStack3D, TextureCache, int, Matrix4fc).
It can be manually adjusted using setBaseLevel(int).
public void setBaseLevel(int baseLevel)
public double getBaseLevelVoxelSizeInWorldCoordinates()
public List<FillTask> getFillTasks()
RequiredBlocks (internally) and creates a list of FillTasks for the cache to process.FillTaskspublic boolean makeLut(int timestamp)
false is returned, the frame should be repainted until the remaining incomplete blocks are loaded.public float[][] getLutBlockScales(int NUM_BLOCK_SCALES)
lutBlockScales array for shader.
lutBlockScales[0] = (0,0,0) is used for oob blocks.lutBlockScales[i+1] is the relative scale between baseLevel and level baseLevel+ilutBlockScales[i+1] = (0,0,0) for i > maxLevel is used to fill up the array to NUM_BLOCK_SCALESNUM_BLOCK_SCALES - public org.joml.Matrix4f getIms()
public org.joml.Vector3f getSourceLevelMin()
public org.joml.Vector3f getSourceLevelMax()
public LookupTextureARGB getLookupTexture()
public TextureCache getTextureCache()
Copyright © 2018–2025 BigDataViewer. All rights reserved.