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=========================================================================*/
41
42#ifndef vtkExtractUnstructuredGrid_h
43#define vtkExtractUnstructuredGrid_h
44
45#include "vtkFiltersExtractionModule.h" // For export macro
47
49
50class VTKFILTERSEXTRACTION_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
51{
52public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
60
62
67 vtkBooleanMacro(PointClipping, vtkTypeBool);
69
71
76 vtkBooleanMacro(CellClipping, vtkTypeBool);
78
80
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
152
157
162
163protected:
165 ~vtkExtractUnstructuredGrid() override = default;
166
168
173 double Extent[6];
177
180
181private:
183 void operator=(const vtkExtractUnstructuredGrid&) = delete;
184};
185
186#endif
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
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(...)