00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkUnstructuredGridVolumeRayIntegrator.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00033 #ifndef __vtkUnstructuredGridVolumeRayIntegrator_h 00034 #define __vtkUnstructuredGridVolumeRayIntegrator_h 00035 00036 #include "vtkObject.h" 00037 00038 class vtkVolume; 00039 class vtkDoubleArray; 00040 class vtkDataArray; 00041 00042 class VTK_VOLUMERENDERING_EXPORT vtkUnstructuredGridVolumeRayIntegrator : public vtkObject 00043 { 00044 public: 00045 vtkTypeMacro(vtkUnstructuredGridVolumeRayIntegrator,vtkObject); 00046 virtual void PrintSelf(ostream& os, vtkIndent indent); 00047 00049 00050 virtual void Initialize(vtkVolume *volume, 00051 vtkDataArray* scalars) = 0; 00053 00055 00062 virtual void Integrate(vtkDoubleArray *intersectionLengths, 00063 vtkDataArray *nearIntersections, 00064 vtkDataArray *farIntersections, 00065 float color[4]) = 0; 00067 00068 protected: 00069 vtkUnstructuredGridVolumeRayIntegrator(); 00070 ~vtkUnstructuredGridVolumeRayIntegrator(); 00071 00072 private: 00073 vtkUnstructuredGridVolumeRayIntegrator(const vtkUnstructuredGridVolumeRayIntegrator&); // Not implemented. 00074 void operator=(const vtkUnstructuredGridVolumeRayIntegrator&); // Not implemented. 00075 }; 00076 00077 #endif 00078