VTK
vtkUnstructuredGridVolumeRayCastIterator.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 
3 /*=========================================================================
4 
5  Program: Visualization Toolkit
6  Module: vtkUnstructuredGridVolumeRayCastIterator.h
7 
8  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
9  All rights reserved.
10  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notice for more information.
15 
16 =========================================================================*/
17 
32 #ifndef __vtkUnstructuredGridVolumeRayCastIterator_h
33 #define __vtkUnstructuredGridVolumeRayCastIterator_h
34 
35 #include "vtkObject.h"
36 
37 class vtkIdList;
38 class vtkDoubleArray;
39 class vtkDataArray;
40 
42 {
43 public:
45  virtual void PrintSelf(ostream &os, vtkIndent indent);
46 
49  virtual void Initialize(int x, int y) = 0;
50 
52 
61  virtual vtkIdType GetNextIntersections(vtkIdList *intersectedCells,
62  vtkDoubleArray *intersectionLengths,
63  vtkDataArray *scalars,
64  vtkDataArray *nearIntersections,
65  vtkDataArray *farIntersections) = 0;
67 
69 
71  vtkSetVector2Macro(Bounds, double);
72  vtkGetVector2Macro(Bounds, double);
74 
75  // Descrption:
76  // Set/get the maximum number of intersections returned with a call to
77  // GetNextIntersections. Set to 32 by default.
78  vtkSetMacro(MaxNumberOfIntersections, vtkIdType);
79  vtkGetMacro(MaxNumberOfIntersections, vtkIdType);
80 
81 protected:
84 
85  double Bounds[2];
86 
88 
89 private:
91  void operator=(const vtkUnstructuredGridVolumeRayCastIterator&); // Not implemented.
92 };
93 
94 #endif //__vtkUnstructuredGridRayCastIterator_h
95