VTK  9.4.20241016
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>
29template <typename T>
31template <typename Type>
33
34class VTKFILTERSPARALLEL_EXPORT vtkGenerateProcessIds : public vtkDataSetAlgorithm
35{
36public:
38
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
47 vtkSetMacro(GeneratePointData, bool);
48 vtkGetMacro(GeneratePointData, bool);
49 vtkBooleanMacro(GeneratePointData, bool);
51
53
57 vtkSetMacro(GenerateCellData, bool);
58 vtkGetMacro(GenerateCellData, bool);
59 vtkBooleanMacro(GenerateCellData, bool);
61
63
70
71protected:
74
75 // Append the pieces.
77
78private:
80 void operator=(const vtkGenerateProcessIds&) = delete;
81
86 vtkIdType piece, vtkIdType numberOfTuples);
87
88 bool GeneratePointData = true;
89 bool GenerateCellData = false;
91};
92
93VTK_ABI_NAMESPACE_END
94#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:315