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 
53 class VTKFILTERSEXTRACTION_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
54 {
55 public:
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 
153  void SetLocator(vtkIncrementalPointLocator *locator);
154  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
156 
160  void CreateDefaultLocator();
161 
166 
167 protected:
170 
172 
177  double Extent[6];
181 
182  int Merging;
184 private:
185  vtkExtractUnstructuredGrid(const vtkExtractUnstructuredGrid&) VTK_DELETE_FUNCTION;
186  void operator=(const vtkExtractUnstructuredGrid&) VTK_DELETE_FUNCTION;
187 };
188 
189 #endif
190 
191 
vtkExtractUnstructuredGrid::CellMaximum
vtkIdType CellMaximum
Definition: vtkExtractUnstructuredGrid.h:176
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkExtractUnstructuredGrid::PointMinimum
vtkIdType PointMinimum
Definition: vtkExtractUnstructuredGrid.h:173
vtkExtractUnstructuredGrid::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkExtractUnstructuredGrid.h:183
vtkExtractUnstructuredGrid::CellMinimum
vtkIdType CellMinimum
Definition: vtkExtractUnstructuredGrid.h:175
vtkExtractUnstructuredGrid::GetExtent
double * GetExtent()
Definition: vtkExtractUnstructuredGrid.h:134
vtkExtractUnstructuredGrid::ExtentClipping
int ExtentClipping
Definition: vtkExtractUnstructuredGrid.h:180
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkExtractUnstructuredGrid::PointClipping
int PointClipping
Definition: vtkExtractUnstructuredGrid.h:178
vtkExtractUnstructuredGrid
extract subset of unstructured grid geometry
Definition: vtkExtractUnstructuredGrid.h:53
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkUnstructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:51
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkExtractUnstructuredGrid::PointMaximum
vtkIdType PointMaximum
Definition: vtkExtractUnstructuredGrid.h:174
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:291
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractUnstructuredGrid::~vtkExtractUnstructuredGrid
~vtkExtractUnstructuredGrid()
Definition: vtkExtractUnstructuredGrid.h:169
vtkUnstructuredGridAlgorithm.h
vtkExtractUnstructuredGrid::CellClipping
int CellClipping
Definition: vtkExtractUnstructuredGrid.h:179
vtkExtractUnstructuredGrid::Merging
int Merging
Definition: vtkExtractUnstructuredGrid.h:182
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345