VTK  9.4.20241221
vtkUnstructuredGridLinearRayIntegrator.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2004 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
23#ifndef vtkUnstructuredGridLinearRayIntegrator_h
24#define vtkUnstructuredGridLinearRayIntegrator_h
25
26#include "vtkRenderingVolumeModule.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkLinearRayIntegratorTransferFunction;
32
33class VTKRENDERINGVOLUME_EXPORT vtkUnstructuredGridLinearRayIntegrator
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
41 void Initialize(vtkVolume* volume, vtkDataArray* scalars) override;
42
43 void Integrate(vtkDoubleArray* intersectionLengths, vtkDataArray* nearIntersections,
44 vtkDataArray* farIntersections, float color[4]) override;
45
47
51 static void IntegrateRay(double length, double intensity_front, double attenuation_front,
52 double intensity_back, double attenuation_back, float color[4]);
53 static void IntegrateRay(double length, const double color_front[3], double attenuation_front,
54 const double color_back[3], double attenuation_back, float color[4]);
56
61 static float Psi(float length, float attenuation_front, float attenuation_back);
62
63protected:
66
68
69 vtkLinearRayIntegratorTransferFunction* TransferFunctions;
72
73private:
75 void operator=(const vtkUnstructuredGridLinearRayIntegrator&) = delete;
76};
77
78VTK_ABI_NAMESPACE_END
79#endif // vtkUnstructuredGridLinearRayIntegrator_h
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition vtkIndent.h:108
record modification and/or execution time
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkUnstructuredGridLinearRayIntegrator * New()
static float Psi(float length, float attenuation_front, float attenuation_back)
Computes Psi (as defined by Moreland and Angel, "A Fast High Accuracy Volume Renderer for Unstructure...
void Integrate(vtkDoubleArray *intersectionLengths, vtkDataArray *nearIntersections, vtkDataArray *farIntersections, float color[4]) override
Given a set of intersections (defined by the three arrays), compute the piecewise integration of the ...
static void IntegrateRay(double length, const double color_front[3], double attenuation_front, const double color_back[3], double attenuation_back, float color[4])
Integrates a single ray segment.
static void IntegrateRay(double length, double intensity_front, double attenuation_front, double intensity_back, double attenuation_back, float color[4])
Integrates a single ray segment.
void Initialize(vtkVolume *volume, vtkDataArray *scalars) override
Set up the integrator with the given properties and scalars.
vtkLinearRayIntegratorTransferFunction * TransferFunctions
a superclass for volume ray integration functions
represents the common properties for rendering a volume.
represents a volume (data & properties) in a rendered scene
Definition vtkVolume.h:130