VTK  9.0.1
vtkGenericGeometryFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericGeometryFilter.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 =========================================================================*/
47 #ifndef vtkGenericGeometryFilter_h
48 #define vtkGenericGeometryFilter_h
49 
50 #include "vtkFiltersGenericModule.h" // For export macro
51 #include "vtkPolyDataAlgorithm.h"
52 
54 class vtkPointData;
55 
56 class VTKFILTERSGENERIC_EXPORT vtkGenericGeometryFilter : public vtkPolyDataAlgorithm
57 {
58 public:
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
67  vtkSetMacro(PointClipping, vtkTypeBool);
68  vtkGetMacro(PointClipping, vtkTypeBool);
69  vtkBooleanMacro(PointClipping, vtkTypeBool);
71 
73 
76  vtkSetMacro(CellClipping, vtkTypeBool);
77  vtkGetMacro(CellClipping, vtkTypeBool);
78  vtkBooleanMacro(CellClipping, vtkTypeBool);
80 
82 
85  vtkSetMacro(ExtentClipping, vtkTypeBool);
86  vtkGetMacro(ExtentClipping, vtkTypeBool);
87  vtkBooleanMacro(ExtentClipping, vtkTypeBool);
89 
91 
94  vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
95  vtkGetMacro(PointMinimum, vtkIdType);
97 
99 
102  vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
103  vtkGetMacro(PointMaximum, vtkIdType);
105 
107 
110  vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
111  vtkGetMacro(CellMinimum, vtkIdType);
113 
115 
118  vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
119  vtkGetMacro(CellMaximum, vtkIdType);
121 
125  void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
126 
128 
131  void SetExtent(double extent[6]);
132  double* GetExtent() { return this->Extent; }
134 
136 
141  vtkSetMacro(Merging, vtkTypeBool);
142  vtkGetMacro(Merging, vtkTypeBool);
143  vtkBooleanMacro(Merging, vtkTypeBool);
145 
147 
152  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
154 
159 
163  vtkMTimeType GetMTime() override;
164 
166 
172  vtkSetMacro(PassThroughCellIds, vtkTypeBool);
173  vtkGetMacro(PassThroughCellIds, vtkTypeBool);
174  vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
176 
177 protected:
180 
182  void PolyDataExecute(); // special cases for performance
186 
188 
193  double Extent[6];
197 
200 
201  // Used internal by vtkGenericAdaptorCell::Tessellate()
203 
205 
206 private:
208  void operator=(const vtkGenericGeometryFilter&) = delete;
209 };
210 
211 #endif
vtkGenericGeometryFilter::StructuredGridExecute
void StructuredGridExecute()
vtkGenericGeometryFilter::~vtkGenericGeometryFilter
~vtkGenericGeometryFilter() override
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:32
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkGenericGeometryFilter::CreateDefaultLocator
void CreateDefaultLocator()
Create default locator.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkGenericGeometryFilter::PointMinimum
vtkIdType PointMinimum
Definition: vtkGenericGeometryFilter.h:190
vtkGenericGeometryFilter::SetExtent
void SetExtent(double extent[6])
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
vtkGenericGeometryFilter::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkGenericGeometryFilter::PointClipping
vtkTypeBool PointClipping
Definition: vtkGenericGeometryFilter.h:194
vtkGenericGeometryFilter::PolyDataExecute
void PolyDataExecute()
vtkPolyDataAlgorithm.h
vtkGenericGeometryFilter::Merging
vtkTypeBool Merging
Definition: vtkGenericGeometryFilter.h:198
vtkGenericGeometryFilter::vtkGenericGeometryFilter
vtkGenericGeometryFilter()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:52
vtkGenericGeometryFilter::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkGenericGeometryFilter::PointMaximum
vtkIdType PointMaximum
Definition: vtkGenericGeometryFilter.h:189
vtkGenericGeometryFilter::PassThroughCellIds
vtkTypeBool PassThroughCellIds
Definition: vtkGenericGeometryFilter.h:204
vtkGenericGeometryFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenericGeometryFilter::CellClipping
vtkTypeBool CellClipping
Definition: vtkGenericGeometryFilter.h:195
vtkGenericGeometryFilter
extract geometry from data (or convert data to polygonal type)
Definition: vtkGenericGeometryFilter.h:57
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkGenericGeometryFilter::CellMinimum
vtkIdType CellMinimum
Definition: vtkGenericGeometryFilter.h:191
vtkGenericGeometryFilter::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkGenericGeometryFilter::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:342
vtkGenericGeometryFilter::New
static vtkGenericGeometryFilter * New()
vtkGenericGeometryFilter::ExtentClipping
vtkTypeBool ExtentClipping
Definition: vtkGenericGeometryFilter.h:196
vtkGenericGeometryFilter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkGenericGeometryFilter.h:199
vtkGenericGeometryFilter::GetExtent
double * GetExtent()
Definition: vtkGenericGeometryFilter.h:132
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkGenericGeometryFilter::UnstructuredGridExecute
void UnstructuredGridExecute()
vtkGenericGeometryFilter::InternalPD
vtkPointData * InternalPD
Definition: vtkGenericGeometryFilter.h:202
vtkGenericGeometryFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkGenericGeometryFilter::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.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkGenericGeometryFilter::CellMaximum
vtkIdType CellMaximum
Definition: vtkGenericGeometryFilter.h:192
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:42