|
VTK
9.7.20261123
|
#include "vtkColorTransferFunction.h"#include "vtkImageData.h"#include "vtkNew.h"#include "vtkPiecewiseFunction.h"#include "vtkPointData.h"#include "vtkRenderWindow.h"#include "vtkSmartPointer.h"#include "vtkUnsignedCharArray.h"#include "vtkVolumeProperty.h"#include <algorithm>#include <cstdlib>#include <iostream>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | vtkWebGPUVolumeTest::Frame |
| A frame, as RGB triples ordered row by row. More... | |
Namespaces | |
| namespace | vtkWebGPUVolumeTest |
| Shared scaffolding for the WebGPU volume tests: it pins the rendering backend, builds the transfer functions the tests reuse, and reads frames back so a test can assert something about what was drawn without needing a baseline image. | |
Functions | |
| bool | vtkWebGPUVolumeTest::CheckClass (vtkObject *object, const char *expected) |
| Fail loudly when the factory handed back something other than the class under test, rather than quietly passing while exercising a different backend. | |
| Frame | vtkWebGPUVolumeTest::Capture (vtkRenderWindow *window) |
| int | vtkWebGPUVolumeTest::LargestDifference (const Frame &left, const Frame &right) |
| Largest per channel difference between two frames of the same size. | |
| double | vtkWebGPUVolumeTest::MeanDifference (const Frame &left, const Frame &right) |
| Mean per channel difference between two frames of the same size. | |
| vtkSmartPointer< vtkVolumeProperty > | vtkWebGPUVolumeTest::MakeProperty (const double range[2], const double rgb[3]=nullptr) |
| A property that maps range onto a blue to yellow ramp of growing opacity. | |