VTK
dox/Filters/Geometry/vtkDataSetGhostGenerator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003  Program:   Visualization Toolkit
00004  Module:    vtkDataSetGhostGenerator.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 VTKDATASETGHOSTGENERATOR_H_
00031 #define VTKDATASETGHOSTGENERATOR_H_
00032 
00033 #include "vtkFiltersGeometryModule.h" // For export macro
00034 #include "vtkMultiBlockDataSetAlgorithm.h"
00035 
00036 // Forward Declarations
00037 class vtkInformation;
00038 class vtkInformationVector;
00039 class vtkMultiBlockDataSet;
00040 
00041 class VTKFILTERSGEOMETRY_EXPORT vtkDataSetGhostGenerator:
00042   public vtkMultiBlockDataSetAlgorithm
00043 {
00044 public:
00045   vtkTypeMacro(vtkDataSetGhostGenerator,vtkMultiBlockDataSetAlgorithm);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047 
00049 
00050   vtkSetMacro( NumberOfGhostLayers, int );
00051   vtkGetMacro( NumberOfGhostLayers, int );
00053 
00054   // Standard VTK pipeline routines
00055   virtual int FillInputPortInformation(int port,vtkInformation *info);
00056   virtual int FillOutputPortInformation(int port, vtkInformation *info);
00057 
00058   virtual int RequestData(
00059       vtkInformation *rqst, vtkInformationVector **inputVector,
00060       vtkInformationVector* outputVector );
00061 
00062 protected:
00063   vtkDataSetGhostGenerator();
00064   virtual ~vtkDataSetGhostGenerator();
00065 
00067 
00068   virtual void GenerateGhostLayers(
00069       vtkMultiBlockDataSet *in, vtkMultiBlockDataSet *out) = 0;
00071 
00072 
00073   int NumberOfGhostLayers;
00074 
00075 private:
00076   vtkDataSetGhostGenerator(const vtkDataSetGhostGenerator&); // Not implemented
00077   void operator=(const vtkDataSetGhostGenerator&); // Not implemented
00078 
00079 };
00080 
00081 #endif /* VTKDATASETGHOSTGENERATOR_H_ */