/usr/include/vtk-5.8/vtkUnstructuredGridVolumeRayIntegrator.h is in libvtk5-dev 5.8.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkUnstructuredGridVolumeRayIntegrator.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkUnstructuredGridVolumeRayIntegrator - a superclass for volume ray integration functions
// .SECTION Description
//
// vtkUnstructuredGridVolumeRayIntegrator is a superclass for ray
// integration functions that can be used within a
// vtkUnstructuredGridVolumeRayCastMapper.
//
// .SECTION See Also
// vtkUnstructuredGridVolumeRayCastMapper
// vtkUnstructuredGridVolumeRayCastFunction
#ifndef __vtkUnstructuredGridVolumeRayIntegrator_h
#define __vtkUnstructuredGridVolumeRayIntegrator_h
#include "vtkObject.h"
class vtkVolume;
class vtkDoubleArray;
class vtkDataArray;
class VTK_VOLUMERENDERING_EXPORT vtkUnstructuredGridVolumeRayIntegrator : public vtkObject
{
public:
vtkTypeMacro(vtkUnstructuredGridVolumeRayIntegrator,vtkObject);
virtual void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set up the integrator with the given properties and scalars.
virtual void Initialize(vtkVolume *volume,
vtkDataArray* scalars) = 0;
// Description:
// Given a set of intersections (defined by the three arrays), compute
// the peicewise integration of the array in front to back order.
// /c intersectionLengths holds the lengths of each peicewise segment.
// /c nearIntersections and /c farIntersections hold the scalar values at
// the front and back of each segment. /c color should contain the RGBA
// value of the volume in front of the segments passed in, and the result
// will be placed back into /c color.
virtual void Integrate(vtkDoubleArray *intersectionLengths,
vtkDataArray *nearIntersections,
vtkDataArray *farIntersections,
float color[4]) = 0;
protected:
vtkUnstructuredGridVolumeRayIntegrator();
~vtkUnstructuredGridVolumeRayIntegrator();
private:
vtkUnstructuredGridVolumeRayIntegrator(const vtkUnstructuredGridVolumeRayIntegrator&); // Not implemented.
void operator=(const vtkUnstructuredGridVolumeRayIntegrator&); // Not implemented.
};
#endif
|