VTK
vtkRectilinearGridPartitioner.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRectilinearGridPartitioner.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 vtkRectilinearGridPartitioner_h
29 #define vtkRectilinearGridPartitioner_h
30 
31 #include "vtkFiltersGeometryModule.h" // For export macro
33 
34 class vtkInformation;
36 class vtkIndent;
37 class vtkDoubleArray;
38 class vtkRectilinearGrid;
39 
40 class VTKFILTERSGEOMETRY_EXPORT vtkRectilinearGridPartitioner :
42 {
43 public:
46  void PrintSelf(ostream &oss, vtkIndent indent) override;
47 
49 
52  vtkGetMacro(NumberOfPartitions,int);
53  vtkSetMacro(NumberOfPartitions,int);
55 
57 
60  vtkGetMacro(NumberOfGhostLayers,int);
61  vtkSetMacro(NumberOfGhostLayers,int);
63 
65  vtkGetMacro(DuplicateNodes,vtkTypeBool);
66  vtkSetMacro(DuplicateNodes,vtkTypeBool);
67  vtkBooleanMacro(DuplicateNodes,vtkTypeBool);
69 
70 protected:
73 
77  void ExtractGridCoordinates(
78  vtkRectilinearGrid *grd, int subext[6],
79  vtkDoubleArray *xcoords,
80  vtkDoubleArray *ycoords,
81  vtkDoubleArray *zcoords );
82 
83  // Standard Pipeline methods
84  int RequestData(
88 
92 
93 private:
95  void operator=(const vtkRectilinearGridPartitioner &) = delete;
96 };
97 
98 #endif /* vtkRectilinearGridPartitioner_h */
a dataset that is topologically regular with variable spacing in the three coordinate directions
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
dynamic, self-adjusting array of double
static vtkMultiBlockDataSetAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
A concrete implementation of vtkMultiBlockDataSetAlgorithm that provides functionality for partitioni...
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.