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 =========================================================================*/
33 #ifndef vtkHyperTreeGridAxisCut_h
34 #define vtkHyperTreeGridAxisCut_h
35 
36 #include "vtkFiltersHyperTreeModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
39 class vtkCellArray;
41 class vtkHyperTreeGrid;
42 class vtkPoints;
43 
44 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridAxisCut : public vtkPolyDataAlgorithm
45 {
46 public:
47  static vtkHyperTreeGridAxisCut* New();
49  void PrintSelf( ostream&, vtkIndent ) VTK_OVERRIDE;
50 
52 
55  vtkSetMacro(PlaneNormalAxis, int);
56  vtkGetMacro(PlaneNormalAxis, int);
58 
60 
63  vtkSetMacro(PlanePosition, double);
64  vtkGetMacro(PlanePosition, double);
66 
67 protected:
69  ~vtkHyperTreeGridAxisCut() VTK_OVERRIDE;
70 
71  int RequestData( vtkInformation*, vtkInformationVector**, vtkInformationVector* ) VTK_OVERRIDE;
72  int FillInputPortInformation( int, vtkInformation* ) VTK_OVERRIDE;
73 
74  void ProcessTrees();
75  void RecursiveProcessTree( void* );
76  void ProcessLeaf3D( void* );
77  void AddFace( vtkIdType inId, double* origin, double* size,
78  double offset0, int axis0, int axis1, int axis2 );
79 
80  int PlaneNormalAxis;
81  double PlanePosition;
82 
84  vtkPolyData* Output;
85 
88 
89  vtkPoints* Points;
90  vtkCellArray* Cells;
91 
92 private:
93  vtkHyperTreeGridAxisCut(const vtkHyperTreeGridAxisCut&) VTK_DELETE_FUNCTION;
94  void operator=(const vtkHyperTreeGridAxisCut&) VTK_DELETE_FUNCTION;
95 };
96 
97 #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:79
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:33
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:44
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.