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

# Parallel/vtkExtractPolyDataPiece.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkExtractPolyDataPiece.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 =========================================================================*/
    00037 #ifndef __vtkExtractPolyDataPiece_h
    00038 #define __vtkExtractPolyDataPiece_h
    00039
    00040 #include "vtkPolyDataToPolyDataFilter.h"
    00041
    00042 class vtkIdList;
    00043 class vtkIntArray;
    00044
    00045 class VTK_PARALLEL_EXPORT vtkExtractPolyDataPiece : public vtkPolyDataToPolyDataFilter
    00046 {
    00047 public:
    00048   static vtkExtractPolyDataPiece *New();
    00049   vtkTypeRevisionMacro(vtkExtractPolyDataPiece, vtkPolyDataToPolyDataFilter);
    00050   void PrintSelf(ostream& os, vtkIndent indent);
    00051
    00053
    00054   vtkSetMacro(CreateGhostCells, int);
    00055   vtkGetMacro(CreateGhostCells, int);
    00056   vtkBooleanMacro(CreateGhostCells, int);
    00058
    00059 protected:
    00060   vtkExtractPolyDataPiece();
    00061   ~vtkExtractPolyDataPiece() {};
    00062
    00063   // Usual data generation method
    00064   void Execute();
    00065   void ExecuteInformation();
    00066   void ComputeInputUpdateExtents(vtkDataObject *out);
    00067
    00068   // A method for labeling which piece the cells belong to.
    00069   void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership,
    00070                        int piece, int numPieces);
    00071
    00072   void AddGhostLevel(vtkPolyData *input, vtkIntArray *cellTags, int ghostLevel);
    00073
    00074   int CreateGhostCells;
    00075 private:
    00076   vtkExtractPolyDataPiece(const vtkExtractPolyDataPiece&);  // Not implemented.
    00077   void operator=(const vtkExtractPolyDataPiece&);  // Not implemented.
    00078 };
    00079
    00080 #endif