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
46#ifndef vtkUnstructuredGridLinearRayIntegrator_h
47#define vtkUnstructuredGridLinearRayIntegrator_h
48
49#include "vtkRenderingVolumeModule.h" // For export macro
51
52class vtkLinearRayIntegratorTransferFunction;
54
56{
57public:
61 virtual void PrintSelf(ostream &os, vtkIndent indent);
62
63 virtual void Initialize(vtkVolume *volume, vtkDataArray *scalars);
64
65 virtual void Integrate(vtkDoubleArray *intersectionLengths,
66 vtkDataArray *nearIntersections,
67 vtkDataArray *farIntersections,
68 float color[4]);
69
71
75 static void IntegrateRay(double length,
76 double intensity_front, double attenuation_front,
77 double intensity_back, double attenuation_back,
78 float color[4]);
79 static void IntegrateRay(double length,
80 const double color_front[3],
81 double attenuation_front,
82 const double color_back[3],
83 double attenuation_back,
84 float color[4]);
86
91 static float Psi(float length,
92 float attenuation_front, float attenuation_back);
93
94protected:
97
99
100 vtkLinearRayIntegratorTransferFunction *TransferFunctions;
103
104private:
106 void operator=(const vtkUnstructuredGridLinearRayIntegrator&) VTK_DELETE_FUNCTION;
107};
108
109#endif //vtkUnstructuredGridLinearRayIntegrator_h
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:40
record modification and/or execution time
Definition: vtkTimeStamp.h:36
performs piecewise linear ray integration.
static vtkUnstructuredGridLinearRayIntegrator * New()
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...
virtual void Initialize(vtkVolume *volume, vtkDataArray *scalars)
Set up the integrator with the given properties and scalars.
static void IntegrateRay(double length, const double color_front[3], double attenuation_front, const double color_back[3], double attenuation_back, float color[4])
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.
virtual void Integrate(vtkDoubleArray *intersectionLengths, vtkDataArray *nearIntersections, vtkDataArray *farIntersections, float color[4])
Given a set of intersections (defined by the three arrays), compute the peicewise integration of the ...
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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:51
@ length
Definition: vtkX3D.h:393
@ color
Definition: vtkX3D.h:221