VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkGenericDataSetTessellator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericDataSetTessellator.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 =========================================================================*/
38 #ifndef __vtkGenericDataSetTessellator_h
39 #define __vtkGenericDataSetTessellator_h
40 
41 #include "vtkFiltersGenericModule.h" // For export macro
42 #include "vtkUnstructuredGridAlgorithm.h"
43 
44 class vtkPointData;
45 class vtkIncrementalPointLocator;
46 
47 class VTKFILTERSGENERIC_EXPORT vtkGenericDataSetTessellator : public vtkUnstructuredGridAlgorithm
48 {
49 public:
51 
52  static vtkGenericDataSetTessellator *New();
53  vtkTypeMacro(vtkGenericDataSetTessellator,
54  vtkUnstructuredGridAlgorithm);
55  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
63  vtkSetMacro(KeepCellIds, int);
64  vtkGetMacro(KeepCellIds, int);
65  vtkBooleanMacro(KeepCellIds, int);
67 
68 
70 
73  vtkSetMacro(Merging,int);
74  vtkGetMacro(Merging,int);
75  vtkBooleanMacro(Merging,int);
77 
79 
81  void SetLocator(vtkIncrementalPointLocator *locator);
82  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
84 
86  void CreateDefaultLocator();
87 
89  unsigned long GetMTime();
90 
91 protected:
94 
95  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
96 
97  int FillInputPortInformation(int, vtkInformation*);
98 
99  // See Set/Get KeepCellIds() for explanations.
101 
102  // Used internal by vtkGenericAdaptorCell::Tessellate()
103  vtkPointData *InternalPD;
104 
105  int Merging;
106  vtkIncrementalPointLocator *Locator;
107 
108 private:
110  void operator=(const vtkGenericDataSetTessellator&); // Not implemented.
111 };
112 
113 #endif
tessellates generic, higher-order datasets into linear cells
vtkIncrementalPointLocator * Locator