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  =========================================================================*/
31 #ifndef vtkRectilinearGridPartitioner_h
32 #define vtkRectilinearGridPartitioner_h
33 
34 #include "vtkFiltersGeometryModule.h" // For export macro
36 
37 class vtkInformation;
39 class vtkIndent;
40 class vtkDoubleArray;
41 class vtkRectilinearGrid;
42 
43 class VTKFILTERSGEOMETRY_EXPORT vtkRectilinearGridPartitioner :
45 {
46 public:
49  void PrintSelf(ostream &oss, vtkIndent indent) VTK_OVERRIDE;
50 
52 
55  vtkGetMacro(NumberOfPartitions,int);
56  vtkSetMacro(NumberOfPartitions,int);
58 
60 
63  vtkGetMacro(NumberOfGhostLayers,int);
64  vtkSetMacro(NumberOfGhostLayers,int);
66 
68  vtkGetMacro(DuplicateNodes,int);
69  vtkSetMacro(DuplicateNodes,int);
70  vtkBooleanMacro(DuplicateNodes,int);
72 
73 protected:
75  ~vtkRectilinearGridPartitioner() VTK_OVERRIDE;
76 
80  void ExtractGridCoordinates(
81  vtkRectilinearGrid *grd, int subext[6],
82  vtkDoubleArray *xcoords,
83  vtkDoubleArray *ycoords,
84  vtkDoubleArray *zcoords );
85 
86  // Standard Pipeline methods
87  int RequestData(
89  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
90  int FillOutputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
91 
92  int NumberOfPartitions;
93  int NumberOfGhostLayers;
94  int DuplicateNodes;
95 
96 private:
98  void operator=(const vtkRectilinearGridPartitioner &) VTK_DELETE_FUNCTION;
99 };
100 
101 #endif /* vtkRectilinearGridPartitioner_h */
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:56
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkMultiBlockDataSetAlgorithm::New
static vtkMultiBlockDataSetAlgorithm * New()
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMultiBlockDataSetAlgorithm.h
vtkMultiBlockDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:41
vtkRectilinearGridPartitioner
Definition: vtkRectilinearGridPartitioner.h:43
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:32