VTK  9.1.0
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=========================================================================*/
39#ifndef vtkExtractUnstructuredGrid_h
40#define vtkExtractUnstructuredGrid_h
41
42#include "vtkFiltersExtractionModule.h" // For export macro
44
46
47class VTKFILTERSEXTRACTION_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
48{
49public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
57
59
62 vtkSetMacro(PointClipping, vtkTypeBool);
63 vtkGetMacro(PointClipping, vtkTypeBool);
64 vtkBooleanMacro(PointClipping, vtkTypeBool);
66
68
71 vtkSetMacro(CellClipping, vtkTypeBool);
72 vtkGetMacro(CellClipping, vtkTypeBool);
73 vtkBooleanMacro(CellClipping, vtkTypeBool);
75
77
80 vtkSetMacro(ExtentClipping, vtkTypeBool);
81 vtkGetMacro(ExtentClipping, vtkTypeBool);
82 vtkBooleanMacro(ExtentClipping, vtkTypeBool);
84
86
89 vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
90 vtkGetMacro(PointMinimum, vtkIdType);
92
94
97 vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
98 vtkGetMacro(PointMaximum, vtkIdType);
100
102
105 vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
106 vtkGetMacro(CellMinimum, vtkIdType);
108
110
113 vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
114 vtkGetMacro(CellMaximum, vtkIdType);
116
120 void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
121
123
126 void SetExtent(double extent[6]);
127 double* GetExtent() VTK_SIZEHINT(6) { return this->Extent; }
129
131
136 vtkSetMacro(Merging, vtkTypeBool);
137 vtkGetMacro(Merging, vtkTypeBool);
138 vtkBooleanMacro(Merging, vtkTypeBool);
140
142
147 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
149
154
159
160protected:
162 ~vtkExtractUnstructuredGrid() override = default;
163
165
170 double Extent[6];
174
177
178private:
180 void operator=(const vtkExtractUnstructuredGrid&) = delete;
181};
182
183#endif
extract subset of unstructured grid geometry
void SetExtent(double extent[6])
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
Specify a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
static vtkExtractUnstructuredGrid * New()
Construct with all types of clipping turned off.
vtkIncrementalPointLocator * Locator
void CreateDefaultLocator()
Create default locator.
~vtkExtractUnstructuredGrid() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only unstructured grid as output.
@ extent
Definition: vtkX3D.h:351
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332
#define VTK_ID_MAX
Definition: vtkType.h:336
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_SIZEHINT(...)