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:
64  void PrintSelf(ostream& os, vtkIndent indent);
65 
67 
70  vtkSetMacro(PointClipping,int);
71  vtkGetMacro(PointClipping,int);
72  vtkBooleanMacro(PointClipping,int);
74 
76 
79  vtkSetMacro(CellClipping,int);
80  vtkGetMacro(CellClipping,int);
81  vtkBooleanMacro(CellClipping,int);
83 
85 
88  vtkSetMacro(ExtentClipping,int);
89  vtkGetMacro(ExtentClipping,int);
90  vtkBooleanMacro(ExtentClipping,int);
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,int);
146  vtkGetMacro(Merging,int);
147  vtkBooleanMacro(Merging,int);
149 
151 
156  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
158 
163 
168 
170 
176  vtkSetMacro(PassThroughCellIds,int);
177  vtkGetMacro(PassThroughCellIds,int);
178  vtkBooleanMacro(PassThroughCellIds,int);
180 
181 protected:
184 
186  void PolyDataExecute(); //special cases for performance
190 
192 
197  double Extent[6];
201 
202  int Merging;
204 
205  // Used internal by vtkGenericAdaptorCell::Tessellate()
207 
209 
210 private:
211  vtkGenericGeometryFilter(const vtkGenericGeometryFilter&) VTK_DELETE_FUNCTION;
212  void operator=(const vtkGenericGeometryFilter&) VTK_DELETE_FUNCTION;
213 };
214 
215 #endif
216 
217 
extract geometry from data (or convert data to polygonal type)
static vtkGenericGeometryFilter * New()
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
void SetExtent(double extent[6])
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void CreateDefaultLocator()
Create default locator.
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.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
vtkMTimeType GetMTime()
Return the MTime also considering the locator.
vtkIncrementalPointLocator * Locator
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:38
Superclass for algorithms that produce only polydata as output.
@ extent
Definition: vtkX3D.h:345
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
#define VTK_ID_MAX
Definition: vtkType.h:291