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 =========================================================================*/
45 #ifndef vtkExtractUnstructuredGrid_h
46 #define vtkExtractUnstructuredGrid_h
47 
48 #include "vtkFiltersExtractionModule.h" // For export macro
50 
52 
53 class VTKFILTERSEXTRACTION_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
54 {
55 public:
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
63 
65 
68  vtkSetMacro(PointClipping,int);
69  vtkGetMacro(PointClipping,int);
70  vtkBooleanMacro(PointClipping,int);
72 
74 
77  vtkSetMacro(CellClipping,int);
78  vtkGetMacro(CellClipping,int);
79  vtkBooleanMacro(CellClipping,int);
81 
83 
86  vtkSetMacro(ExtentClipping,int);
87  vtkGetMacro(ExtentClipping,int);
88  vtkBooleanMacro(ExtentClipping,int);
90 
92 
95  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
96  vtkGetMacro(PointMinimum,vtkIdType);
98 
100 
103  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
104  vtkGetMacro(PointMaximum,vtkIdType);
106 
108 
111  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
112  vtkGetMacro(CellMinimum,vtkIdType);
114 
116 
119  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
120  vtkGetMacro(CellMaximum,vtkIdType);
122 
126  void SetExtent(double xMin, double xMax, double yMin, double yMax,
127  double zMin, double zMax);
128 
130 
133  void SetExtent(double extent[6]);
134  double *GetExtent() { return this->Extent;};
136 
138 
143  vtkSetMacro(Merging,int);
144  vtkGetMacro(Merging,int);
145  vtkBooleanMacro(Merging,int);
147 
149 
153  void SetLocator(vtkIncrementalPointLocator *locator);
154  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
156 
160  void CreateDefaultLocator();
161 
166 
167 protected:
170 
172 
177  double Extent[6];
181 
182  int Merging;
184 private:
185  vtkExtractUnstructuredGrid(const vtkExtractUnstructuredGrid&) VTK_DELETE_FUNCTION;
186  void operator=(const vtkExtractUnstructuredGrid&) VTK_DELETE_FUNCTION;
187 };
188 
189 #endif
190 
191 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:287
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Superclass for algorithms that produce only unstructured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
#define VTK_ID_MAX
Definition: vtkType.h:291
vtkIncrementalPointLocator * Locator
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
extract subset of unstructured grid geometry