VTK  9.6.20260318
vtkGenerateProcessIds.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
16
17#ifndef vtkGenerateProcessIds_h
18#define vtkGenerateProcessIds_h
19
20#include "vtkDataSetAlgorithm.h"
21#include "vtkFiltersParallelModule.h" // For export macro
22#include "vtkSmartPointer.h" // For vtkSmartPointer
23#include "vtkWeakPointer.h" // For vtkWeakPointer
24
25VTK_ABI_NAMESPACE_BEGIN
27template <typename T>
29
30class VTKFILTERSPARALLEL_EXPORT vtkGenerateProcessIds : public vtkDataSetAlgorithm
31{
32public:
34
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
43 vtkSetMacro(GeneratePointData, bool);
44 vtkGetMacro(GeneratePointData, bool);
45 vtkBooleanMacro(GeneratePointData, bool);
47
49
53 vtkSetMacro(GenerateCellData, bool);
54 vtkGetMacro(GenerateCellData, bool);
55 vtkBooleanMacro(GenerateCellData, bool);
57
59
66
67protected:
70
71 // Append the pieces.
73
74private:
76 void operator=(const vtkGenerateProcessIds&) = delete;
77
82 vtkIdType piece, vtkIdType numberOfTuples);
83
84 bool GeneratePointData = true;
85 bool GenerateCellData = false;
87};
88
89VTK_ABI_NAMESPACE_END
90#endif
A utility array for wrapping constant functions in implicit arrays.
virtual void SetController(vtkMultiProcessController *)
By default this filter uses the global controller, but this method can be used to set another instead...
~vtkGenerateProcessIds() override
vtkMultiProcessController * GetController()
By default this filter uses the global controller, but this method can be used to set another instead...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkGenerateProcessIds * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
Hold a reference to a vtkObjectBase instance.
a weak reference to a vtkObject.
int vtkIdType
Definition vtkType.h:363