VTK  9.0.1
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 =========================================================================*/
39 #ifndef vtkHyperTreeGridAxisCut_h
40 #define vtkHyperTreeGridAxisCut_h
41 
42 #include "vtkFiltersHyperTreeModule.h" // For export macro
44 
45 class vtkBitArray;
46 class vtkHyperTreeGrid;
49 
50 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridAxisCut : public vtkHyperTreeGridAlgorithm
51 {
52 public:
53  static vtkHyperTreeGridAxisCut* New();
55  void PrintSelf(ostream&, vtkIndent) override;
56 
58 
61  vtkSetClampMacro(PlaneNormalAxis, int, 0, 2);
62  vtkGetMacro(PlaneNormalAxis, int);
64 
66 
69  vtkSetMacro(PlanePosition, double);
70  vtkGetMacro(PlanePosition, double);
72 
73 protected:
75  ~vtkHyperTreeGridAxisCut() override;
76 
77  // For this algorithm the output is a vtkHyperTreeGrid instance
78  int FillOutputPortInformation(int, vtkInformation*) override;
79 
84 
88  void RecursivelyProcessTree(vtkHyperTreeGridNonOrientedGeometryCursor* inCursor,
90 
95 
99  double PlanePosition;
101 
107 
112 
113 private:
115  void operator=(const vtkHyperTreeGridAxisCut&) = delete;
116 };
117 
118 #endif // vtkHyperTreeGridAxisCut_h
vtkHyperTreeGridNonOrientedGeometryCursor
Objects for traversal a HyperTreeGrid.
Definition: vtkHyperTreeGridNonOrientedGeometryCursor.h:56
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkHyperTreeGridAxisCut::PlanePosition
double PlanePosition
Intercept of plane along normal.
Definition: vtkHyperTreeGridAxisCut.h:99
vtkHyperTreeGridAxisCut::PlanePositionRealUse
double PlanePositionRealUse
Definition: vtkHyperTreeGridAxisCut.h:100
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
vtkHyperTreeGridNonOrientedCursor
Objects for traversal a HyperTreeGrid.
Definition: vtkHyperTreeGridNonOrientedCursor.h:50
vtkHyperTreeGridAxisCut::PlaneNormalAxis
int PlaneNormalAxis
Direction of plane normal.
Definition: vtkHyperTreeGridAxisCut.h:94
vtkHyperTreeGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkHyperTreeGridAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkHyperTreeGridAxisCut::InMask
vtkBitArray * InMask
Output material mask constructed by this filter.
Definition: vtkHyperTreeGridAxisCut.h:105
vtkHyperTreeGridAxisCut::CurrentId
vtkIdType CurrentId
Keep track of current index in output hyper tree grid.
Definition: vtkHyperTreeGridAxisCut.h:111
vtkHyperTreeGridAxisCut::OutMask
vtkBitArray * OutMask
Definition: vtkHyperTreeGridAxisCut.h:106
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkHyperTreeGridAlgorithm
Superclass for algorithms that produce a hyper tree grid as output.
Definition: vtkHyperTreeGridAlgorithm.h:47
vtkHyperTreeGridAxisCut
Axis aligned hyper tree grid cut.
Definition: vtkHyperTreeGridAxisCut.h:50
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition: vtkHyperTreeGrid.h:96