VTK  9.3.20240419
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 
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkLinearRayIntegratorTransferFunction;
31 class vtkVolumeProperty;
32 
33 class VTKRENDERINGVOLUME_EXPORT vtkUnstructuredGridLinearRayIntegrator
35 {
36 public:
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 
63 protected:
66 
68 
69  vtkLinearRayIntegratorTransferFunction* TransferFunctions;
72 
73 private:
75  void operator=(const vtkUnstructuredGridLinearRayIntegrator&) = delete;
76 };
77 
78 VTK_ABI_NAMESPACE_END
79 #endif // vtkUnstructuredGridLinearRayIntegrator_h
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:155
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:108
record modification and/or execution time
Definition: vtkTimeStamp.h:44
performs piecewise linear ray integration.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
static vtkUnstructuredGridLinearRayIntegrator * New()
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:120
@ length
Definition: vtkX3D.h:393
@ color
Definition: vtkX3D.h:221