VTK  9.5.20251112
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
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, int ArrayType>
29template <typename T>
31template <typename Type>
34
35class VTKFILTERSPARALLEL_EXPORT vtkGenerateProcessIds : public vtkDataSetAlgorithm
36{
37public:
39
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
48 vtkSetMacro(GeneratePointData, bool);
49 vtkGetMacro(GeneratePointData, bool);
50 vtkBooleanMacro(GeneratePointData, bool);
52
54
58 vtkSetMacro(GenerateCellData, bool);
59 vtkGetMacro(GenerateCellData, bool);
60 vtkBooleanMacro(GenerateCellData, bool);
62
64
71
72protected:
75
76 // Append the pieces.
78
79private:
81 void operator=(const vtkGenerateProcessIds&) = delete;
82
87 vtkIdType piece, vtkIdType numberOfTuples);
88
89 bool GeneratePointData = true;
90 bool GenerateCellData = false;
92};
93
94VTK_ABI_NAMESPACE_END
95#endif
Superclass for algorithms that produce output of the same type as input.
Sets ProcessIds attribute for PointData and/or CellData.
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 read only array class that wraps an implicit function from integers to any value type supported by ...
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.
A utility structure serving as a backend for constant implicit arrays.
int vtkIdType
Definition vtkType.h:367
@ VTK_CONSTANT_ARRAY
Definition vtkType.h:93