VTK  9.7.20261123
vtkWebGPUVolumeRayCastContribution Struct Reference

#include <vtkWebGPUVolumeRayCastContribution.h>

Detailed Description

One input offered up to be ray cast alongside the others.

A mapper fills one of these in per connected input and hands it to vtkWebGPUVolumeRayCastCoordinator, which gathers the contributions of every volume prop in the renderer and marches them together. Everything the coordinator needs to place, sample and shade the input is here; the mapper keeps owning the memory, which stays valid for the frame.

Definition at line 69 of file vtkWebGPUVolumeRayCastContribution.h.

Collaboration diagram for vtkWebGPUVolumeRayCastContribution:
[legend]

Public Attributes

vtkWebGPUVolumeRayCastMapper * Mapper = nullptr
 Who offered this input, and which of its ports it came from.
vtkVolume * Volume = nullptr
int Port = 0
vtkImageData * Data = nullptr
vtkVolumeProperty * Property = nullptr
vtkMatrix4x4 * IndexToPhysical = nullptr
 Index space to the input's own coordinates.
vtkMatrix4x4 * WorldMatrix = nullptr
 Placement of the prop that carries this input.
vtkPlaneCollection * ClippingPlanes = nullptr
 Clipping planes of the mapper that owns this input, if any.
vtkWebGPUVolumeBrickSource * BrickSource = nullptr
 Where the coordinator asks for voxels, and whether they come back as bytes or floats.
bool BytePool = false
int PoolChannels = 1
 How many channels of a pool slot one voxel takes.
int NumberOfComponents = 1
 How many components are rendered, at most four, and whether each carries its own transfer functions or they describe one colour between them.
bool IndependentComponents = true
int PrimaryComponent = 0
 The component the intensity blend modes and the acceleration structure look at.
bool CellData = false
 Whether the samples are the cells rather than the points, which puts them half a cell in from the edges of the volume and one fewer of them along each axis.
bool HasMask = false
 Whether some voxels are hidden, and whether hiding one hides what interpolates through it.
bool MaskHidesNeighbours = false
std::uint32_t PropId = 0
 Index of this volume's prop in the renderer, which selection reports as the prop id.
int MaximumLabel = 0
 A label map mask names a transfer function per label, and MaskBlendFactor says how far to go from the volume's own transfer functions towards the label's.
float MaskBlendFactor = 1.0f
const std::vector< std::uint16_t > * LabelTable = nullptr
 RGBA16Float texels, vtkWebGPUVolumeTransferFunctionSize per label, row zero unused.
int Dimensions [3] = { 0, 0, 0 }
float ValueScale = 1.0f
 Turns a raw texel back into a scalar: scalar = texel * ValueScale + ValueBias.
float ValueBias = 0.0f
double ScalarRange [4][2] = { { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 } }
 Range each component's colour and opacity functions were tabulated over.
double GradientRange [4][2] = { { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 } }
 Range each component's gradient opacity function was tabulated over.
int CellSize = 8
 Edge length and count of the acceleration cells, which say where the volume is empty.
int CellDimensions [3] = { 0, 0, 0 }
const std::vector< float > * CellClassification = nullptr
 Two floats per cell: the largest opacity it maps to, and how much it varies.
bool Transfer2D = false
 Whether colour and opacity come from a two dimensional transfer function, and whether its second axis is an array of its own rather than the gradient magnitude.
bool Transfer2DHasYAxisArray = false
const std::vector< std::uint16_t > * Transfer2DTable = nullptr
 RGBA16Float texels, vtkWebGPUVolumeTransferFunction2DSize squared per component.
const std::vector< std::uint16_t > * ColorTable = nullptr
 RGBA16Float texels, vtkWebGPUVolumeTransferFunctionSize of each, one set per component.
const std::vector< std::uint16_t > * OpacityTable = nullptr
const std::vector< std::uint16_t > * GradientTable = nullptr
vtkMTimeType ContentTime = 0
 Bumped whenever any of the data above is rebuilt, so the coordinator can leave the layers and blocks it already uploaded alone.
vtkMTimeType BrickTime = 0
 When the voxels themselves last changed.
vtkMTimeType CellsTime = 0
 When cells were last classified on their own, as bricks of a streamed volume arrive.
bool Streaming = false
 Read a brick at a time.

Member Data Documentation

◆ Mapper

vtkWebGPUVolumeRayCastMapper* vtkWebGPUVolumeRayCastContribution::Mapper = nullptr

Who offered this input, and which of its ports it came from.

Definition at line 72 of file vtkWebGPUVolumeRayCastContribution.h.

◆ Volume

vtkVolume* vtkWebGPUVolumeRayCastContribution::Volume = nullptr

Definition at line 73 of file vtkWebGPUVolumeRayCastContribution.h.

◆ Port

int vtkWebGPUVolumeRayCastContribution::Port = 0

