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 =========================================================================*/
39 #ifndef vtkHyperTreeGridAxisCut_h
40 #define vtkHyperTreeGridAxisCut_h
41 
42 #include "vtkFiltersHyperTreeModule.h" // For export macro
43 #include "vtkPolyDataAlgorithm.h"
44 
45 class vtkCellArray;
47 class vtkHyperTreeGrid;
48 class vtkPoints;
49 
50 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridAxisCut : public vtkPolyDataAlgorithm
51 {
52 public:
53  static vtkHyperTreeGridAxisCut* New();
55  void PrintSelf( ostream&, vtkIndent ) VTK_OVERRIDE;
56 
58 
61  vtkSetMacro(PlaneNormalAxis, int);
62  vtkGetMacro(PlaneNormalAxis, int);
64 
66 
69  vtkSetMacro(PlanePosition, double);
70  vtkGetMacro(PlanePosition, double);
72 
73 protected:
75  ~vtkHyperTreeGridAxisCut() VTK_OVERRIDE;
76 
77  int RequestData( vtkInformation*, vtkInformationVector**, vtkInformationVector* ) VTK_OVERRIDE;
78  int FillInputPortInformation( int, vtkInformation* ) VTK_OVERRIDE;
79 
80  void ProcessTrees();
81  void RecursiveProcessTree( void* );
82  void ProcessLeaf3D( void* );
83  void AddFace( vtkIdType inId, double* origin, double* size,
84  double offset0, int axis0, int axis1, int axis2 );
85 
86  int PlaneNormalAxis;
87  double PlanePosition;
88 
90  vtkPolyData* Output;
91 
94 
95  vtkPoints* Points;
96  vtkCellArray* Cells;
97 
98 private:
99  vtkHyperTreeGridAxisCut(const vtkHyperTreeGridAxisCut&) VTK_DELETE_FUNCTION;
100  void operator=(const vtkHyperTreeGridAxisCut&) VTK_DELETE_FUNCTION;
101 };
102 
103 #endif
Store vtkAlgorithm input/output information.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
int vtkIdType
Definition: vtkType.h:345
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
static vtkPolyDataAlgorithm * New()
Axis aligned hyper tree grid cut.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
represent and manipulate attribute data in a dataset
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
object to represent cell connectivity
Definition: vtkCellArray.h:50
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.