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