|
VTK
9.7.20261123
|
#include <vtkWebGPUVolumeRayCastMapperInput.h>
One input of vtkWebGPUVolumeRayCastMapper, as the mapper prepares it.
What the mapper works out for one port: the array it renders, the voxels that are hidden, the tabulated transfer functions and the classification of its cells. It is also where the coordinator gets that port's bricks from, cut out of the scalar array or, for a streamed port, read through the pipeline one at a time.
Definition at line 34 of file vtkWebGPUVolumeRayCastMapperInput.h.
Public Member Functions | |
| bool | FetchBrick (const int brick[3], int slotSize, void *voxels) override |
| Copy the brick at brick, with a one voxel apron from its neighbours, into voxels, which holds slotSize cubed values in the contribution's pool kind, x fastest. | |
| bool | FetchMask (const int brick[3], int slotSize, unsigned char *voxels) override |
| Fill voxels with one byte per voxel of the same brick, non zero where the voxel is not to be drawn. | |
| bool | FetchStreamedBrick (const int brick[3], int slotSize, void *voxels) |
| Public Member Functions inherited from vtkWebGPUVolumeBrickSource | |
| virtual | ~vtkWebGPUVolumeBrickSource ()=default |
Static Public Member Functions | |
| static vtkImageData * | ReadExtent (vtkAlgorithm *source, int sourcePort, const int extent[6]) |
| Read extent, in the source's own index space, from source through the pipeline. | |
Public Attributes | |
| int | Port = 0 |
| vtkWebGPUVolumeRayCastMapper * | Mapper = nullptr |
| vtkImageData * | Data = nullptr |
| vtkVolumeProperty * | Property = nullptr |
| vtkMatrix4x4 * | WorldMatrix = nullptr |
| std::vector< unsigned char > | Hidden |
| Two bytes per voxel: the first non zero where the voxel is not to be drawn, the second its label. | |
| int | MaximumLabel = 0 |
| Labels of a label map mask, and the transfer functions each of them asks for. | |
| vtkImageData * | Mask = nullptr |
| What the mask looked like when the hidden voxels were last worked out, so that a mask arriving or changing counts as the volume changing. | |
| vtkMTimeType | MaskTime = 0 |
| int | MaskType = -1 |
| std::vector< std::uint16_t > | LabelTable |
| bool | MaskHidesNeighbours = false |
| Whether hiding a voxel should also hide what interpolates through it. | |
| vtkDataArray * | Scalars = nullptr |
| The array the mapper was told to render, which is not always the active point scalars. | |
| vtkDataArray * | YAxisScalars = nullptr |
| The array that gives the second axis of a two dimensional transfer function, if one was named. | |
| vtkSmartPointer< vtkDataArray > | AOSScalars |
| Both of them in the contiguous layout the bricks are cut from: the arrays themselves when they already have it, a copy made once per update otherwise. | |
| vtkSmartPointer< vtkDataArray > | AOSYAxisScalars |
| bool | Transfer2D = false |
| bool | CellData = false |
| vtkNew< vtkMatrix4x4 > | IndexToPhysical |
| Index space to the input's own coordinates, shifted by half a voxel for cell data so that a cell is sampled at its centre. | |
| bool | BytePool = false |
| Whether the scalars go to the device as bytes rather than floats. | |
| int | PoolChannels = 1 |
| int | Dimensions [3] = { 0, 0, 0 } |
| float | ValueScale = 1.0f |
| float | ValueBias = 0.0f |
| int | NumberOfComponents = 1 |
| How many components of the array are rendered, at most four, and whether each carries its own transfer functions or they describe one colour between them. | |
| bool | IndependentComponents = true |
| double | DataRange [4][2] = { { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 } } |
| 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 are 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 is tabulated over. | |
| int | CellDimensions [3] = { 0, 0, 0 } |
| Geometry of the acceleration cells, and the scalar extremes of each, per component. | |
| int | CellSize = 0 |
| std::vector< float > | CellMinimum [4] |
| std::vector< float > | CellMaximum [4] |
| std::vector< float > | CellClassification |
| Two floats per cell: largest opacity the transfer functions map it to, and how much it varies. | |
| std::vector< std::uint16_t > | ColorTable |
| RGBA16Float texels ready to be dropped into a layer of the shared arrays, one set of tables per component laid out one after another. | |
| std::vector< std::uint16_t > | OpacityTable |
| std::vector< std::uint16_t > | GradientTable |
| std::vector< std::uint16_t > | Transfer2DTable |
| The two dimensional transfer function, resampled to a fixed size, one per component. | |
| std::array< std::array< float, vtkWebGPUVolumeTransferFunctionSize >, 4 > | OpacityCurve = {} |
| Every component's opacity table again, unpacked, so cells can be classified without asking the transfer functions again. | |
| int | PrimaryComponent = 0 |
| Which component that is: the one the intensity modes and the classification look at. | |
| vtkMTimeType | DataTime = 0 |
| vtkMTimeType | TransferFunctionTime = 0 |
| vtkTimeStamp | ContentTime |
| Bumped whenever anything above is rebuilt. | |
| vtkTimeStamp | BrickTime |
| Bumped only when the voxels change, which is all that makes a resident brick stale. | |
| vtkTimeStamp | CellsTime |
| Bumped when cells are classified piecemeal, without the rest of the input changing. | |
| bool | Streaming = false |
| Read a brick at a time from Source, whose index space starts at WholeExtent. | |
| vtkAlgorithm * | Source = nullptr |
| int | SourcePort = 0 |
| int | WholeExtent [6] = { 0, -1, 0, -1, 0, -1 } |
| bool | RangeFromFunctions = false |
| No range was published, so the transfer functions' own range stands in for the data's. | |
| std::vector< std::size_t > | PendingCells |
| Cells measured as their bricks arrived, waiting to be classified. | |
|
overridevirtual |
Copy the brick at brick, with a one voxel apron from its neighbours, into voxels, which holds slotSize cubed values in the contribution's pool kind, x fastest.
Voxels outside the volume repeat the nearest one. Returns false when the brick is not available yet, leaving it out of this frame.
Implements vtkWebGPUVolumeBrickSource.
|
overridevirtual |
Fill voxels with one byte per voxel of the same brick, non zero where the voxel is not to be drawn.
Returns false when the volume has nothing hidden, which is the usual case.
Reimplemented from vtkWebGPUVolumeBrickSource.
| bool vtkWebGPUVolumeRayCastMapperInput::FetchStreamedBrick | ( | const int | brick[3], |
| int | slotSize, | ||
| void * | voxels ) |
|
static |
Read extent, in the source's own index space, from source through the pipeline.
The block returned belongs to the source and is only good until its next update.
| int vtkWebGPUVolumeRayCastMapperInput::Port = 0 |
Definition at line 36 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkWebGPUVolumeRayCastMapper* vtkWebGPUVolumeRayCastMapperInput::Mapper = nullptr |
Definition at line 37 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkImageData* vtkWebGPUVolumeRayCastMapperInput::Data = nullptr |
Definition at line 38 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkVolumeProperty* vtkWebGPUVolumeRayCastMapperInput::Property = nullptr |
Definition at line 39 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkMatrix4x4* vtkWebGPUVolumeRayCastMapperInput::WorldMatrix = nullptr |
Definition at line 40 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<unsigned char> vtkWebGPUVolumeRayCastMapperInput::Hidden |
Two bytes per voxel: the first non zero where the voxel is not to be drawn, the second its label.
Empty when the volume has neither anything hidden nor a label map.
Definition at line 47 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::MaximumLabel = 0 |
Labels of a label map mask, and the transfer functions each of them asks for.
One row of RGBA16Float texels per label, row zero unused because label zero is the unlabelled one.
Definition at line 50 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkImageData* vtkWebGPUVolumeRayCastMapperInput::Mask = nullptr |
What the mask looked like when the hidden voxels were last worked out, so that a mask arriving or changing counts as the volume changing.
Definition at line 53 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkMTimeType vtkWebGPUVolumeRayCastMapperInput::MaskTime = 0 |
Definition at line 54 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::MaskType = -1 |
Definition at line 55 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<std::uint16_t> vtkWebGPUVolumeRayCastMapperInput::LabelTable |
Definition at line 56 of file vtkWebGPUVolumeRayCastMapperInput.h.
| bool vtkWebGPUVolumeRayCastMapperInput::MaskHidesNeighbours = false |
Whether hiding a voxel should also hide what interpolates through it.
Definition at line 58 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkDataArray* vtkWebGPUVolumeRayCastMapperInput::Scalars = nullptr |
The array the mapper was told to render, which is not always the active point scalars.
Definition at line 61 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkDataArray* vtkWebGPUVolumeRayCastMapperInput::YAxisScalars = nullptr |
The array that gives the second axis of a two dimensional transfer function, if one was named.
It rides along in the second channel of the same bricks.
Definition at line 64 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkSmartPointer<vtkDataArray> vtkWebGPUVolumeRayCastMapperInput::AOSScalars |
Both of them in the contiguous layout the bricks are cut from: the arrays themselves when they already have it, a copy made once per update otherwise.
Unset on a streaming input.
Definition at line 67 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkSmartPointer<vtkDataArray> vtkWebGPUVolumeRayCastMapperInput::AOSYAxisScalars |
Definition at line 68 of file vtkWebGPUVolumeRayCastMapperInput.h.
| bool vtkWebGPUVolumeRayCastMapperInput::Transfer2D = false |
Definition at line 69 of file vtkWebGPUVolumeRayCastMapperInput.h.
| bool vtkWebGPUVolumeRayCastMapperInput::CellData = false |
Definition at line 70 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkNew<vtkMatrix4x4> vtkWebGPUVolumeRayCastMapperInput::IndexToPhysical |
Index space to the input's own coordinates, shifted by half a voxel for cell data so that a cell is sampled at its centre.
Definition at line 73 of file vtkWebGPUVolumeRayCastMapperInput.h.
| bool vtkWebGPUVolumeRayCastMapperInput::BytePool = false |
Whether the scalars go to the device as bytes rather than floats.
Definition at line 76 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::PoolChannels = 1 |
Definition at line 77 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::Dimensions[3] = { 0, 0, 0 } |
Definition at line 79 of file vtkWebGPUVolumeRayCastMapperInput.h.
| float vtkWebGPUVolumeRayCastMapperInput::ValueScale = 1.0f |
Definition at line 80 of file vtkWebGPUVolumeRayCastMapperInput.h.
| float vtkWebGPUVolumeRayCastMapperInput::ValueBias = 0.0f |
Definition at line 81 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::NumberOfComponents = 1 |
How many components of the array are rendered, at most four, and whether each carries its own transfer functions or they describe one colour between them.
Definition at line 85 of file vtkWebGPUVolumeRayCastMapperInput.h.
| bool vtkWebGPUVolumeRayCastMapperInput::IndependentComponents = true |
Definition at line 86 of file vtkWebGPUVolumeRayCastMapperInput.h.
| double vtkWebGPUVolumeRayCastMapperInput::DataRange[4][2] = { { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 }, { 0.0, 1.0 } } |
Definition at line 88 of file vtkWebGPUVolumeRayCastMapperInput.h.
| double vtkWebGPUVolumeRayCastMapperInput::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 are tabulated over.
Definition at line 90 of file vtkWebGPUVolumeRayCastMapperInput.h.
| double vtkWebGPUVolumeRayCastMapperInput::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 is tabulated over.
Definition at line 92 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::CellDimensions[3] = { 0, 0, 0 } |
Geometry of the acceleration cells, and the scalar extremes of each, per component.
Definition at line 95 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::CellSize = 0 |
Definition at line 96 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<float> vtkWebGPUVolumeRayCastMapperInput::CellMinimum[4] |
Definition at line 97 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<float> vtkWebGPUVolumeRayCastMapperInput::CellMaximum[4] |
Definition at line 98 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<float> vtkWebGPUVolumeRayCastMapperInput::CellClassification |
Two floats per cell: largest opacity the transfer functions map it to, and how much it varies.
Rebuilt whenever the transfer functions change.
Definition at line 101 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<std::uint16_t> vtkWebGPUVolumeRayCastMapperInput::ColorTable |
RGBA16Float texels ready to be dropped into a layer of the shared arrays, one set of tables per component laid out one after another.
Definition at line 105 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<std::uint16_t> vtkWebGPUVolumeRayCastMapperInput::OpacityTable |
Definition at line 106 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<std::uint16_t> vtkWebGPUVolumeRayCastMapperInput::GradientTable |
Definition at line 107 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<std::uint16_t> vtkWebGPUVolumeRayCastMapperInput::Transfer2DTable |
The two dimensional transfer function, resampled to a fixed size, one per component.
Definition at line 109 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::array<std::array<float, vtkWebGPUVolumeTransferFunctionSize>, 4> vtkWebGPUVolumeRayCastMapperInput::OpacityCurve = {} |
Every component's opacity table again, unpacked, so cells can be classified without asking the transfer functions again.
Definition at line 113 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::PrimaryComponent = 0 |
Which component that is: the one the intensity modes and the classification look at.
Definition at line 115 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkMTimeType vtkWebGPUVolumeRayCastMapperInput::DataTime = 0 |
Definition at line 117 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkMTimeType vtkWebGPUVolumeRayCastMapperInput::TransferFunctionTime = 0 |
Definition at line 118 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkTimeStamp vtkWebGPUVolumeRayCastMapperInput::ContentTime |
Bumped whenever anything above is rebuilt.
Definition at line 120 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkTimeStamp vtkWebGPUVolumeRayCastMapperInput::BrickTime |
Bumped only when the voxels change, which is all that makes a resident brick stale.
Definition at line 122 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkTimeStamp vtkWebGPUVolumeRayCastMapperInput::CellsTime |
Bumped when cells are classified piecemeal, without the rest of the input changing.
Definition at line 124 of file vtkWebGPUVolumeRayCastMapperInput.h.
| bool vtkWebGPUVolumeRayCastMapperInput::Streaming = false |
Read a brick at a time from Source, whose index space starts at WholeExtent.
Data is then the stream's shell and Scalars only describes the array.
Definition at line 128 of file vtkWebGPUVolumeRayCastMapperInput.h.
| vtkAlgorithm* vtkWebGPUVolumeRayCastMapperInput::Source = nullptr |
Definition at line 129 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::SourcePort = 0 |
Definition at line 130 of file vtkWebGPUVolumeRayCastMapperInput.h.
| int vtkWebGPUVolumeRayCastMapperInput::WholeExtent[6] = { 0, -1, 0, -1, 0, -1 } |
Definition at line 131 of file vtkWebGPUVolumeRayCastMapperInput.h.
| bool vtkWebGPUVolumeRayCastMapperInput::RangeFromFunctions = false |
No range was published, so the transfer functions' own range stands in for the data's.
Definition at line 133 of file vtkWebGPUVolumeRayCastMapperInput.h.
| std::vector<std::size_t> vtkWebGPUVolumeRayCastMapperInput::PendingCells |
Cells measured as their bricks arrived, waiting to be classified.
Definition at line 135 of file vtkWebGPUVolumeRayCastMapperInput.h.