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 =========================================================================*/
37 #ifndef vtkHyperTreeGridAxisCut_h
38 #define vtkHyperTreeGridAxisCut_h
39 
40 #include "vtkFiltersHyperTreeModule.h" // For export macro
42 
43 class vtkBitArray;
44 class vtkHyperTreeCursor;
45 class vtkHyperTreeGrid;
47 
48 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridAxisCut : public vtkHyperTreeGridAlgorithm
49 {
50 public:
51  static vtkHyperTreeGridAxisCut* New();
53  void PrintSelf( ostream&, vtkIndent ) override;
54 
56 
59  vtkSetClampMacro(PlaneNormalAxis, int, 0, 2);
60  vtkGetMacro(PlaneNormalAxis, int);
62 
64 
67  vtkSetMacro(PlanePosition, double);
68  vtkGetMacro(PlanePosition, double);
70 
71 protected:
73  ~vtkHyperTreeGridAxisCut() override;
74 
75  // For this algorithm the output is a vtkHyperTreeGrid instance
76  int FillOutputPortInformation( int, vtkInformation* ) override;
77 
81  int ProcessTrees( vtkHyperTreeGrid*, vtkDataObject* ) override;
82 
86  void RecursivelyProcessTree( vtkHyperTreeGridCursor*,
88  vtkBitArray* );
89 
94 
98  double PlanePosition;
99 
104 
109 
110 private:
112  void operator=(const vtkHyperTreeGridAxisCut&) = delete;
113 };
114 
115 #endif /* vtkHyperTreeGridAxisCut_h */
vtkHyperTreeGridCursor
Objects for depth-first traversal HyperTreeGrids.
Definition: vtkHyperTreeGridCursor.h:45
vtkHyperTreeGridAxisCut::MaterialMask
vtkBitArray * MaterialMask
Output material mask constructed by this filter.
Definition: vtkHyperTreeGridAxisCut.h:103
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkHyperTreeGridAxisCut::PlanePosition
double PlanePosition
Intercept of plane along normal.
Definition: vtkHyperTreeGridAxisCut.h:98
vtkHyperTreeGridAlgorithm::ProcessTrees
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...
vtkHyperTreeGridAlgorithm.h
vtkHyperTreeGridAxisCut::PlaneNormalAxis
int PlaneNormalAxis
Direction of plane normal.
Definition: vtkHyperTreeGridAxisCut.h:93
vtkHyperTreeGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkHyperTreeCursor
Objects for depth-first traversal HyperTrees.
Definition: vtkHyperTreeCursor.h:42
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkHyperTreeGridAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkHyperTreeGridAxisCut::CurrentId
vtkIdType CurrentId
Keep track of current index in output hyper tree grid.
Definition: vtkHyperTreeGridAxisCut.h:108
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkHyperTreeGridAlgorithm
Superclass for algorithms that produce a hyper tree grid as output.
Definition: vtkHyperTreeGridAlgorithm.h:46
vtkHyperTreeGridAxisCut
Axis aligned hyper tree grid cut.
Definition: vtkHyperTreeGridAxisCut.h:48
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition: vtkHyperTreeGrid.h:67