VTK  9.3.0
vtkHyperTreeGridGhostCellsGenerator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkHyperTreeGridGhostCellsGenerator_h
25 #define vtkHyperTreeGridGhostCellsGenerator_h
26 
27 #include "vtkFiltersParallelModule.h" // For export macro
29 
30 #include <vector> // For vtkHypertreeGridGhostCellsGenerator::ExtractInterface
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkBitArray;
34 class vtkCellData;
35 class vtkHyperTreeGrid;
37 
38 class VTKFILTERSPARALLEL_EXPORT vtkHyperTreeGridGhostCellsGenerator
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
46 protected:
49 
50  struct vtkInternals;
51 
56 
61 
66  vtkHyperTreeGridNonOrientedCursor* outCursor, vtkCellData* inCellData, vtkCellData* outCellData,
67  vtkBitArray* inMask, vtkBitArray* outMask);
68 
90  std::vector<vtkIdType>& indices, vtkHyperTreeGrid* grid, unsigned int mask, vtkIdType& pos);
91 
105  vtkIdType* indices, vtkIdType&& pos = 0);
106 
107  vtkInternals* Internals;
108 
109 private:
111  void operator=(const vtkHyperTreeGridGhostCellsGenerator&) = delete;
112 };
113 
114 VTK_ABI_NAMESPACE_END
115 #endif /* vtkHyperTreeGridGhostCellsGenerator */
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:29
represent and manipulate cell attribute data
Definition: vtkCellData.h:31
general representation of visualization data
Definition: vtkDataObject.h:55
Superclass for algorithms that produce a hyper tree grid as output.
Generated ghost cells (HyperTree's distributed).
int FillOutputPortInformation(int, vtkInformation *) override
For this algorithm the output is a vtkHyperTreeGrid instance.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ExtractInterface(vtkHyperTreeGridNonOrientedCursor *inCursor, vtkBitArray *isParent, std::vector< vtkIdType > &indices, vtkHyperTreeGrid *grid, unsigned int mask, vtkIdType &pos)
Reads the input interface with neighbor processes.
static vtkHyperTreeGridGhostCellsGenerator * New()
vtkIdType CreateGhostTree(vtkHyperTreeGridNonOrientedCursor *outCursor, vtkBitArray *isParent, vtkIdType *indices, vtkIdType &&pos=0)
Creates a ghost tree in the output.
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to extract cells based on thresholded value.
void CopyInputTreeToOutput(vtkHyperTreeGridNonOrientedCursor *inCursor, vtkHyperTreeGridNonOrientedCursor *outCursor, vtkCellData *inCellData, vtkCellData *outCellData, vtkBitArray *inMask, vtkBitArray *outMask)
Copies the input to the output, filling memory gaps if present.
Objects for traversal a HyperTreeGrid.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
Definition: vtkIndent.h:29
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:315