VTK
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 =========================================================================*/
50 #ifndef vtkGenericGeometryFilter_h
51 #define vtkGenericGeometryFilter_h
52 
53 #include "vtkFiltersGenericModule.h" // For export macro
54 #include "vtkPolyDataAlgorithm.h"
55 
57 class vtkPointData;
58 
59 class VTKFILTERSGENERIC_EXPORT vtkGenericGeometryFilter : public vtkPolyDataAlgorithm
60 {
61 public:
62  static vtkGenericGeometryFilter *New();
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
70  vtkSetMacro(PointClipping,vtkTypeBool);
71  vtkGetMacro(PointClipping,vtkTypeBool);
72  vtkBooleanMacro(PointClipping,vtkTypeBool);
74 
76 
79  vtkSetMacro(CellClipping,vtkTypeBool);
80  vtkGetMacro(CellClipping,vtkTypeBool);
81  vtkBooleanMacro(CellClipping,vtkTypeBool);
83 
85 
88  vtkSetMacro(ExtentClipping,vtkTypeBool);
89  vtkGetMacro(ExtentClipping,vtkTypeBool);
90  vtkBooleanMacro(ExtentClipping,vtkTypeBool);
92 
94 
97  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
98  vtkGetMacro(PointMinimum,vtkIdType);
100 
102 
105  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
106  vtkGetMacro(PointMaximum,vtkIdType);
108 
110 
113  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
114  vtkGetMacro(CellMinimum,vtkIdType);
116 
118 
121  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
122  vtkGetMacro(CellMaximum,vtkIdType);
124 
128  void SetExtent(double xMin, double xMax, double yMin, double yMax,
129  double zMin, double zMax);
130 
132 
135  void SetExtent(double extent[6]);
136  double *GetExtent() { return this->Extent;};
138 
140 
145  vtkSetMacro(Merging,vtkTypeBool);
146  vtkGetMacro(Merging,vtkTypeBool);
147  vtkBooleanMacro(Merging,vtkTypeBool);
149 
151 
155  void SetLocator(vtkIncrementalPointLocator *locator);
156  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
158 
162  void CreateDefaultLocator();
163 
167  vtkMTimeType GetMTime() override;
168 
170 
176  vtkSetMacro(PassThroughCellIds,vtkTypeBool);
177  vtkGetMacro(PassThroughCellIds,vtkTypeBool);
178  vtkBooleanMacro(PassThroughCellIds,vtkTypeBool);
180 
181 protected:
183  ~vtkGenericGeometryFilter() override;
184 
186  void PolyDataExecute(); //special cases for performance
187  void UnstructuredGridExecute();
188  void StructuredGridExecute();
190 
191  int FillInputPortInformation(int, vtkInformation*) override;
192 
197  double Extent[6];
201 
204 
205  // Used internal by vtkGenericAdaptorCell::Tessellate()
207 
209 
210 private:
212  void operator=(const vtkGenericGeometryFilter&) = delete;
213 };
214 
215 #endif
216 
217 
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkGenericGeometryFilter::PointMinimum
vtkIdType PointMinimum
Definition: vtkGenericGeometryFilter.h:194
vtkPolyDataAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenericGeometryFilter::PointClipping
vtkTypeBool PointClipping
Definition: vtkGenericGeometryFilter.h:198
vtkPolyDataAlgorithm.h
vtkGenericGeometryFilter::Merging
vtkTypeBool Merging
Definition: vtkGenericGeometryFilter.h:202
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
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
vtkGenericGeometryFilter::PointMaximum
vtkIdType PointMaximum
Definition: vtkGenericGeometryFilter.h:193
vtkGenericGeometryFilter::PassThroughCellIds
vtkTypeBool PassThroughCellIds
Definition: vtkGenericGeometryFilter.h:208
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkGenericGeometryFilter::CellClipping
vtkTypeBool CellClipping
Definition: vtkGenericGeometryFilter.h:199
vtkGenericGeometryFilter
extract geometry from data (or convert data to polygonal type)
Definition: vtkGenericGeometryFilter.h:59
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkGenericGeometryFilter::CellMinimum
vtkIdType CellMinimum
Definition: vtkGenericGeometryFilter.h:195
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:351
vtkGenericGeometryFilter::ExtentClipping
vtkTypeBool ExtentClipping
Definition: vtkGenericGeometryFilter.h:200
vtkGenericGeometryFilter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkGenericGeometryFilter.h:203
vtkGenericGeometryFilter::GetExtent
double * GetExtent()
Definition: vtkGenericGeometryFilter.h:136
vtkX3D::extent
Definition: vtkX3D.h:345
vtkGenericGeometryFilter::InternalPD
vtkPointData * InternalPD
Definition: vtkGenericGeometryFilter.h:206
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkGenericGeometryFilter::CellMaximum
vtkIdType CellMaximum
Definition: vtkGenericGeometryFilter.h:196
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44