VTK  9.7.1
vtkHyperTreeGridExtractGhostCells.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
18 #ifndef vtkHyperTreeGridExtractGhostCells_h
19 #define vtkHyperTreeGridExtractGhostCells_h
20 
21 #include "vtkFiltersHyperTreeModule.h" // For export macro
23 
24 #include "vtkNew.h" // To instantiate the mask array
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkBitArray;
30 
31 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridExtractGhostCells
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  vtkSetStringMacro(OutputGhostArrayName);
44  vtkGetStringMacro(OutputGhostArrayName);
46 
47 protected:
49  ~vtkHyperTreeGridExtractGhostCells() override = default;
50 
55 
60  bool RecursivelyMaskNonGhost(vtkHyperTreeGridNonOrientedCursor*);
61 
62 private:
63  char* OutputGhostArrayName = nullptr;
64  vtkNew<vtkBitArray> OutMask;
65  vtkBitArray* InMask = nullptr;
66  vtkUnsignedCharArray* InGhost = nullptr;
67 
69  void operator=(const vtkHyperTreeGridExtractGhostCells&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif /* vtkHyperTreeGridExtractGhostCells */
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Objects for traversal a HyperTreeGrid.
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of unsigned char
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:32
Superclass for algorithms that produce a hyper tree grid as output.
static vtkAlgorithm * New()
Extract ghost cells from the input HTG and untag them as ghost.
general representation of visualization data
Definition: vtkDataObject.h:55
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...