VTK  9.4.20241103
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
26VTK_ABI_NAMESPACE_BEGIN
27class vtkBitArray;
30
31class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridExtractGhostCells
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
43 vtkSetStringMacro(OutputGhostArrayName);
44 vtkGetStringMacro(OutputGhostArrayName);
46
47protected:
50
55
61
62private:
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
72VTK_ABI_NAMESPACE_END
73#endif /* vtkHyperTreeGridExtractGhostCells */
dynamic, self-adjusting array of bits
Definition vtkBitArray.h:29
general representation of visualization data
Superclass for algorithms that produce a hyper tree grid as output.
Extract ghost cells from the input HTG and untag them as ghost.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkHyperTreeGridExtractGhostCells * New()
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to hide or show cells based on their ghost type.
bool RecursivelyMaskNonGhost(vtkHyperTreeGridNonOrientedCursor *)
Recursively process the tree to mask non-ghost cells.
~vtkHyperTreeGridExtractGhostCells() override=default
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:108
Allocate and hold a VTK object.
Definition vtkNew.h:167
dynamic, self-adjusting array of unsigned char