VTK  9.3.0
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
26class vtkIdTypeArray;
28
29class VTKFILTERSPARALLEL_EXPORT vtkGenerateProcessIds : public vtkDataSetAlgorithm
30{
31public:
33
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
42 vtkSetMacro(GeneratePointData, bool);
43 vtkGetMacro(GeneratePointData, bool);
44 vtkBooleanMacro(GeneratePointData, bool);
46
48
52 vtkSetMacro(GenerateCellData, bool);
53 vtkGetMacro(GenerateCellData, bool);
54 vtkBooleanMacro(GenerateCellData, bool);
56
58
65
66protected:
69
70 // Append the pieces.
72
73private:
75 void operator=(const vtkGenerateProcessIds&) = delete;
76
80 vtkSmartPointer<vtkIdTypeArray> GenerateProcessIds(vtkIdType piece, vtkIdType numberOfTuples);
81
82 bool GeneratePointData = true;
83 bool GenerateCellData = false;
85};
86
87VTK_ABI_NAMESPACE_END
88#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.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:29
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:315