VTK
vtkHyperTreeGridDepthLimiter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperTreeGridDepthLimiter.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 =========================================================================*/
37 #ifndef vtkHyperTreeGridDepthLimiter_h
38 #define vtkHyperTreeGridDepthLimiter_h
39 
40 #include "vtkFiltersHyperTreeModule.h" // For export macro
42 
43 class vtkBitArray;
44 class vtkHyperTreeCursor;
45 class vtkHyperTreeGrid;
47 
48 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridDepthLimiter : public vtkHyperTreeGridAlgorithm
49 {
50 public:
53  void PrintSelf( ostream&, vtkIndent ) override;
54 
56 
59  vtkSetMacro(Depth, unsigned int);
60  vtkGetMacro(Depth, unsigned int);
62 
63 protected:
65  ~vtkHyperTreeGridDepthLimiter() override;
66 
70  int FillOutputPortInformation( int, vtkInformation* ) override;
71 
75  int ProcessTrees( vtkHyperTreeGrid*, vtkDataObject* ) override;
76 
80  void RecursivelyProcessTree( vtkHyperTreeGridCursor*,
82  vtkBitArray* );
83 
87  unsigned int Depth;
88 
93 
98 
99 private:
101  void operator=(const vtkHyperTreeGridDepthLimiter&) = delete;
102 };
103 
104 #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.
Hyper tree grid level extraction.
int vtkIdType
Definition: vtkType.h:345
Objects for depth-first traversal HyperTrees.
Objects for depth-first traversal HyperTreeGrids.
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBitArray * MaterialMask
Output material mask constructed by this filter.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
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:58
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...