VTK  9.3.1
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
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:39
virtual void Initialize(vtkVolume *volume, vtkDataArray *scalars)=0
Set up the integrator with the given properties and scalars.
record modification and/or execution time
Definition: vtkTimeStamp.h:24
dynamic, self-adjusting array of double
a superclass for volume ray integration functions
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represents the common properties for rendering a volume.
vtkLinearRayIntegratorTransferFunction * TransferFunctions
performs piecewise linear ray integration.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Integrate(vtkDoubleArray *intersectionLengths, vtkDataArray *nearIntersections, vtkDataArray *farIntersections, float color[4])=0
Given a set of intersections (defined by the three arrays), compute the piecewise integration of the ...