VTK  9.3.1
vtkHyperTreeGridDepthLimiter.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
28 #ifndef vtkHyperTreeGridDepthLimiter_h
29 #define vtkHyperTreeGridDepthLimiter_h
30 
31 #include "vtkFiltersHyperTreeModule.h" // For export macro
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class vtkBitArray;
36 class vtkHyperTreeGrid;
38 
39 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridDepthLimiter : public vtkHyperTreeGridAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
54  vtkSetMacro(JustCreateNewMask, bool);
55  vtkGetMacro(JustCreateNewMask, bool);
57 
59 
63  vtkSetMacro(Depth, unsigned int);
64  vtkGetMacro(Depth, unsigned int);
66 
67 protected:
69  ~vtkHyperTreeGridDepthLimiter() override;
70 
75  int FillOutputPortInformation(int, vtkInformation*) override;
76 
81 
85  void RecursivelyProcessTree(
87 
91  unsigned int Depth;
92 
97 
102 
107 
112 
113 private:
115  void operator=(const vtkHyperTreeGridDepthLimiter&) = delete;
116 };
117 
118 VTK_ABI_NAMESPACE_END
119 #endif // vtkHyperTreeGridDepthLimiter_h
vtkIdType CurrentId
Keep track of current index in output hyper tree grid.
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
Store vtkAlgorithm input/output information.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
vtkBitArray * OutMask
Output mask constructed by this filter.
Hyper tree grid level extraction.
int vtkIdType
Definition: vtkType.h:315
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.
bool JustCreateNewMask
With or without copy.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:28
Superclass for algorithms that produce a hyper tree grid as output.
unsigned int Depth
Maximum depth of hyper tree grid to be extracted.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...