VTK  9.7.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
27 template <typename T>
28 class vtkConstantArray;
29 
30 class VTKFILTERSPARALLEL_EXPORT vtkGenerateProcessIds : public vtkDataSetAlgorithm
31 {
32 public:
33  static vtkGenerateProcessIds* New();
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 
63  virtual void SetController(vtkMultiProcessController*);
64  vtkMultiProcessController* GetController();
66 
67 protected:
69  ~vtkGenerateProcessIds() override;
70 
71  // Append the pieces.
73 
74 private:
76  void operator=(const vtkGenerateProcessIds&) = delete;
77 
82  vtkIdType piece, vtkIdType numberOfTuples);
83 
84  bool GeneratePointData = true;
85  bool GenerateCellData = false;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
Sets ProcessIds attribute for PointData and/or CellData.
Store vtkAlgorithm input/output information.
A utility array for wrapping constant functions in implicit arrays.
Hold a reference to a vtkObjectBase instance.
Definition: vtkMeta.h:23
int vtkIdType
Definition: vtkType.h:363
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.