VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPDataSetGhostGenerator.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 =========================================================================*/ 00026 #ifndef VTKPDATASETGHOSTGENERATOR_H_ 00027 #define VTKPDATASETGHOSTGENERATOR_H_ 00028 00029 #include "vtkFiltersParallelGeometryModule.h" // For export macro 00030 #include "vtkDataSetGhostGenerator.h" 00031 00032 class vtkMultiProcessController; 00033 class vtkMultiBlockDataSet; 00034 00035 class VTKFILTERSPARALLELGEOMETRY_EXPORT vtkPDataSetGhostGenerator : 00036 public vtkDataSetGhostGenerator 00037 { 00038 public: 00039 vtkTypeMacro(vtkPDataSetGhostGenerator,vtkDataSetGhostGenerator); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 00045 vtkSetMacro(Controller, vtkMultiProcessController*); 00046 vtkGetMacro(Controller, vtkMultiProcessController*); 00048 00050 void Initialize(); 00051 00053 void Barrier(); 00054 00055 protected: 00056 vtkPDataSetGhostGenerator(); 00057 virtual ~vtkPDataSetGhostGenerator(); 00058 00060 00061 virtual void GenerateGhostLayers( 00062 vtkMultiBlockDataSet *in, vtkMultiBlockDataSet *out)=0; 00064 00065 int Rank; 00066 bool Initialized; 00067 vtkMultiProcessController *Controller; 00068 00069 private: 00070 vtkPDataSetGhostGenerator(const vtkPDataSetGhostGenerator&); // Not implemented 00071 void operator=(const vtkPDataSetGhostGenerator&); // Not implemented 00072 }; 00073 00074 #endif /* VTKPDATASETGHOSTGENERATOR_H_ */