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();
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 
82 
83  vtkDataSetAttributes* InData;
84  vtkDataSetAttributes* OutData;
85 
86  vtkPoints* Points;
88 
89 private:
90  vtkHyperTreeGridAxisCut(const vtkHyperTreeGridAxisCut&); // Not implemented.
91  void operator=(const vtkHyperTreeGridAxisCut&); // Not implemented.
92 };
93 
94 #endif
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:82
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Axis aligned hyper tree grid cut.
vtkDataSetAttributes * InData
Superclass for algorithms that produce only polydata as output.
vtkDataSetAttributes * OutData
object to represent cell connectivity
Definition: vtkCellArray.h:49