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

dox/Filtering/vtkScalarTree.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkScalarTree.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00038 #ifndef __vtkScalarTree_h 00039 #define __vtkScalarTree_h 00040 00041 #include "vtkObject.h" 00042 00043 class vtkCell; 00044 class vtkDataArray; 00045 class vtkDataSet; 00046 class vtkIdList; 00047 class vtkTimeStamp; 00048 00049 class VTK_FILTERING_EXPORT vtkScalarTree : public vtkObject 00050 { 00051 public: 00052 vtkTypeRevisionMacro(vtkScalarTree,vtkObject); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00056 00057 virtual void SetDataSet(vtkDataSet*); 00058 vtkGetObjectMacro(DataSet,vtkDataSet); 00060 00064 virtual void BuildTree() = 0; 00065 00067 virtual void Initialize() = 0; 00068 00071 virtual void InitTraversal(float scalarValue) = 0; 00072 00074 00078 virtual vtkCell *GetNextCell(vtkIdType &cellId, vtkIdList* &ptIds, 00079 vtkDataArray *cellScalars) = 0; 00081 00082 protected: 00083 vtkScalarTree(); 00084 ~vtkScalarTree(); 00085 00086 vtkDataSet *DataSet; //the dataset over which the scalar tree is built 00087 vtkDataArray *Scalars; //the scalars of the DataSet 00088 00089 vtkTimeStamp BuildTime; //time at which tree was built 00090 float ScalarValue; //current scalar value for traversal 00091 00092 private: 00093 vtkScalarTree(const vtkScalarTree&); // Not implemented. 00094 void operator=(const vtkScalarTree&); // Not implemented. 00095 }; 00096 00097 #endif 00098 00099