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
53class VTKFILTERSEXTRACTION_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
54{
55public:
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
154 vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
156
161
166
167protected:
170
172
177 double Extent[6];
181
184private:
185 vtkExtractUnstructuredGrid(const vtkExtractUnstructuredGrid&) VTK_DELETE_FUNCTION;
186 void operator=(const vtkExtractUnstructuredGrid&) VTK_DELETE_FUNCTION;
187};
188
189#endif
190
191
extract subset of unstructured grid geometry
vtkMTimeType GetMTime()
Return the MTime also considering the locator.
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.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
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.
Superclass for algorithms that produce only unstructured grid as output.
@ extent
Definition: vtkX3D.h:345
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
#define VTK_ID_MAX
Definition: vtkType.h:291