VTK  9.3.20240418
vtkRectilinearGridPartitioner.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 vtkRectilinearGridPartitioner_h
20 #define vtkRectilinearGridPartitioner_h
21 
22 #include "vtkFiltersGeometryModule.h" // For export macro
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkInformation;
28 class vtkIndent;
29 class vtkDoubleArray;
30 class vtkRectilinearGrid;
31 
32 class VTKFILTERSGEOMETRY_EXPORT vtkRectilinearGridPartitioner : 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  vtkGetMacro(DuplicateNodes, vtkTypeBool);
57  vtkSetMacro(DuplicateNodes, vtkTypeBool);
58  vtkBooleanMacro(DuplicateNodes, vtkTypeBool);
60 
61 protected:
64 
68  void ExtractGridCoordinates(vtkRectilinearGrid* grd, int subext[6], vtkDoubleArray* xcoords,
69  vtkDoubleArray* ycoords, vtkDoubleArray* zcoords);
70 
71  // Standard Pipeline methods
75 
79 
80 private:
82  void operator=(const vtkRectilinearGridPartitioner&) = delete;
83 };
84 
85 VTK_ABI_NAMESPACE_END
86 #endif /* vtkRectilinearGridPartitioner_h */
dynamic, self-adjusting array of double
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.
A concrete implementation of vtkMultiBlockDataSetAlgorithm that provides functionality for partitioni...
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.
void ExtractGridCoordinates(vtkRectilinearGrid *grd, int subext[6], vtkDoubleArray *xcoords, vtkDoubleArray *ycoords, vtkDoubleArray *zcoords)
Extracts the coordinates.
static vtkRectilinearGridPartitioner * New()
~vtkRectilinearGridPartitioner() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &oss, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a dataset that is topologically regular with variable spacing in the three coordinate directions
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64