VTK  9.3.20240425
vtkImageDataGeometryFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
138#ifndef vtkImageDataGeometryFilter_h
139#define vtkImageDataGeometryFilter_h
140
141#include "vtkFiltersGeometryModule.h" // For export macro
142#include "vtkPolyDataAlgorithm.h"
143
144VTK_ABI_NAMESPACE_BEGIN
145class VTKFILTERSGEOMETRY_EXPORT vtkImageDataGeometryFilter : public vtkPolyDataAlgorithm
146{
147public:
149 void PrintSelf(ostream& os, vtkIndent indent) override;
150
155
157
160 void SetExtent(int extent[6]);
161 void SetExtent(int iMin, int iMax, int jMin, int jMax, int kMin, int kMax);
162 int* GetExtent() VTK_SIZEHINT(6) { return this->Extent; }
164
166
171 vtkSetMacro(ThresholdCells, vtkTypeBool);
172 vtkGetMacro(ThresholdCells, vtkTypeBool);
173 vtkBooleanMacro(ThresholdCells, vtkTypeBool);
175
177
182 vtkSetMacro(ThresholdValue, double);
183 vtkGetMacro(ThresholdValue, double);
184 vtkBooleanMacro(ThresholdValue, double);
186
188
193 vtkSetMacro(OutputTriangles, vtkTypeBool);
194 vtkGetMacro(OutputTriangles, vtkTypeBool);
195 vtkBooleanMacro(OutputTriangles, vtkTypeBool);
197
198protected:
200 ~vtkImageDataGeometryFilter() override = default;
201
203 int FillInputPortInformation(int port, vtkInformation* info) override;
204
205 int Extent[6];
209
210private:
212 void operator=(const vtkImageDataGeometryFilter&) = delete;
213};
214
215VTK_ABI_NAMESPACE_END
216#endif
extract geometry for structured points
static vtkImageDataGeometryFilter * New()
Construct with initial extent of all the data.
void SetExtent(int extent[6])
Set / get the extent (imin,imax, jmin,jmax, kmin,kmax) indices.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int * GetExtent()
Set / get the extent (imin,imax, jmin,jmax, kmin,kmax) indices.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkImageDataGeometryFilter() override=default
void SetExtent(int iMin, int iMax, int jMin, int jMax, int kMin, int kMax)
Set / get the extent (imin,imax, jmin,jmax, kmin,kmax) indices.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_SIZEHINT(...)