VTK
dox
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
=========================================================================*/
45
#ifndef vtkExtractUnstructuredGrid_h
46
#define vtkExtractUnstructuredGrid_h
47
48
#include "vtkFiltersExtractionModule.h"
// For export macro
49
#include "
vtkUnstructuredGridAlgorithm.h
"
50
51
class
vtkIncrementalPointLocator
;
52
53
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractUnstructuredGrid
:
public
vtkUnstructuredGridAlgorithm
54
{
55
public
:
56
vtkTypeMacro(
vtkExtractUnstructuredGrid
,
vtkUnstructuredGridAlgorithm
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
58
62
static
vtkExtractUnstructuredGrid
*
New
();
63
65
68
vtkSetMacro(PointClipping,
vtkTypeBool
);
69
vtkGetMacro(PointClipping,
vtkTypeBool
);
70
vtkBooleanMacro(PointClipping,
vtkTypeBool
);
72
74
77
vtkSetMacro(CellClipping,
vtkTypeBool
);
78
vtkGetMacro(CellClipping,
vtkTypeBool
);
79
vtkBooleanMacro(CellClipping,
vtkTypeBool
);
81
83
86
vtkSetMacro(ExtentClipping,
vtkTypeBool
);
87
vtkGetMacro(ExtentClipping,
vtkTypeBool
);
88
vtkBooleanMacro(ExtentClipping,
vtkTypeBool
);
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
()
VTK_SIZEHINT
(6) {
return
this->Extent;};
136
138
143
vtkSetMacro(Merging,
vtkTypeBool
);
144
vtkGetMacro(Merging,
vtkTypeBool
);
145
vtkBooleanMacro(Merging,
vtkTypeBool
);
147
149
153
void
SetLocator
(
vtkIncrementalPointLocator
*locator);
154
vtkGetObjectMacro(Locator,
vtkIncrementalPointLocator
);
156
160
void
CreateDefaultLocator
();
161
165
vtkMTimeType
GetMTime
()
override
;
166
167
protected
:
168
vtkExtractUnstructuredGrid
();
169
~vtkExtractUnstructuredGrid
()
override
{}
170
171
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
172
173
vtkIdType
PointMinimum
;
174
vtkIdType
PointMaximum
;
175
vtkIdType
CellMinimum
;
176
vtkIdType
CellMaximum
;
177
double
Extent[6];
178
vtkTypeBool
PointClipping
;
179
vtkTypeBool
CellClipping
;
180
vtkTypeBool
ExtentClipping
;
181
182
vtkTypeBool
Merging
;
183
vtkIncrementalPointLocator
*
Locator
;
184
private
:
185
vtkExtractUnstructuredGrid
(
const
vtkExtractUnstructuredGrid
&) =
delete
;
186
void
operator=(
const
vtkExtractUnstructuredGrid
&) =
delete
;
187
};
188
189
#endif
190
191
vtkExtractUnstructuredGrid::CellMaximum
vtkIdType CellMaximum
Definition:
vtkExtractUnstructuredGrid.h:176
vtkExtractUnstructuredGrid::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:42
vtkExtractUnstructuredGrid::PointMinimum
vtkIdType PointMinimum
Definition:
vtkExtractUnstructuredGrid.h:173
vtkExtractUnstructuredGrid::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkExtractUnstructuredGrid::Locator
vtkIncrementalPointLocator * Locator
Definition:
vtkExtractUnstructuredGrid.h:183
vtkExtractUnstructuredGrid::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
vtkExtractUnstructuredGrid::CellMinimum
vtkIdType CellMinimum
Definition:
vtkExtractUnstructuredGrid.h:175
vtkExtractUnstructuredGrid::GetExtent
double * GetExtent()
Definition:
vtkExtractUnstructuredGrid.h:134
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:42
vtkExtractUnstructuredGrid
extract subset of unstructured grid geometry
Definition:
vtkExtractUnstructuredGrid.h:54
vtkExtractUnstructuredGrid::vtkExtractUnstructuredGrid
vtkExtractUnstructuredGrid()
vtkExtractUnstructuredGrid::PointClipping
vtkTypeBool PointClipping
Definition:
vtkExtractUnstructuredGrid.h:178
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
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:169
vtkExtractUnstructuredGrid::ExtentClipping
vtkTypeBool ExtentClipping
Definition:
vtkExtractUnstructuredGrid.h:180
vtkExtractUnstructuredGrid::CellClipping
vtkTypeBool CellClipping
Definition:
vtkExtractUnstructuredGrid.h:179
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:87
vtkExtractUnstructuredGrid::PointMaximum
vtkIdType PointMaximum
Definition:
vtkExtractUnstructuredGrid.h:174
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:351
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition:
vtkUnstructuredGridAlgorithm.h:41
vtkX3D::extent
@ extent
Definition:
vtkX3D.h:345
vtkExtractUnstructuredGrid::New
static vtkExtractUnstructuredGrid * New()
Construct with all types of clipping turned off.
vtkExtractUnstructuredGrid::Merging
vtkTypeBool Merging
Definition:
vtkExtractUnstructuredGrid.h:182
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition:
vtkType.h:302
Generated by
1.8.18