VTK  9.0.2
vtkStructuredGridPartitioner.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStructuredGridPartitioner.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14  =========================================================================*/
28 #ifndef vtkStructuredGridPartitioner_h
29 #define vtkStructuredGridPartitioner_h
30 
31 #include "vtkFiltersGeometryModule.h" // For export macro
33 
34 class vtkInformation;
36 class vtkIndent;
37 class vtkStructuredGrid;
38 class vtkPoints;
39 
40 class VTKFILTERSGEOMETRY_EXPORT vtkStructuredGridPartitioner : public vtkMultiBlockDataSetAlgorithm
41 {
42 public:
45  void PrintSelf(ostream& oss, vtkIndent indent) override;
46 
48 
51  vtkGetMacro(NumberOfPartitions, int);
52  vtkSetMacro(NumberOfPartitions, int);
54 
56 
59  vtkGetMacro(NumberOfGhostLayers, int);
60  vtkSetMacro(NumberOfGhostLayers, int);
62 
64 
67  vtkGetMacro(DuplicateNodes, vtkTypeBool);
68  vtkSetMacro(DuplicateNodes, vtkTypeBool);
69  vtkBooleanMacro(DuplicateNodes, vtkTypeBool);
71 
72 protected:
75 
79  vtkPoints* ExtractSubGridPoints(vtkStructuredGrid* wholeGrid, int subext[6]);
80 
81  // Standard Pipeline methods
85 
89 
90 private:
92  void operator=(const vtkStructuredGridPartitioner&) = delete;
93 };
94 
95 #endif /* vtkStructuredGridPartitioner_h */
a simple class to control print indentation
Definition: vtkIndent.h:34
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:34
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:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69