VTK  9.2.6
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 =========================================================================*/
42 #ifndef vtkExtractUnstructuredGrid_h
43 #define vtkExtractUnstructuredGrid_h
44 
45 #include "vtkFiltersExtractionModule.h" // For export macro
47 
49 
50 class VTKFILTERSEXTRACTION_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
51 {
52 public:
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
60 
62 
65  vtkSetMacro(PointClipping, vtkTypeBool);
66  vtkGetMacro(PointClipping, vtkTypeBool);
67  vtkBooleanMacro(PointClipping, vtkTypeBool);
69 
71 
74  vtkSetMacro(CellClipping, vtkTypeBool);
75  vtkGetMacro(CellClipping, vtkTypeBool);
76  vtkBooleanMacro(CellClipping, vtkTypeBool);
78 
80 
83  vtkSetMacro(ExtentClipping, vtkTypeBool);
84  vtkGetMacro(ExtentClipping, vtkTypeBool);
85  vtkBooleanMacro(ExtentClipping, vtkTypeBool);
87 
89 
92  vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
93  vtkGetMacro(PointMinimum, vtkIdType);
95 
97 
100  vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
101  vtkGetMacro(PointMaximum, vtkIdType);
103 
105 
108  vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
109  vtkGetMacro(CellMinimum, vtkIdType);
111 
113 
116  vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
117  vtkGetMacro(CellMaximum, vtkIdType);
119 
123  void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
124 
126 
129  void SetExtent(double extent[6]);
130  double* GetExtent() VTK_SIZEHINT(6) { return this->Extent; }
132 
134 
139  vtkSetMacro(Merging, vtkTypeBool);
140  vtkGetMacro(Merging, vtkTypeBool);
141  vtkBooleanMacro(Merging, vtkTypeBool);
143 
145 
149  void SetLocator(vtkIncrementalPointLocator* locator);
150  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
152 
156  void CreateDefaultLocator();
157 
161  vtkMTimeType GetMTime() override;
162 
163 protected:
165  ~vtkExtractUnstructuredGrid() override = default;
166 
168 
173  double Extent[6];
177 
180 
181 private:
183  void operator=(const vtkExtractUnstructuredGrid&) = delete;
184 };
185 
186 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
static vtkUnstructuredGridAlgorithm * New()
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:332
int vtkTypeBool
Definition: vtkABI.h:69
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.
#define VTK_SIZEHINT(...)
Superclass for algorithms that produce only unstructured grid as output.
#define VTK_ID_MAX
Definition: vtkType.h:336
vtkIncrementalPointLocator * Locator
Store zero or more vtkInformation instances.
extract subset of unstructured grid geometry