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 =========================================================================*/
49 #ifndef vtkGenericGeometryFilter_h
50 #define vtkGenericGeometryFilter_h
51 
52 #include "vtkFiltersGenericModule.h" // For export macro
53 #include "vtkPolyDataAlgorithm.h"
54 
56 class vtkPointData;
57 
59 {
60 public:
61  static vtkGenericGeometryFilter *New();
63  void PrintSelf(ostream& os, vtkIndent indent);
64 
66 
67  vtkSetMacro(PointClipping,int);
68  vtkGetMacro(PointClipping,int);
69  vtkBooleanMacro(PointClipping,int);
71 
73 
74  vtkSetMacro(CellClipping,int);
75  vtkGetMacro(CellClipping,int);
76  vtkBooleanMacro(CellClipping,int);
78 
80 
81  vtkSetMacro(ExtentClipping,int);
82  vtkGetMacro(ExtentClipping,int);
83  vtkBooleanMacro(ExtentClipping,int);
85 
87 
88  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
89  vtkGetMacro(PointMinimum,vtkIdType);
91 
93 
94  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
95  vtkGetMacro(PointMaximum,vtkIdType);
97 
99 
100  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
101  vtkGetMacro(CellMinimum,vtkIdType);
103 
105 
106  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
107  vtkGetMacro(CellMaximum,vtkIdType);
109 
111 
113  void SetExtent(double xMin, double xMax, double yMin, double yMax,
114  double zMin, double zMax);
116 
118 
120  void SetExtent(double extent[6]);
121  double *GetExtent() { return this->Extent;};
123 
125 
128  vtkSetMacro(Merging,int);
129  vtkGetMacro(Merging,int);
130  vtkBooleanMacro(Merging,int);
132 
134 
136  void SetLocator(vtkIncrementalPointLocator *locator);
137  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
139 
141  void CreateDefaultLocator();
142 
144  unsigned long GetMTime();
145 
147 
151  vtkSetMacro(PassThroughCellIds,int);
152  vtkGetMacro(PassThroughCellIds,int);
153  vtkBooleanMacro(PassThroughCellIds,int);
155 
156 protected:
159 
161  void PolyDataExecute(); //special cases for performance
162  void UnstructuredGridExecute();
163  void StructuredGridExecute();
166 
168 
173  double Extent[6];
177 
178  int Merging;
180 
181  // Used internal by vtkGenericAdaptorCell::Tessellate()
183 
185 
186 private:
187  vtkGenericGeometryFilter(const vtkGenericGeometryFilter&); // Not implemented.
188  void operator=(const vtkGenericGeometryFilter&); // Not implemented.
189 };
190 
191 #endif
192 
193 
virtual int FillInputPortInformation(int port, vtkInformation *info)
represent and manipulate point attribute data
Definition: vtkPointData.h:36
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Abstract class in support of both point location and point insertion.
#define VTKFILTERSGENERIC_EXPORT
int vtkIdType
Definition: vtkType.h:275
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Superclass for algorithms that produce only polydata as output.
extract geometry from data (or convert data to polygonal type)
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIncrementalPointLocator * Locator
#define VTK_ID_MAX
Definition: vtkType.h:278
Store zero or more vtkInformation instances.