Definition at line 74 of file vtkWebGPUVolumeRayCastContribution.h.

◆ Data

vtkImageData* vtkWebGPUVolumeRayCastContribution::Data = nullptr

Definition at line 76 of file vtkWebGPUVolumeRayCastContribution.h.

◆ Property

vtkVolumeProperty* vtkWebGPUVolumeRayCastContribution::Property = nullptr

Definition at line 77 of file vtkWebGPUVolumeRayCastContribution.h.

◆ IndexToPhysical

vtkMatrix4x4* vtkWebGPUVolumeRayCastContribution::IndexToPhysical = nullptr

Index space to the input's own coordinates.

Comes from the mapper rather than from the image, because cell data is sampled at cell centres and so sits half a voxel across.

Definition at line 80 of file vtkWebGPUVolumeRayCastContribution.h.

◆ WorldMatrix

vtkMatrix4x4* vtkWebGPUVolumeRayCastContribution::WorldMatrix = nullptr

Placement of the prop that carries this input.

Definition at line 82 of file vtkWebGPUVolumeRayCastContribution.h.

◆ ClippingPlanes

vtkPlaneCollection* vtkWebGPUVolumeRayCastContribution::ClippingPlanes = nullptr

Clipping planes of the mapper that owns this input, if any.

Definition at line 84 of file vtkWebGPUVolumeRayCastContribution.h.

◆ BrickSource

vtkWebGPUVolumeBrickSource* vtkWebGPUVolumeRayCastContribution::BrickSource = nullptr

Where the coordinator asks for voxels, and whether they come back as bytes or floats.

Definition at line 87 of file vtkWebGPUVolumeRayCastContribution.h.

◆ BytePool

bool vtkWebGPUVolumeRayCastContribution::BytePool = false

Definition at line 88 of file vtkWebGPUVolumeRayCastContribution.h.

◆ PoolChannels

int vtkWebGPUVolumeRayCastContribution::PoolChannels = 1

How many channels of a pool slot one voxel takes.

More than the components alone when a second axis array rides along with them.

Definition at line 91 of file vtkWebGPUVolumeRayCastContribution.h.

◆ NumberOfComponents

int vtkWebGPUVolumeRayCastContribution::NumberOfComponents = 1

How many components are rendered, at most four, and whether each carries its own transfer functions or they describe one colour between them.

Definition at line 95 of file vtkWebGPUVolumeRayCastContribution.h.

◆ IndependentComponents

bool vtkWebGPUVolumeRayCastContribution::IndependentComponents = true

Definition at line 96 of file vtkWebGPUVolumeRayCastContribution.h.

◆ PrimaryComponent

int vtkWebGPUVolumeRayCastContribution::PrimaryComponent = 0

The component the intensity blend modes and the acceleration structure look at.

Definition at line 98 of file vtkWebGPUVolumeRayCastContribution.h.

◆ CellData

bool vtkWebGPUVolumeRayCastContribution::CellData = false

Whether the samples are the cells rather than the points, which puts them half a cell in from the edges of the volume and one fewer of them along each axis.

Definition at line 101 of file vtkWebGPUVolumeRayCastContribution.h.

◆ HasMask

bool vtkWebGPUVolumeRayCastContribution::HasMask = false

Whether some voxels are hidden, and whether hiding one hides what interpolates through it.

Ghosts and blanking do, since such a sample is wrong; a binary mask cuts exactly where it says.

Definition at line 106 of file vtkWebGPUVolumeRayCastContribution.h.

◆ MaskHidesNeighbours

bool vtkWebGPUVolumeRayCastContribution::MaskHidesNeighbours = false

Definition at line 107 of file vtkWebGPUVolumeRayCastContribution.h.

◆ PropId

std::uint32_t vtkWebGPUVolumeRayCastContribution::PropId = 0

Index of this volume's prop in the renderer, which selection reports as the prop id.

Definition at line 110 of file vtkWebGPUVolumeRayCastContribution.h.

◆ MaximumLabel

int vtkWebGPUVolumeRayCastContribution::MaximumLabel = 0

A label map mask names a transfer function per label, and MaskBlendFactor says how far to go from the volume's own transfer functions towards the label's.

Definition at line 114 of file vtkWebGPUVolumeRayCastContribution.h.

◆ MaskBlendFactor

float vtkWebGPUVolumeRayCastContribution::MaskBlendFactor = 1.0f

Definition at line 115 of file vtkWebGPUVolumeRayCastContribution.h.

◆ LabelTable

const std::vector<std::uint16_t>* vtkWebGPUVolumeRayCastContribution::LabelTable = nullptr

RGBA16Float texels, vtkWebGPUVolumeTransferFunctionSize per label, row zero unused.

Definition at line 117 of file vtkWebGPUVolumeRayCastContribution.h.

◆ Dimensions

