Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

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 =========================================================================*/
00027 #ifndef __vtkExtractUnstructuredGridPiece_h
00028 #define __vtkExtractUnstructuredGridPiece_h
00029 
00030 #include "vtkUnstructuredGridToUnstructuredGridFilter.h"
00031 
00032 class vtkIdList;
00033 class vtkIntArray;
00034 
00035 class VTK_PARALLEL_EXPORT vtkExtractUnstructuredGridPiece : public vtkUnstructuredGridToUnstructuredGridFilter
00036 {
00037 public:
00038   static vtkExtractUnstructuredGridPiece *New();
00039   vtkTypeRevisionMacro(vtkExtractUnstructuredGridPiece, vtkUnstructuredGridToUnstructuredGridFilter);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041   
00043 
00044   vtkSetMacro(CreateGhostCells, int);
00045   vtkGetMacro(CreateGhostCells, int);
00046   vtkBooleanMacro(CreateGhostCells, int);
00048   
00049 protected:
00050   vtkExtractUnstructuredGridPiece();
00051   ~vtkExtractUnstructuredGridPiece() {};
00052 
00053   // Usual data generation method
00054   void Execute();
00055   void ExecuteInformation();
00056   void ComputeInputUpdateExtents(vtkDataObject *out);
00057  
00058   // A method for labeling which piece the cells belong to.
00059   void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership,
00060                        int piece, int numPieces);
00061   
00062   void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags, int ghostLevel);
00063   
00064   int CreateGhostCells;
00065 private:
00066   vtkExtractUnstructuredGridPiece(const vtkExtractUnstructuredGridPiece&);  // Not implemented.
00067   void operator=(const vtkExtractUnstructuredGridPiece&);  // Not implemented.
00068 };
00069 
00070 #endif