VTK
dox/Filters/Geometry/vtkStructuredGridPartitioner.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003  Program:   Visualization Toolkit
00004  Module:    vtkStructuredGridPartitioner.h
00005 
00006  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007  All rights reserved.
00008  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010  This software is distributed WITHOUT ANY WARRANTY; without even
00011  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012  PURPOSE.  See the above copyright notice for more information.
00013 
00014  =========================================================================*/
00030 #ifndef VTKSTRUCTUREDGRIDPARTITIONER_H_
00031 #define VTKSTRUCTUREDGRIDPARTITIONER_H_
00032 
00033 #include "vtkFiltersGeometryModule.h" // For export macro
00034 #include "vtkMultiBlockDataSetAlgorithm.h"
00035 
00036 class vtkInformation;
00037 class vtkInformationVector;
00038 class vtkIndent;
00039 class vtkStructuredGrid;
00040 class vtkPoints;
00041 
00042 class VTKFILTERSGEOMETRY_EXPORT vtkStructuredGridPartitioner :
00043   public vtkMultiBlockDataSetAlgorithm
00044 {
00045 public:
00046   static vtkStructuredGridPartitioner *New();
00047   vtkTypeMacro(vtkStructuredGridPartitioner, vtkMultiBlockDataSetAlgorithm);
00048   void PrintSelf(ostream &oss, vtkIndent indent );
00049 
00051 
00052   vtkGetMacro(NumberOfPartitions,int);
00053   vtkSetMacro(NumberOfPartitions,int);
00055 
00057 
00058   vtkGetMacro(NumberOfGhostLayers,int);
00059   vtkSetMacro(NumberOfGhostLayers,int);
00061 
00062 protected:
00063   vtkStructuredGridPartitioner();
00064   virtual ~vtkStructuredGridPartitioner();
00065 
00067   vtkPoints* ExtractSubGridPoints(vtkStructuredGrid *wholeGrid,int subext[6]);
00068 
00069   // Standard Pipeline methods
00070   virtual int RequestData(
00071      vtkInformation*,vtkInformationVector**,vtkInformationVector*);
00072   virtual int FillInputPortInformation(int port, vtkInformation *info);
00073   virtual int FillOutputPortInformation(int port, vtkInformation *info);
00074 
00075   int NumberOfPartitions;
00076   int NumberOfGhostLayers;
00077 private:
00078   vtkStructuredGridPartitioner(const vtkStructuredGridPartitioner &); // Not implemented
00079   void operator=(const vtkStructuredGridPartitioner &); // Not implemented
00080 };
00081 
00082 #endif /* VTKSTRUCTUREDGRIDPARTITIONER_H_ */