VTK  9.1.0
vtkUnstructuredGridHomogeneousRayIntegrator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkUnstructuredGridHomogeneousRayIntegrator.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
16/*
17 * Copyright 2004 Sandia Corporation.
18 * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19 * license for use of this work by or on behalf of the
20 * U.S. Government. Redistribution and use in source and binary forms, with
21 * or without modification, are permitted provided that this Notice and any
22 * statement of authorship are reproduced on all copies.
23 */
24
37#ifndef vtkUnstructuredGridHomogeneousRayIntegrator_h
38#define vtkUnstructuredGridHomogeneousRayIntegrator_h
39
40#include "vtkRenderingVolumeModule.h" // For export macro
42
44
45class VTKRENDERINGVOLUME_EXPORT vtkUnstructuredGridHomogeneousRayIntegrator
47{
48public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
53 void Initialize(vtkVolume* volume, vtkDataArray* scalars) override;
54
55 void Integrate(vtkDoubleArray* intersectionLengths, vtkDataArray* nearIntersections,
56 vtkDataArray* farIntersections, float color[4]) override;
57
59
64 vtkSetMacro(TransferFunctionTableSize, int);
65 vtkGetMacro(TransferFunctionTableSize, int);
67
68protected:
71
74
76 float** ColorTable;
78 double* TableShift;
79 double* TableScale;
81
84
86
87private:
90 void operator=(const vtkUnstructuredGridHomogeneousRayIntegrator&) = delete;
91};
92
93#endif // vtkUnstructuredGridHomogeneousRayIntegrator_h
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:113
record modification and/or execution time
Definition: vtkTimeStamp.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkUnstructuredGridHomogeneousRayIntegrator * New()
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 ...
void Initialize(vtkVolume *volume, vtkDataArray *scalars) override
Set up the integrator with the given properties and scalars.
virtual void GetTransferFunctionTables(vtkDataArray *scalars)
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:144