VTK  9.3.0
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
33#ifndef vtkIdFilter_h
34#define vtkIdFilter_h
35
36#include "vtkDataSetAlgorithm.h"
37#include "vtkFiltersCoreModule.h" // For export macro
38
39VTK_ABI_NAMESPACE_BEGIN
40class VTKFILTERSCORE_EXPORT vtkIdFilter : public vtkDataSetAlgorithm
41{
42public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
50 static vtkIdFilter* New();
51
53
56 vtkSetMacro(PointIds, vtkTypeBool);
57 vtkGetMacro(PointIds, vtkTypeBool);
58 vtkBooleanMacro(PointIds, vtkTypeBool);
60
62
65 vtkSetMacro(CellIds, vtkTypeBool);
66 vtkGetMacro(CellIds, vtkTypeBool);
67 vtkBooleanMacro(CellIds, vtkTypeBool);
69
71
76 vtkSetMacro(FieldData, vtkTypeBool);
77 vtkGetMacro(FieldData, vtkTypeBool);
78 vtkBooleanMacro(FieldData, vtkTypeBool);
80
82
86 vtkSetStringMacro(PointIdsArrayName);
87 vtkGetStringMacro(PointIdsArrayName);
89
91
95 vtkSetStringMacro(CellIdsArrayName);
96 vtkGetStringMacro(CellIdsArrayName);
98protected:
100 ~vtkIdFilter() override;
101
103
109
110private:
111 vtkIdFilter(const vtkIdFilter&) = delete;
112 void operator=(const vtkIdFilter&) = delete;
113};
114
115VTK_ABI_NAMESPACE_END
116#endif
Superclass for algorithms that produce output of the same type as input.
generate scalars or field data from point and cell ids
Definition vtkIdFilter.h:41
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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64