VTK
vtkExtractUnstructuredGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractUnstructuredGrid.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 =========================================================================*/
44 #ifndef vtkExtractUnstructuredGrid_h
45 #define vtkExtractUnstructuredGrid_h
46 
47 #include "vtkFiltersExtractionModule.h" // For export macro
49 
51 
53 {
54 public:
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
60 
62 
63  vtkSetMacro(PointClipping,int);
64  vtkGetMacro(PointClipping,int);
65  vtkBooleanMacro(PointClipping,int);
67 
69 
70  vtkSetMacro(CellClipping,int);
71  vtkGetMacro(CellClipping,int);
72  vtkBooleanMacro(CellClipping,int);
74 
76 
77  vtkSetMacro(ExtentClipping,int);
78  vtkGetMacro(ExtentClipping,int);
79  vtkBooleanMacro(ExtentClipping,int);
81 
83 
84  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
85  vtkGetMacro(PointMinimum,vtkIdType);
87 
89 
90  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
91  vtkGetMacro(PointMaximum,vtkIdType);
93 
95 
96  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
97  vtkGetMacro(CellMinimum,vtkIdType);
99 
101 
102  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
103  vtkGetMacro(CellMaximum,vtkIdType);
105 
107 
109  void SetExtent(double xMin, double xMax, double yMin, double yMax,
110  double zMin, double zMax);
112 
114 
116  void SetExtent(double extent[6]);
117  double *GetExtent() { return this->Extent;};
119 
121 
124  vtkSetMacro(Merging,int);
125  vtkGetMacro(Merging,int);
126  vtkBooleanMacro(Merging,int);
128 
130 
132  void SetLocator(vtkIncrementalPointLocator *locator);
133  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
135 
137  void CreateDefaultLocator();
138 
140  unsigned long GetMTime();
141 
142 protected:
145 
147 
152  double Extent[6];
156 
157  int Merging;
159 private:
160  vtkExtractUnstructuredGrid(const vtkExtractUnstructuredGrid&); // Not implemented.
161  void operator=(const vtkExtractUnstructuredGrid&); // Not implemented.
162 };
163 
164 #endif
165 
166 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:275
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKFILTERSEXTRACTION_EXPORT
Superclass for algorithms that produce only unstructured grid as output.
#define VTK_ID_MAX
Definition: vtkType.h:278
vtkIncrementalPointLocator * Locator
Store zero or more vtkInformation instances.
extract subset of unstructured grid geometry