VTK  9.5.2
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
18#ifndef vtkIdFilter_h
19#define vtkIdFilter_h
20
21#include "vtkDataSetAlgorithm.h"
22#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_4_0
23#include "vtkFiltersCoreModule.h" // For export macro
24
25VTK_ABI_NAMESPACE_BEGIN
27 "Please use `vtkGenerateIds` instead.") VTKFILTERSCORE_EXPORT vtkIdFilter
28 : public vtkDataSetAlgorithm
29{
30public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
38 static vtkIdFilter* New();
39
41
44 vtkSetMacro(PointIds, vtkTypeBool);
45 vtkGetMacro(PointIds, vtkTypeBool);
46 vtkBooleanMacro(PointIds, vtkTypeBool);
48
50
53 vtkSetMacro(CellIds, vtkTypeBool);
54 vtkGetMacro(CellIds, vtkTypeBool);
55 vtkBooleanMacro(CellIds, vtkTypeBool);
57
59
64 vtkSetMacro(FieldData, vtkTypeBool);
65 vtkGetMacro(FieldData, vtkTypeBool);
66 vtkBooleanMacro(FieldData, vtkTypeBool);
68
70
74 vtkSetStringMacro(PointIdsArrayName);
75 vtkGetStringMacro(PointIdsArrayName);
77
79
83 vtkSetStringMacro(CellIdsArrayName);
84 vtkGetStringMacro(CellIdsArrayName);
86protected:
88 ~vtkIdFilter() override;
89
91
97
98private:
99 vtkIdFilter(const vtkIdFilter&) = delete;
100 void operator=(const vtkIdFilter&) = delete;
101};
102
103VTK_ABI_NAMESPACE_END
104#endif
Superclass for algorithms that produce output of the same type as input.
generate scalars or field data from point and cell ids
generate scalars or field data from point and cell ids
Definition: vtkIdFilter.h:29
vtkTypeBool PointIds
Definition: vtkIdFilter.h:92
static vtkIdFilter * New()
Construct object with PointIds and CellIds on; and ids being generated as scalars.
char * CellIdsArrayName
Definition: vtkIdFilter.h:96
char * PointIdsArrayName
Definition: vtkIdFilter.h:95
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
Definition: vtkIdFilter.h:94
~vtkIdFilter() override
vtkTypeBool CellIds
Definition: vtkIdFilter.h:93
a simple class to control print indentation
Definition: vtkIndent.h:29
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)