VTK  9.3.20240418
vtkStructuredGridPartitioner.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
19 #ifndef vtkStructuredGridPartitioner_h
20 #define vtkStructuredGridPartitioner_h
21 
22 #include "vtkFiltersGeometryModule.h" // For export macro
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkInformation;
28 class vtkIndent;
29 class vtkStructuredGrid;
30 class vtkPoints;
31 
32 class VTKFILTERSGEOMETRY_EXPORT vtkStructuredGridPartitioner : public vtkMultiBlockDataSetAlgorithm
33 {
34 public:
37  void PrintSelf(ostream& oss, vtkIndent indent) override;
38 
40 
43  vtkGetMacro(NumberOfPartitions, int);
44  vtkSetMacro(NumberOfPartitions, int);
46 
48 
51  vtkGetMacro(NumberOfGhostLayers, int);
52  vtkSetMacro(NumberOfGhostLayers, int);
54 
56 
59  vtkGetMacro(DuplicateNodes, vtkTypeBool);
60  vtkSetMacro(DuplicateNodes, vtkTypeBool);
61  vtkBooleanMacro(DuplicateNodes, vtkTypeBool);
63 
64 protected:
67 
71  vtkPoints* ExtractSubGridPoints(vtkStructuredGrid* wholeGrid, int subext[6]);
72 
73  // Standard Pipeline methods
77 
81 
82 private:
84  void operator=(const vtkStructuredGridPartitioner&) = delete;
85 };
86 
87 VTK_ABI_NAMESPACE_END
88 #endif /* vtkStructuredGridPartitioner_h */
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
represent and manipulate 3D points
Definition: vtkPoints.h:139
A concrete implementation of vtkMultiBlockDataSetAlgorithm that provides functionality for partitioni...
vtkPoints * ExtractSubGridPoints(vtkStructuredGrid *wholeGrid, int subext[6])
Extracts the coordinates of the sub-grid from the whole grid.
void PrintSelf(ostream &oss, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkStructuredGridPartitioner * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
~vtkStructuredGridPartitioner() override
topologically regular array of data
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64