VTK  9.0.3
vtkUnstructuredGridVolumeRayIntegrator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridVolumeRayIntegrator.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
31 #ifndef vtkUnstructuredGridVolumeRayIntegrator_h
32 #define vtkUnstructuredGridVolumeRayIntegrator_h
33 
34 #include "vtkObject.h"
35 #include "vtkRenderingVolumeModule.h" // For export macro
36 
37 class vtkVolume;
38 class vtkDoubleArray;
39 class vtkDataArray;
40 
41 class VTKRENDERINGVOLUME_EXPORT vtkUnstructuredGridVolumeRayIntegrator : public vtkObject
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
50  virtual void Initialize(vtkVolume* volume, vtkDataArray* scalars) = 0;
51 
61  virtual void Integrate(vtkDoubleArray* intersectionLengths, vtkDataArray* nearIntersections,
62  vtkDataArray* farIntersections, float color[4]) = 0;
63 
64 protected:
67 
68 private:
70  void operator=(const vtkUnstructuredGridVolumeRayIntegrator&) = delete;
71 };
72 
73 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract base class for most VTK objects
Definition: vtkObject.h:63
a superclass for volume ray integration functions
virtual void Initialize(vtkVolume *volume, vtkDataArray *scalars)=0
Set up the integrator with the given properties and scalars.
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 ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:45
@ color
Definition: vtkX3D.h:227