VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
38 #ifndef __vtkHyperTreeGridAxisCut_h
39 #define __vtkHyperTreeGridAxisCut_h
40 
41 #include "vtkFiltersHyperTreeModule.h" // For export macro
42 #include "vtkPolyDataAlgorithm.h"
43 
44 class vtkCellArray;
45 class vtkDataSetAttributes;
46 class vtkHyperTreeGrid;
47 class vtkPoints;
48 
49 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridAxisCut : public vtkPolyDataAlgorithm
50 {
51 public:
52  static vtkHyperTreeGridAxisCut* New();
53  vtkTypeMacro( vtkHyperTreeGridAxisCut, vtkPolyDataAlgorithm );
54  void PrintSelf( ostream&, vtkIndent );
55 
57 
58  vtkSetMacro(PlaneNormalAxis, int);
59  vtkGetMacro(PlaneNormalAxis, int);
60  vtkSetMacro(PlanePosition, double);
61  vtkGetMacro(PlanePosition, double);
63 
64 protected:
67 
69  double PlanePosition;
70 
71  virtual int RequestData( vtkInformation*, vtkInformationVector**, vtkInformationVector* );
72  virtual int FillInputPortInformation( int, vtkInformation* );
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  vtkHyperTreeGrid* Input;
81  vtkPolyData* Output;
82 
83  vtkDataSetAttributes* InData;
84  vtkDataSetAttributes* OutData;
85 
86  vtkPoints* Points;
87  vtkCellArray* Cells;
88 
89 private:
90  vtkHyperTreeGridAxisCut(const vtkHyperTreeGridAxisCut&); // Not implemented.
91  void operator=(const vtkHyperTreeGridAxisCut&); // Not implemented.
92 };
93 
94 #endif
Axis aligned hyper tree grid cut.
vtkDataSetAttributes * InData
vtkDataSetAttributes * OutData