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 
abstract base class for most VTK objects
Definition: vtkObject.h:60
double ScalarValue
Definition: vtkScalarTree.h:86
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
record modification and/or execution time
Definition: vtkTimeStamp.h:33
int vtkIdType
Definition: vtkType.h:255
Detect and break reference loops.
vtkDataArray * Scalars
Definition: vtkScalarTree.h:83
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkDataSet * DataSet
Definition: vtkScalarTree.h:82
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void ReportReferences(vtkGarbageCollector *)
list of point or cell ids
Definition: vtkIdList.h:34
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
organize data according to scalar values (used to accelerate contouring operations) ...
Definition: vtkScalarTree.h:45
vtkTimeStamp BuildTime
Definition: vtkScalarTree.h:85