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
24 #ifndef vtkIdFilter_h
25 #define vtkIdFilter_h
26 
27 #include "vtkDataSetAlgorithm.h"
28 #include "vtkFiltersCoreModule.h" // For export macro
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKFILTERSCORE_EXPORT vtkIdFilter : public vtkDataSetAlgorithm
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
41  static vtkIdFilter* New();
42 
44 
47  vtkSetMacro(PointIds, vtkTypeBool);
48  vtkGetMacro(PointIds, vtkTypeBool);
49  vtkBooleanMacro(PointIds, vtkTypeBool);
51 
53 
56  vtkSetMacro(CellIds, vtkTypeBool);
57  vtkGetMacro(CellIds, vtkTypeBool);
58  vtkBooleanMacro(CellIds, vtkTypeBool);
60 
62 
67  vtkSetMacro(FieldData, vtkTypeBool);
68  vtkGetMacro(FieldData, vtkTypeBool);
69  vtkBooleanMacro(FieldData, vtkTypeBool);
71 
73 
77  vtkSetStringMacro(PointIdsArrayName);
78  vtkGetStringMacro(PointIdsArrayName);
80 
82 
86  vtkSetStringMacro(CellIdsArrayName);
87  vtkGetStringMacro(CellIdsArrayName);
89 protected:
91  ~vtkIdFilter() override;
92 
94 
100 
101 private:
102  vtkIdFilter(const vtkIdFilter&) = delete;
103  void operator=(const vtkIdFilter&) = delete;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #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:32
vtkTypeBool PointIds
Definition: vtkIdFilter.h:95
char * CellIdsArrayName
Definition: vtkIdFilter.h:99
char * PointIdsArrayName
Definition: vtkIdFilter.h:98
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:97
static vtkIdFilter * New()
Construct object with PointIds and CellIds on; and ids being generated as scalars.
~vtkIdFilter() override
vtkTypeBool CellIds
Definition: vtkIdFilter.h:96
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