VTK
vtkHyperTreeGridAxisCut.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperTreeGridAxisCut.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 =========================================================================*/
43 #ifndef vtkHyperTreeGridAxisCut_h
44 #define vtkHyperTreeGridAxisCut_h
45 
46 #include "vtkFiltersHyperTreeModule.h" // For export macro
48 
49 class vtkBitArray;
50 class vtkHyperTreeCursor;
51 class vtkHyperTreeGrid;
53 
54 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridAxisCut : public vtkHyperTreeGridAlgorithm
55 {
56 public:
57  static vtkHyperTreeGridAxisCut* New();
59  void PrintSelf( ostream&, vtkIndent ) override;
60 
62 
65  vtkSetClampMacro(PlaneNormalAxis, int, 0, 2);
66  vtkGetMacro(PlaneNormalAxis, int);
68 
70 
73  vtkSetMacro(PlanePosition, double);
74  vtkGetMacro(PlanePosition, double);
76 
77 protected:
79  ~vtkHyperTreeGridAxisCut() override;
80 
81  // For this algorithm the output is a vtkHyperTreeGrid instance
82  int FillOutputPortInformation( int, vtkInformation* ) override;
83 
87  int ProcessTrees( vtkHyperTreeGrid*, vtkDataObject* ) override;
88 
92  void RecursivelyProcessTree( vtkHyperTreeGridCursor*,
94  vtkBitArray* );
95 
100 
105 
110 
115 
116 private:
118  void operator=(const vtkHyperTreeGridAxisCut&) = delete;
119 };
120 
121 #endif /* vtkHyperTreeGridAxisCut_h */
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
vtkBitArray * MaterialMask
Output material mask constructed by this filter.
Store vtkAlgorithm input/output information.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
double PlanePosition
Intercept of plane along normal.
int vtkIdType
Definition: vtkType.h:345
int PlaneNormalAxis
Direction of plane normal.
Objects for depth-first traversal HyperTrees.
Objects for depth-first traversal HyperTreeGrids.
Axis aligned hyper tree grid cut.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36
Superclass for algorithms that produce a hyper tree grid as output.
static vtkAlgorithm * New()
vtkIdType CurrentId
Keep track of current index in output hyper tree grid.
general representation of visualization data
Definition: vtkDataObject.h:64
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...