VTK  9.3.20240424
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
25VTK_ABI_NAMESPACE_BEGIN
26class vtkInformation;
28class vtkIndent;
29class vtkDoubleArray;
31
32class VTKFILTERSGEOMETRY_EXPORT vtkRectilinearGridPartitioner : public vtkMultiBlockDataSetAlgorithm
33{
34public:
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
61protected:
64
68 void ExtractGridCoordinates(vtkRectilinearGrid* grd, int subext[6], vtkDoubleArray* xcoords,
69 vtkDoubleArray* ycoords, vtkDoubleArray* zcoords);
70
71 // Standard Pipeline methods
73 int FillInputPortInformation(int port, vtkInformation* info) override;
74 int FillOutputPortInformation(int port, vtkInformation* info) override;
75
79
80private:
82 void operator=(const vtkRectilinearGridPartitioner&) = delete;
83};
84
85VTK_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
int vtkTypeBool
Definition vtkABI.h:64