VTK  9.4.20241218
vtkIdFilter.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
127#ifndef vtkIdFilter_h
128#define vtkIdFilter_h
129
130#include "vtkDataSetAlgorithm.h"
131#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_4_0
132#include "vtkFiltersCoreModule.h" // For export macro
133
134VTK_ABI_NAMESPACE_BEGIN
136 "Please use `vtkGenerateIds` instead.") VTKFILTERSCORE_EXPORT vtkIdFilter
137 : public vtkDataSetAlgorithm
138{
139public:
141 void PrintSelf(ostream& os, vtkIndent indent) override;
142
147 static vtkIdFilter* New();
148
150
153 vtkSetMacro(PointIds, vtkTypeBool);
154 vtkGetMacro(PointIds, vtkTypeBool);
155 vtkBooleanMacro(PointIds, vtkTypeBool);
157
159
162 vtkSetMacro(CellIds, vtkTypeBool);
163 vtkGetMacro(CellIds, vtkTypeBool);
164 vtkBooleanMacro(CellIds, vtkTypeBool);
166
168
173 vtkSetMacro(FieldData, vtkTypeBool);
174 vtkGetMacro(FieldData, vtkTypeBool);
175 vtkBooleanMacro(FieldData, vtkTypeBool);
177
179
183 vtkSetStringMacro(PointIdsArrayName);
184 vtkGetStringMacro(PointIdsArrayName);
186
188
192 vtkSetStringMacro(CellIdsArrayName);
193 vtkGetStringMacro(CellIdsArrayName);
195protected:
197 ~vtkIdFilter() override;
198
200
206
207private:
208 vtkIdFilter(const vtkIdFilter&) = delete;
209 void operator=(const vtkIdFilter&) = delete;
210};
211
212VTK_ABI_NAMESPACE_END
213#endif
Superclass for algorithms that produce output of the same type as input.
generate scalars or field data from point and cell ids
vtkTypeBool PointIds
static vtkIdFilter * New()
Construct object with PointIds and CellIds on; and ids being generated as scalars.
char * CellIdsArrayName
char * PointIdsArrayName
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool FieldData
~vtkIdFilter() override
vtkTypeBool CellIds
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_DEPRECATED_IN_9_4_0(reason)