VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
46 #include "vtkFiltersGeometryModule.h" // For export macro
48 
50 class vtkHashTableOfSurfels; // internal class
51 
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
61  vtkSetMacro(PointClipping,int);
62  vtkGetMacro(PointClipping,int);
63  vtkBooleanMacro(PointClipping,int);
65 
67 
68  vtkSetMacro(CellClipping,int);
69  vtkGetMacro(CellClipping,int);
70  vtkBooleanMacro(CellClipping,int);
72 
74 
75  vtkSetMacro(ExtentClipping,int);
76  vtkGetMacro(ExtentClipping,int);
77  vtkBooleanMacro(ExtentClipping,int);
79 
81 
82  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
83  vtkGetMacro(PointMinimum,vtkIdType);
85 
87 
88  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
89  vtkGetMacro(PointMaximum,vtkIdType);
91 
93 
94  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
95  vtkGetMacro(CellMinimum,vtkIdType);
97 
99 
100  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
101  vtkGetMacro(CellMaximum,vtkIdType);
103 
105 
107  void SetExtent(double xMin, double xMax, double yMin, double yMax,
108  double zMin, double zMax);
110 
112 
114  void SetExtent(double extent[6]);
115  double *GetExtent() { return this->Extent;};
117 
119 
122  vtkSetMacro(Merging,int);
123  vtkGetMacro(Merging,int);
124  vtkBooleanMacro(Merging,int);
126 
128 
134  vtkSetMacro(PassThroughCellIds,int);
135  vtkGetMacro(PassThroughCellIds,int);
136  vtkBooleanMacro(PassThroughCellIds,int);
137  vtkSetMacro(PassThroughPointIds,int);
138  vtkGetMacro(PassThroughPointIds,int);
139  vtkBooleanMacro(PassThroughPointIds,int);
141 
143 
147  vtkSetStringMacro(OriginalCellIdsName);
148  virtual const char *GetOriginalCellIdsName() {
149  return ( this->OriginalCellIdsName
150  ? this->OriginalCellIdsName : "vtkOriginalCellIds");
151  }
152  vtkSetStringMacro(OriginalPointIdsName);
153  virtual const char *GetOriginalPointIdsName() {
154  return ( this->OriginalPointIdsName
155  ? this->OriginalPointIdsName : "vtkOriginalPointIds");
156  }
158 
160 
162  void SetLocator(vtkIncrementalPointLocator *locator);
165 
167  void CreateDefaultLocator();
168 
170  unsigned long GetMTime();
171 
172 protected:
175 
178 
180 
185  double Extent[6];
189 
194 
195  int Merging;
197 
198  vtkHashTableOfSurfels *HashTable;
199 
200 private:
202  void operator=(const vtkUnstructuredGridGeometryFilter&); // Not implemented.
203 };
204 
205 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
static vtkUnstructuredGridAlgorithm * New()
Abstract class in support of both point location and point insertion.
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:133
virtual int FillInputPortInformation(int port, vtkInformation *info)
int vtkIdType
Definition: vtkType.h:268
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:94
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only unstructured grid as output.
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
extract geometry from an unstructured grid
#define VTK_ID_MAX
Definition: vtkType.h:271
Store zero or more vtkInformation instances.
#define vtkBooleanMacro(name, type)
Definition: vtkSetGet.h:234
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKFILTERSGEOMETRY_EXPORT
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69