VTK
vtkUnstructuredGridGeometryFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridGeometryFilter.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 =========================================================================*/
43 #ifndef __vtkUnstructuredGridGeometryFilter_h
44 #define __vtkUnstructuredGridGeometryFilter_h
45 
47 
49 class vtkHashTableOfSurfels; // internal class
50 
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  vtkSetMacro(PointClipping,int);
61  vtkGetMacro(PointClipping,int);
62  vtkBooleanMacro(PointClipping,int);
64 
66 
67  vtkSetMacro(CellClipping,int);
68  vtkGetMacro(CellClipping,int);
69  vtkBooleanMacro(CellClipping,int);
71 
73 
74  vtkSetMacro(ExtentClipping,int);
75  vtkGetMacro(ExtentClipping,int);
76  vtkBooleanMacro(ExtentClipping,int);
78 
80 
81  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
82  vtkGetMacro(PointMinimum,vtkIdType);
84 
86 
87  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
88  vtkGetMacro(PointMaximum,vtkIdType);
90 
92 
93  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
94  vtkGetMacro(CellMinimum,vtkIdType);
96 
98 
99  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
100  vtkGetMacro(CellMaximum,vtkIdType);
102 
104 
106  void SetExtent(double xMin, double xMax, double yMin, double yMax,
107  double zMin, double zMax);
109 
111 
113  void SetExtent(double extent[6]);
114  double *GetExtent() { return this->Extent;};
116 
118 
121  vtkSetMacro(Merging,int);
122  vtkGetMacro(Merging,int);
123  vtkBooleanMacro(Merging,int);
125 
127 
133  vtkSetMacro(PassThroughCellIds,int);
134  vtkGetMacro(PassThroughCellIds,int);
135  vtkBooleanMacro(PassThroughCellIds,int);
136  vtkSetMacro(PassThroughPointIds,int);
137  vtkGetMacro(PassThroughPointIds,int);
138  vtkBooleanMacro(PassThroughPointIds,int);
140 
142 
146  vtkSetStringMacro(OriginalCellIdsName);
147  virtual const char *GetOriginalCellIdsName() {
148  return ( this->OriginalCellIdsName
149  ? this->OriginalCellIdsName : "vtkOriginalCellIds");
150  }
151  vtkSetStringMacro(OriginalPointIdsName);
152  virtual const char *GetOriginalPointIdsName() {
153  return ( this->OriginalPointIdsName
154  ? this->OriginalPointIdsName : "vtkOriginalPointIds");
155  }
157 
159 
161  void SetLocator(vtkIncrementalPointLocator *locator);
162  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
164 
166  void CreateDefaultLocator();
167 
169  unsigned long GetMTime();
170 
171 protected:
174 
177 
179 
184  double Extent[6];
188 
193 
194  int Merging;
196 
197  vtkHashTableOfSurfels *HashTable;
198 
199 private:
201  void operator=(const vtkUnstructuredGridGeometryFilter&); // Not implemented.
202 };
203 
204 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
Abstract class in support of both point location and point insertion.
virtual int FillInputPortInformation(int port, vtkInformation *info)
int vtkIdType
Definition: vtkType.h:255
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:37
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only unstructured grid as output.
extract geometry from an unstructured grid
#define VTK_LARGE_ID
Definition: vtkType.h:257
Store zero or more vtkInformation instances.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)