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 "vtkCommonExecutionModelModule.h" // For export macro
38 #include "vtkObject.h"
39 
40 class vtkCell;
41 class vtkDataArray;
42 class vtkDataSet;
43 class vtkIdList;
44 class vtkTimeStamp;
45 
47 {
48 public:
49  vtkTypeMacro(vtkScalarTree,vtkObject);
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
54  virtual void SetDataSet(vtkDataSet*);
55  vtkGetObjectMacro(DataSet,vtkDataSet);
57 
61  virtual void BuildTree() = 0;
62 
64  virtual void Initialize() = 0;
65 
68  virtual void InitTraversal(double scalarValue) = 0;
69 
71 
75  virtual vtkCell *GetNextCell(vtkIdType &cellId, vtkIdList* &ptIds,
76  vtkDataArray *cellScalars) = 0;
78 
79 protected:
80  vtkScalarTree();
81  ~vtkScalarTree();
82 
83  vtkDataSet *DataSet; //the dataset over which the scalar tree is built
84  vtkDataArray *Scalars; //the scalars of the DataSet
85 
86  vtkTimeStamp BuildTime; //time at which tree was built
87  double ScalarValue; //current scalar value for traversal
88 
89 private:
90  vtkScalarTree(const vtkScalarTree&); // Not implemented.
91  void operator=(const vtkScalarTree&); // Not implemented.
92 };
93 
94 #endif
95 
96 
#define VTKCOMMONEXECUTIONMODEL_EXPORT
abstract base class for most VTK objects
Definition: vtkObject.h:61
double ScalarValue
Definition: vtkScalarTree.h:87
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
record modification and/or execution time
Definition: vtkTimeStamp.h:34
int vtkIdType
Definition: vtkType.h:275
vtkDataArray * Scalars
Definition: vtkScalarTree.h:84
abstract class to specify cell behavior
Definition: vtkCell.h:61
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkDataSet * DataSet
Definition: vtkScalarTree.h:83
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
organize data according to scalar values (used to accelerate contouring operations) ...
Definition: vtkScalarTree.h:46
vtkTimeStamp BuildTime
Definition: vtkScalarTree.h:86