VTK  9.3.1
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 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkIdTypeArray;
28 
29 class VTKFILTERSPARALLEL_EXPORT vtkGenerateProcessIds : public vtkDataSetAlgorithm
30 {
31 public:
32  static vtkGenerateProcessIds* New();
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 
62  virtual void SetController(vtkMultiProcessController*);
63  vtkMultiProcessController* GetController();
65 
66 protected:
68  ~vtkGenerateProcessIds() override;
69 
70  // Append the pieces.
72 
73 private:
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 
87 VTK_ABI_NAMESPACE_END
88 #endif
Sets ProcessIds attribute for PointData and/or CellData.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:315
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
Multiprocessing communication superclass.