VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Filters/Geometry/vtkUniformGridGhostDataGenerator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003  Program:   Visualization Toolkit
00004  Module:    vtkUniformGridGhostDataGenerator.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  =========================================================================*/
00051 #ifndef VTKUNIFORMGRIDGHOSTDATAGENERATOR_H_
00052 #define VTKUNIFORMGRIDGHOSTDATAGENERATOR_H_
00053 
00054 #include "vtkFiltersGeometryModule.h" // For export macro
00055 #include "vtkDataSetGhostGenerator.h"
00056 
00057 // Forward declarations
00058 class vtkMultiBlockDataSet;
00059 class vtkIndent;
00060 class vtkStructuredGridConnectivity;
00061 
00062 class VTKFILTERSGEOMETRY_EXPORT vtkUniformGridGhostDataGenerator :
00063   public vtkDataSetGhostGenerator
00064 {
00065 public:
00066   static vtkUniformGridGhostDataGenerator* New();
00067   vtkTypeMacro(vtkUniformGridGhostDataGenerator,vtkDataSetGhostGenerator);
00068   void PrintSelf(ostream& os, vtkIndent indent );
00069 
00070 protected:
00071   vtkUniformGridGhostDataGenerator();
00072   virtual ~vtkUniformGridGhostDataGenerator();
00073 
00075   void ComputeOrigin(vtkMultiBlockDataSet *in);
00076 
00078   void ComputeGlobalSpacingVector(vtkMultiBlockDataSet *in);
00079 
00081   void RegisterGrids(vtkMultiBlockDataSet *in);
00082 
00084 
00085   void CreateGhostedDataSet(
00086       vtkMultiBlockDataSet *in,
00087       vtkMultiBlockDataSet *out );
00089 
00091 
00092   void GenerateGhostLayers(
00093       vtkMultiBlockDataSet *in, vtkMultiBlockDataSet *out);
00095 
00096   double GlobalSpacing[3];
00097   double GlobalOrigin[3];
00098   vtkStructuredGridConnectivity *GridConnectivity;
00099 
00100 private:
00101   vtkUniformGridGhostDataGenerator(const vtkUniformGridGhostDataGenerator&); // Not implemented
00102   void operator=(const vtkUniformGridGhostDataGenerator&); // Not implemented
00103 };
00104 
00105 #endif /* VTKUNIFORMGRIDGHOSTDATAGENERATOR_H_ */