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 =========================================================================*/
40 #ifndef vtkHyperTreeGridAxisCut_h
41 #define vtkHyperTreeGridAxisCut_h
42 
43 #include "vtkFiltersHyperTreeModule.h" // For export macro
45 
46 class vtkBitArray;
47 class vtkHyperTreeCursor;
48 class vtkHyperTreeGrid;
50 
51 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridAxisCut : public vtkHyperTreeGridAlgorithm
52 {
53 public:
54  static vtkHyperTreeGridAxisCut* New();
56  void PrintSelf( ostream&, vtkIndent ) override;
57 
59 
62  vtkSetClampMacro(PlaneNormalAxis, int, 0, 2);
63  vtkGetMacro(PlaneNormalAxis, int);
65 
67 
70  vtkSetMacro(PlanePosition, double);
71  vtkGetMacro(PlanePosition, double);
73 
74 protected:
76  ~vtkHyperTreeGridAxisCut() override;
77 
78  // For this algorithm the output is a vtkHyperTreeGrid instance
79  int FillOutputPortInformation( int, vtkInformation* ) override;
80 
84  int ProcessTrees( vtkHyperTreeGrid*, vtkDataObject* ) override;
85 
89  void RecursivelyProcessTree( vtkHyperTreeGridCursor*,
91  vtkBitArray* );
92 
97 
102 
107 
112 
113 private:
115  void operator=(const vtkHyperTreeGridAxisCut&) = delete;
116 };
117 
118 #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:347
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.
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...