VTK
9.2.6
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
42
#ifndef vtkExtractUnstructuredGrid_h
43
#define vtkExtractUnstructuredGrid_h
44
45
#include "vtkFiltersExtractionModule.h"
// For export macro
46
#include "
vtkUnstructuredGridAlgorithm.h
"
47
48
class
vtkIncrementalPointLocator
;
49
50
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractUnstructuredGrid
:
public
vtkUnstructuredGridAlgorithm
51
{
52
public
:
53
vtkTypeMacro(
vtkExtractUnstructuredGrid
,
vtkUnstructuredGridAlgorithm
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
55
59
static
vtkExtractUnstructuredGrid
*
New
();
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
:
164
vtkExtractUnstructuredGrid
();
165
~vtkExtractUnstructuredGrid
()
override
=
default
;
166
167
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
168
169
vtkIdType
PointMinimum
;
170
vtkIdType
PointMaximum
;
171
vtkIdType
CellMinimum
;
172
vtkIdType
CellMaximum
;
173
double
Extent[6];
174
vtkTypeBool
PointClipping
;
175
vtkTypeBool
CellClipping
;
176
vtkTypeBool
ExtentClipping
;
177
178
vtkTypeBool
Merging
;
179
vtkIncrementalPointLocator
*
Locator
;
180
181
private
:
182
vtkExtractUnstructuredGrid
(
const
vtkExtractUnstructuredGrid
&) =
delete
;
183
void
operator=(
const
vtkExtractUnstructuredGrid
&) =
delete
;
184
};
185
186
#endif
vtkExtractUnstructuredGrid
extract subset of unstructured grid geometry
Definition
vtkExtractUnstructuredGrid.h:51
vtkExtractUnstructuredGrid::SetExtent
void SetExtent(double extent[6])
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
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.
vtkExtractUnstructuredGrid::Merging
vtkTypeBool Merging
Definition
vtkExtractUnstructuredGrid.h:178
vtkExtractUnstructuredGrid::New
static vtkExtractUnstructuredGrid * New()
Construct with all types of clipping turned off.
vtkExtractUnstructuredGrid::Locator
vtkIncrementalPointLocator * Locator
Definition
vtkExtractUnstructuredGrid.h:179
vtkExtractUnstructuredGrid::CreateDefaultLocator
void CreateDefaultLocator()
Create default locator.
vtkExtractUnstructuredGrid::~vtkExtractUnstructuredGrid
~vtkExtractUnstructuredGrid() override=default
vtkExtractUnstructuredGrid::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractUnstructuredGrid::CellMaximum
vtkIdType CellMaximum
Definition
vtkExtractUnstructuredGrid.h:172
vtkExtractUnstructuredGrid::ExtentClipping
vtkTypeBool ExtentClipping
Definition
vtkExtractUnstructuredGrid.h:176
vtkExtractUnstructuredGrid::CellClipping
vtkTypeBool CellClipping
Definition
vtkExtractUnstructuredGrid.h:175
vtkExtractUnstructuredGrid::CellMinimum
vtkIdType CellMinimum
Definition
vtkExtractUnstructuredGrid.h:171
vtkExtractUnstructuredGrid::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
vtkExtractUnstructuredGrid::PointClipping
vtkTypeBool PointClipping
Definition
vtkExtractUnstructuredGrid.h:174
vtkExtractUnstructuredGrid::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkExtractUnstructuredGrid::PointMinimum
vtkIdType PointMinimum
Definition
vtkExtractUnstructuredGrid.h:169
vtkExtractUnstructuredGrid::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractUnstructuredGrid::vtkExtractUnstructuredGrid
vtkExtractUnstructuredGrid()
vtkExtractUnstructuredGrid::GetExtent
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
Definition
vtkExtractUnstructuredGrid.h:130
vtkExtractUnstructuredGrid::PointMaximum
vtkIdType PointMaximum
Definition
vtkExtractUnstructuredGrid.h:170
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition
vtkIncrementalPointLocator.h:52
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:74
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition
vtkUnstructuredGridAlgorithm.h:41
vtkTypeBool
int vtkTypeBool
Definition
vtkABI.h:69
vtkIdType
int vtkIdType
Definition
vtkType.h:332
VTK_ID_MAX
#define VTK_ID_MAX
Definition
vtkType.h:336
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition
vtkType.h:287
vtkUnstructuredGridAlgorithm.h
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition
vtkWrappingHints.h:48
Generated on Fri Nov 8 2024 00:00:00 for VTK by
1.12.0