VTK
vtkExtractPolyDataPiece.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractPolyDataPiece.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
21 #ifndef vtkExtractPolyDataPiece_h
22 #define vtkExtractPolyDataPiece_h
23 
24 #include "vtkFiltersParallelModule.h" // For export macro
25 #include "vtkPolyDataAlgorithm.h"
26 
27 class vtkIdList;
28 class vtkIntArray;
29 
30 class VTKFILTERSPARALLEL_EXPORT vtkExtractPolyDataPiece : public vtkPolyDataAlgorithm
31 {
32 public:
33  static vtkExtractPolyDataPiece *New();
35  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
36 
38 
41  vtkSetMacro(CreateGhostCells, int);
42  vtkGetMacro(CreateGhostCells, int);
43  vtkBooleanMacro(CreateGhostCells, int);
45 
46 protected:
48  ~vtkExtractPolyDataPiece() VTK_OVERRIDE {}
49 
50  // Usual data generation method
53 
54  // A method for labeling which piece the cells belong to.
55  void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership,
56  int piece, int numPieces, vtkPolyData *input);
57 
58  void AddGhostLevel(vtkPolyData *input, vtkIntArray *cellTags, int ghostLevel);
59 
61 private:
62  vtkExtractPolyDataPiece(const vtkExtractPolyDataPiece&) VTK_DELETE_FUNCTION;
63  void operator=(const vtkExtractPolyDataPiece&) VTK_DELETE_FUNCTION;
64 };
65 
66 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:39
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
list of point or cell ids
Definition: vtkIdList.h:30
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Return specified piece, including specified number of ghost levels.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.