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 =========================================================================*/
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:
59  static vtkGenericGeometryFilter *New();
61  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
62 
64 
67  vtkSetMacro(PointClipping,int);
68  vtkGetMacro(PointClipping,int);
69  vtkBooleanMacro(PointClipping,int);
71 
73 
76  vtkSetMacro(CellClipping,int);
77  vtkGetMacro(CellClipping,int);
78  vtkBooleanMacro(CellClipping,int);
80 
82 
85  vtkSetMacro(ExtentClipping,int);
86  vtkGetMacro(ExtentClipping,int);
87  vtkBooleanMacro(ExtentClipping,int);
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,
126  double zMin, double zMax);
127 
129 
132  void SetExtent(double extent[6]);
133  double *GetExtent() { return this->Extent;};
135 
137 
142  vtkSetMacro(Merging,int);
143  vtkGetMacro(Merging,int);
144  vtkBooleanMacro(Merging,int);
146 
148 
152  void SetLocator(vtkIncrementalPointLocator *locator);
153  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
155 
159  void CreateDefaultLocator();
160 
164  vtkMTimeType GetMTime() VTK_OVERRIDE;
165 
167 
173  vtkSetMacro(PassThroughCellIds,int);
174  vtkGetMacro(PassThroughCellIds,int);
175  vtkBooleanMacro(PassThroughCellIds,int);
177 
178 protected:
180  ~vtkGenericGeometryFilter() VTK_OVERRIDE;
181 
183  void PolyDataExecute(); //special cases for performance
184  void UnstructuredGridExecute();
185  void StructuredGridExecute();
187 
188  int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
189 
194  double Extent[6];
198 
199  int Merging;
201 
202  // Used internal by vtkGenericAdaptorCell::Tessellate()
204 
206 
207 private:
208  vtkGenericGeometryFilter(const vtkGenericGeometryFilter&) VTK_DELETE_FUNCTION;
209  void operator=(const vtkGenericGeometryFilter&) VTK_DELETE_FUNCTION;
210 };
211 
212 #endif
213 
214 
represent and manipulate point attribute data
Definition: vtkPointData.h:31
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:345
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
extract geometry from data (or convert data to polygonal type)
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIncrementalPointLocator * Locator
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
#define VTK_ID_MAX
Definition: vtkType.h:349
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.