Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkUnstructuredGridVolumeRayCastIterator.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 
00003 /*=========================================================================
00004 
00005   Program:   Visualization Toolkit
00006   Module:    $RCSfile: vtkUnstructuredGridVolumeRayCastIterator.h,v $
00007 
00008   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00009   All rights reserved.
00010   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notice for more information.
00015 
00016 =========================================================================*/
00017 
00042 #ifndef __vtkUnstructuredGridRayCastIterator_h
00043 #define __vtkUnstructuredGridRayCastIterator_h
00044 
00045 #include "vtkObject.h"
00046 
00047 class vtkIdList;
00048 class vtkDoubleArray;
00049 class vtkDataArray;
00050 
00051 class VTK_RENDERING_EXPORT vtkUnstructuredGridVolumeRayCastIterator : public vtkObject
00052 {
00053 public:
00054   vtkTypeRevisionMacro(vtkUnstructuredGridVolumeRayCastIterator, vtkObject);
00055   virtual void PrintSelf(ostream &os, vtkIndent indent);
00056 
00059   virtual void Initialize(int x, int y) = 0;
00060 
00062 
00071   virtual vtkIdType GetNextIntersections(vtkIdList *intersectedCells,
00072                                          vtkDoubleArray *intersectionLengths,
00073                                          vtkDataArray *scalars,
00074                                          vtkDataArray *nearIntersections,
00075                                          vtkDataArray *farIntersections) = 0;
00077 
00079 
00081   vtkSetVector2Macro(Bounds, double);
00082   vtkGetVector2Macro(Bounds, double);
00084 
00085   // Descrption:
00086   // Set/get the maximum number of intersections returned with a call to
00087   // GetNextIntersections.  Set to 32 by default.
00088   vtkSetMacro(MaxNumberOfIntersections, vtkIdType);
00089   vtkGetMacro(MaxNumberOfIntersections, vtkIdType);
00090 
00091 protected:
00092   vtkUnstructuredGridVolumeRayCastIterator();
00093   ~vtkUnstructuredGridVolumeRayCastIterator();
00094 
00095   double Bounds[2];
00096 
00097   vtkIdType MaxNumberOfIntersections;
00098 
00099 private:
00100   vtkUnstructuredGridVolumeRayCastIterator(const vtkUnstructuredGridVolumeRayCastIterator&);  // Not implemented.
00101   void operator=(const vtkUnstructuredGridVolumeRayCastIterator&);  // Not implemented.
00102 };
00103 
00104 #endif //__vtkUnstructuredGridRayCastIterator_h
00105