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 
39 VTK_ABI_NAMESPACE_BEGIN
40 class VTKFILTERSCORE_EXPORT vtkIdFilter : public vtkDataSetAlgorithm
41 {
42 public:
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);
98 protected:
100  ~vtkIdFilter() override;
101 
103 
109 
110 private:
111  vtkIdFilter(const vtkIdFilter&) = delete;
112  void operator=(const vtkIdFilter&) = delete;
113 };
114 
115 VTK_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
Definition: vtkIdFilter.h:104
char * CellIdsArrayName
Definition: vtkIdFilter.h:108
char * PointIdsArrayName
Definition: vtkIdFilter.h:107
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:106
static vtkIdFilter * New()
Construct object with PointIds and CellIds on; and ids being generated as scalars.
~vtkIdFilter() override
vtkTypeBool CellIds
Definition: vtkIdFilter.h:105
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