Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Parallel/vtkExtractUnstructuredGridPiece.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkExtractUnstructuredGridPiece.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00038 #ifndef __vtkExtractUnstructuredGridPiece_h
00039 #define __vtkExtractUnstructuredGridPiece_h
00040 
00041 #include "vtkUnstructuredGridToUnstructuredGridFilter.h"
00042 
00043 class vtkIdList;
00044 class vtkIntArray;
00045 
00046 class VTK_PARALLEL_EXPORT vtkExtractUnstructuredGridPiece : public vtkUnstructuredGridToUnstructuredGridFilter
00047 {
00048 public:
00049   static vtkExtractUnstructuredGridPiece *New();
00050   vtkTypeRevisionMacro(vtkExtractUnstructuredGridPiece, vtkUnstructuredGridToUnstructuredGridFilter);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052   
00054 
00055   vtkSetMacro(CreateGhostCells, int);
00056   vtkGetMacro(CreateGhostCells, int);
00057   vtkBooleanMacro(CreateGhostCells, int);
00059   
00060 protected:
00061   vtkExtractUnstructuredGridPiece();
00062   ~vtkExtractUnstructuredGridPiece() {};
00063 
00064   // Usual data generation method
00065   void Execute();
00066   void ExecuteInformation();
00067   void ComputeInputUpdateExtents(vtkDataObject *out);
00068  
00069   // A method for labeling which piece the cells belong to.
00070   void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership,
00071                        int piece, int numPieces);
00072   
00073   void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags, int ghostLevel);
00074   
00075   int CreateGhostCells;
00076 private:
00077   vtkExtractUnstructuredGridPiece(const vtkExtractUnstructuredGridPiece&);  // Not implemented.
00078   void operator=(const vtkExtractUnstructuredGridPiece&);  // Not implemented.
00079 };
00080 
00081 #endif