VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  =========================================================================*/
30 #ifndef VTKRECTILINEARGRIDPARTITIONER_H_
31 #define VTKRECTILINEARGRIDPARTITIONER_H_
32 
33 #include "vtkFiltersGeometryModule.h" // For export macro
34 #include "vtkMultiBlockDataSetAlgorithm.h"
35 
36 class vtkInformation;
37 class vtkInformationVector;
38 class vtkIndent;
39 class vtkDoubleArray;
40 class vtkRectilinearGrid;
41 
42 class VTKFILTERSGEOMETRY_EXPORT vtkRectilinearGridPartitioner :
43  public vtkMultiBlockDataSetAlgorithm
44 {
45 public:
46  static vtkRectilinearGridPartitioner *New();
47  vtkTypeMacro(vtkRectilinearGridPartitioner, vtkMultiBlockDataSetAlgorithm);
48  void PrintSelf(ostream &oss, vtkIndent indent);
49 
51 
52  vtkGetMacro(NumberOfPartitions,int);
53  vtkSetMacro(NumberOfPartitions,int);
55 
57 
58  vtkGetMacro(NumberOfGhostLayers,int);
59  vtkSetMacro(NumberOfGhostLayers,int);
61 
62 protected:
65 
67 
68  void ExtractGridCoordinates(
69  vtkRectilinearGrid *grd, int subext[6],
70  vtkDoubleArray *xcoords,
71  vtkDoubleArray *ycoords,
72  vtkDoubleArray *zcoords );
74 
75  // Standard Pipeline methods
76  virtual int RequestData(
77  vtkInformation*,vtkInformationVector**,vtkInformationVector*);
78  virtual int FillInputPortInformation(int port, vtkInformation *info);
79  virtual int FillOutputPortInformation(int port, vtkInformation *info);
80 
83 
84 private:
86  void operator=(const vtkRectilinearGridPartitioner &); // Not implemented
87 };
88 
89 #endif /* VTKRECTILINEARGRIDPARTITIONER_H_ */