VTK
vtkScalarTree.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkScalarTree.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 =========================================================================*/
34 #ifndef __vtkScalarTree_h
35 #define __vtkScalarTree_h
36 
37 #include "vtkObject.h"
38 
39 class vtkCell;
40 class vtkDataArray;
41 class vtkDataSet;
42 class vtkIdList;
43 class vtkTimeStamp;
44 
46 {
47 public:
48  vtkTypeMacro(vtkScalarTree,vtkObject);
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
53  virtual void SetDataSet(vtkDataSet*);
54  vtkGetObjectMacro(DataSet,vtkDataSet);
56 
60  virtual void BuildTree() = 0;
61 
63  virtual void Initialize() = 0;
64 
67  virtual void InitTraversal(double scalarValue) = 0;
68 
70 
74  virtual vtkCell *GetNextCell(vtkIdType &cellId, vtkIdList* &ptIds,
75  vtkDataArray *cellScalars) = 0;
77 
78 protected:
79  vtkScalarTree();
80  ~vtkScalarTree();
81 
82  vtkDataSet *DataSet; //the dataset over which the scalar tree is built
83  vtkDataArray *Scalars; //the scalars of the DataSet
84 
85  vtkTimeStamp BuildTime; //time at which tree was built
86  double ScalarValue; //current scalar value for traversal
87 
89 
90 private:
91  vtkScalarTree(const vtkScalarTree&); // Not implemented.
92  void operator=(const vtkScalarTree&); // Not implemented.
93 };
94 
95 #endif
96 
97