VTK
9.0.1
Filters
Extraction
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
43
#include "
vtkUnstructuredGridAlgorithm.h
"
44
45
class
vtkIncrementalPointLocator
;
46
47
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractUnstructuredGrid
:
public
vtkUnstructuredGridAlgorithm
48
{
49
public
:
50
vtkTypeMacro(
vtkExtractUnstructuredGrid
,
vtkUnstructuredGridAlgorithm
);
51
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
52
56
static
vtkExtractUnstructuredGrid
*
New
();
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
146
void
SetLocator
(
vtkIncrementalPointLocator
* locator);
147
vtkGetObjectMacro(Locator,
vtkIncrementalPointLocator
);
149
153
void
CreateDefaultLocator
();
154
158
vtkMTimeType
GetMTime
()
override
;
159
160
protected
:
161
vtkExtractUnstructuredGrid
();
162
~vtkExtractUnstructuredGrid
()
override
{}
163
164
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
165
166
vtkIdType
PointMinimum
;
167
vtkIdType
PointMaximum
;
168
vtkIdType
CellMinimum
;
169
vtkIdType
CellMaximum
;
170
double
Extent[6];
171
vtkTypeBool
PointClipping
;
172
vtkTypeBool
CellClipping
;
173
vtkTypeBool
ExtentClipping
;
174
175
vtkTypeBool
Merging
;
176
vtkIncrementalPointLocator
*
Locator
;
177
178
private
:
179
vtkExtractUnstructuredGrid
(
const
vtkExtractUnstructuredGrid
&) =
delete
;
180
void
operator=(
const
vtkExtractUnstructuredGrid
&) =
delete
;
181
};
182
183
#endif
vtkExtractUnstructuredGrid::CellMaximum
vtkIdType CellMaximum
Definition:
vtkExtractUnstructuredGrid.h:169
vtkExtractUnstructuredGrid::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIdType
int vtkIdType
Definition:
vtkType.h:338
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:36
vtkExtractUnstructuredGrid::PointMinimum
vtkIdType PointMinimum
Definition:
vtkExtractUnstructuredGrid.h:166
vtkExtractUnstructuredGrid::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkExtractUnstructuredGrid::Locator
vtkIncrementalPointLocator * Locator
Definition:
vtkExtractUnstructuredGrid.h:176
vtkExtractUnstructuredGrid::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
vtkExtractUnstructuredGrid::CellMinimum
vtkIdType CellMinimum
Definition:
vtkExtractUnstructuredGrid.h:168
vtkExtractUnstructuredGrid::GetExtent
double * GetExtent()
Definition:
vtkExtractUnstructuredGrid.h:127
vtkExtractUnstructuredGrid::SetExtent
void SetExtent(double extent[6])
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition:
vtkWrappingHints.h:45
vtkExtractUnstructuredGrid
extract subset of unstructured grid geometry
Definition:
vtkExtractUnstructuredGrid.h:48
vtkExtractUnstructuredGrid::vtkExtractUnstructuredGrid
vtkExtractUnstructuredGrid()
vtkExtractUnstructuredGrid::PointClipping
vtkTypeBool PointClipping
Definition:
vtkExtractUnstructuredGrid.h:171
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:34
vtkExtractUnstructuredGrid::SetExtent
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.
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition:
vtkIncrementalPointLocator.h:52
vtkExtractUnstructuredGrid::~vtkExtractUnstructuredGrid
~vtkExtractUnstructuredGrid() override
Definition:
vtkExtractUnstructuredGrid.h:162
vtkExtractUnstructuredGrid::ExtentClipping
vtkTypeBool ExtentClipping
Definition:
vtkExtractUnstructuredGrid.h:173
vtkExtractUnstructuredGrid::CellClipping
vtkTypeBool CellClipping
Definition:
vtkExtractUnstructuredGrid.h:172
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:65
vtkExtractUnstructuredGrid::PointMaximum
vtkIdType PointMaximum
Definition:
vtkExtractUnstructuredGrid.h:167
vtkExtractUnstructuredGrid::CreateDefaultLocator
void CreateDefaultLocator()
Create default locator.
vtkExtractUnstructuredGrid::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
VTK_ID_MAX
#define VTK_ID_MAX
Definition:
vtkType.h:342
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition:
vtkUnstructuredGridAlgorithm.h:41
vtkX3D::extent
@ extent
Definition:
vtkX3D.h:351
vtkExtractUnstructuredGrid::New
static vtkExtractUnstructuredGrid * New()
Construct with all types of clipping turned off.
vtkExtractUnstructuredGrid::Merging
vtkTypeBool Merging
Definition:
vtkExtractUnstructuredGrid.h:175
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition:
vtkType.h:293
Generated on Mon Jan 4 2021 21:12:05 for VTK by
1.8.20