VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Common/ExecutionModel/vtkUniformGridPartitioner.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003  Program:   Visualization Toolkit
00004  Module:    vtkUniformGridPartitioner.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 VTKUNIFORMGRIDPARTITIONER_H_
00031 #define VTKUNIFORMGRIDPARTITIONER_H_
00032 
00033 #include "vtkCommonExecutionModelModule.h" // For export macro
00034 #include "vtkMultiBlockDataSetAlgorithm.h"
00035 
00036 class vtkInformation;
00037 class vtkInformationVector;
00038 class vtkIndent;
00039 
00040 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUniformGridPartitioner :
00041   public vtkMultiBlockDataSetAlgorithm
00042 {
00043   public:
00044       static vtkUniformGridPartitioner *New();
00045       vtkTypeMacro(vtkUniformGridPartitioner, vtkMultiBlockDataSetAlgorithm);
00046       void PrintSelf(ostream &oss, vtkIndent indent );
00047 
00049 
00050       vtkGetMacro(NumberOfPartitions,int);
00051       vtkSetMacro(NumberOfPartitions,int);
00053 
00055 
00056       vtkGetMacro(NumberOfGhostLayers,int);
00057       vtkSetMacro(NumberOfGhostLayers,int);
00059 
00061       vtkGetMacro(DuplicateNodes,int);
00062       vtkSetMacro(DuplicateNodes,int);
00063       vtkBooleanMacro(DuplicateNodes,int);
00065 
00066   protected:
00067     vtkUniformGridPartitioner();
00068     virtual ~vtkUniformGridPartitioner();
00069 
00070     // Standard Pipeline methods
00071     virtual int RequestData(
00072        vtkInformation*,vtkInformationVector**,vtkInformationVector*);
00073     virtual int FillInputPortInformation(int port, vtkInformation *info);
00074     virtual int FillOutputPortInformation(int port, vtkInformation *info);
00075 
00076     int NumberOfPartitions;
00077     int NumberOfGhostLayers;
00078     int DuplicateNodes;
00079   private:
00080     vtkUniformGridPartitioner(const vtkUniformGridPartitioner &); // Not implemented
00081     void operator=(const vtkUniformGridPartitioner &); // Not implemented
00082 
00083 };
00084 
00085 #endif /* VTKUNIFORMGRIDPARTITIONER_H_ */