VTK
vtkUnstructuredGridLinearRayIntegrator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridLinearRayIntegrator.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 
43 #ifndef vtkUnstructuredGridLinearRayIntegrator_h
44 #define vtkUnstructuredGridLinearRayIntegrator_h
45 
46 #include "vtkRenderingVolumeModule.h" // For export macro
48 
49 class vtkLinearRayIntegratorTransferFunction;
50 class vtkVolumeProperty;
51 
53 {
54 public:
58  void PrintSelf(ostream &os, vtkIndent indent) override;
59 
60  void Initialize(vtkVolume *volume, vtkDataArray *scalars) override;
61 
62  void Integrate(vtkDoubleArray *intersectionLengths,
63  vtkDataArray *nearIntersections,
64  vtkDataArray *farIntersections,
65  float color[4]) override;
66 
68 
72  static void IntegrateRay(double length,
73  double intensity_front, double attenuation_front,
74  double intensity_back, double attenuation_back,
75  float color[4]);
76  static void IntegrateRay(double length,
77  const double color_front[3],
78  double attenuation_front,
79  const double color_back[3],
80  double attenuation_back,
81  float color[4]);
83 
88  static float Psi(float length,
89  float attenuation_front, float attenuation_back);
90 
91 protected:
94 
96 
97  vtkLinearRayIntegratorTransferFunction *TransferFunctions;
100 
101 private:
103  void operator=(const vtkUnstructuredGridLinearRayIntegrator&) = delete;
104 };
105 
106 #endif //vtkUnstructuredGridLinearRayIntegrator_h
vtkUnstructuredGridVolumeRayIntegrator
a superclass for volume ray integration functions
Definition: vtkUnstructuredGridVolumeRayIntegrator.h:41
vtkUnstructuredGridVolumeRayIntegrator::Integrate
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 ...
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
vtkUnstructuredGridLinearRayIntegrator::Property
vtkVolumeProperty * Property
Definition: vtkUnstructuredGridLinearRayIntegrator.h:95
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkUnstructuredGridLinearRayIntegrator
performs piecewise linear ray integration.
Definition: vtkUnstructuredGridLinearRayIntegrator.h:52
vtkX3D::length
Definition: vtkX3D.h:393
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkUnstructuredGridLinearRayIntegrator::TransferFunctionsModified
vtkTimeStamp TransferFunctionsModified
Definition: vtkUnstructuredGridLinearRayIntegrator.h:98
vtkX3D::color
Definition: vtkX3D.h:221
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnstructuredGridVolumeRayIntegrator.h
vtkUnstructuredGridLinearRayIntegrator::NumIndependentComponents
int NumIndependentComponents
Definition: vtkUnstructuredGridLinearRayIntegrator.h:99
vtkUnstructuredGridLinearRayIntegrator::TransferFunctions
vtkLinearRayIntegratorTransferFunction * TransferFunctions
Definition: vtkUnstructuredGridLinearRayIntegrator.h:97
vtkUnstructuredGridVolumeRayIntegrator::Initialize
virtual void Initialize(vtkVolume *volume, vtkDataArray *scalars)=0
Set up the integrator with the given properties and scalars.
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:41
vtkVolumeProperty
represents the common properties for rendering a volume.
Definition: vtkVolumeProperty.h:74
vtkUnstructuredGridVolumeRayIntegrator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.