int vtkWebGPUVolumeRayCastContribution::Dimensions[3] = { 0, 0, 0 }

Definition at line 119 of file vtkWebGPUVolumeRayCastContribution.h.

◆ ValueScale

float vtkWebGPUVolumeRayCastContribution::ValueScale = 1.0f

Turns a raw texel back into a scalar: scalar = texel * ValueScale + ValueBias.

Definition at line 121 of file vtkWebGPUVolumeRayCastContribution.h.

◆ ValueBias

float vtkWebGPUVolumeRayCastContribution::ValueBias = 0.0f

Definition at line 122 of file vtkWebGPUVolumeRayCastContribution.h.

◆ ScalarRange

double vtkWebGPUVolumeRayCastContribution::ScalarRange[4][2] = { { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 } }

Range each component's colour and opacity functions were tabulated over.

Definition at line 125 of file vtkWebGPUVolumeRayCastContribution.h.

◆ GradientRange

double vtkWebGPUVolumeRayCastContribution::GradientRange[4][2] = { { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 } }

Range each component's gradient opacity function was tabulated over.

Definition at line 127 of file vtkWebGPUVolumeRayCastContribution.h.

◆ CellSize

int vtkWebGPUVolumeRayCastContribution::CellSize = 8

Edge length and count of the acceleration cells, which say where the volume is empty.

Not the pool's bricks, which are the coordinator's business and usually much larger.

Definition at line 131 of file vtkWebGPUVolumeRayCastContribution.h.

◆ CellDimensions

int vtkWebGPUVolumeRayCastContribution::CellDimensions[3] = { 0, 0, 0 }

Definition at line 132 of file vtkWebGPUVolumeRayCastContribution.h.

◆ CellClassification

const std::vector<float>* vtkWebGPUVolumeRayCastContribution::CellClassification = nullptr

Two floats per cell: the largest opacity it maps to, and how much it varies.

Definition at line 134 of file vtkWebGPUVolumeRayCastContribution.h.

◆ Transfer2D

bool vtkWebGPUVolumeRayCastContribution::Transfer2D = false

Whether colour and opacity come from a two dimensional transfer function, and whether its second axis is an array of its own rather than the gradient magnitude.

Definition at line 138 of file vtkWebGPUVolumeRayCastContribution.h.

◆ Transfer2DHasYAxisArray

bool vtkWebGPUVolumeRayCastContribution::Transfer2DHasYAxisArray = false

Definition at line 139 of file vtkWebGPUVolumeRayCastContribution.h.

◆ Transfer2DTable

const std::vector<std::uint16_t>* vtkWebGPUVolumeRayCastContribution::Transfer2DTable = nullptr

RGBA16Float texels, vtkWebGPUVolumeTransferFunction2DSize squared per component.

Definition at line 141 of file vtkWebGPUVolumeRayCastContribution.h.

◆ ColorTable

const std::vector<std::uint16_t>* vtkWebGPUVolumeRayCastContribution::ColorTable = nullptr

RGBA16Float texels, vtkWebGPUVolumeTransferFunctionSize of each, one set per component.

Definition at line 144 of file vtkWebGPUVolumeRayCastContribution.h.

◆ OpacityTable

const std::vector<std::uint16_t>* vtkWebGPUVolumeRayCastContribution::OpacityTable = nullptr

Definition at line 145 of file vtkWebGPUVolumeRayCastContribution.h.

◆ GradientTable

const std::vector<std::uint16_t>* vtkWebGPUVolumeRayCastContribution::GradientTable = nullptr

Definition at line 146 of file vtkWebGPUVolumeRayCastContribution.h.

◆ ContentTime

vtkMTimeType vtkWebGPUVolumeRayCastContribution::ContentTime = 0

Bumped whenever any of the data above is rebuilt, so the coordinator can leave the layers and blocks it already uploaded alone.

Definition at line 150 of file vtkWebGPUVolumeRayCastContribution.h.

◆ BrickTime

vtkMTimeType vtkWebGPUVolumeRayCastContribution::BrickTime = 0

When the voxels themselves last changed.

Only this invalidates resident bricks: a new transfer function changes what the bricks mean, not what they hold.

Definition at line 153 of file vtkWebGPUVolumeRayCastContribution.h.

◆ CellsTime

vtkMTimeType vtkWebGPUVolumeRayCastContribution::CellsTime = 0

When cells were last classified on their own, as bricks of a streamed volume arrive.

Definition at line 155 of file vtkWebGPUVolumeRayCastContribution.h.

◆ Streaming

bool vtkWebGPUVolumeRayCastContribution::Streaming = false

Read a brick at a time.

A brick fetched from such a volume is also the first look at its cells, so the picture keeps changing for a frame after it arrives.

Definition at line 158 of file vtkWebGPUVolumeRayCastContribution.h.


The documentation for this struct was generated from the following file: