VTK  9.3.1
vtkImageDataToHyperTreeGrid.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkImageDataToHyperTreeGrid_h
18 #define vtkImageDataToHyperTreeGrid_h
19 
20 #include "vtkFiltersHyperTreeModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class vtkBitArray;
25 class vtkIntArray;
27 class vtkDoubleArray;
28 class vtkHyperTreeGrid;
30 
31 class VTKFILTERSHYPERTREE_EXPORT vtkImageDataToHyperTreeGrid : public vtkHyperTreeGridAlgorithm
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  vtkSetMacro(DepthMax, int);
39  vtkGetMacro(DepthMax, int);
40 
41  vtkSetMacro(NbColors, int);
42  vtkGetMacro(NbColors, int);
43 
44 protected:
46  ~vtkImageDataToHyperTreeGrid() override;
47 
49 
51 
52  void ProcessPixels(vtkIntArray*, vtkHyperTreeGridNonOrientedCursor*);
53 
54  int FillInputPortInformation(int, vtkInformation*) override;
55  int FillOutputPortInformation(int, vtkInformation*) override;
56 
57 private:
59  void operator=(const vtkImageDataToHyperTreeGrid&) = delete;
60 
61  int DepthMax;
62  int NbColors;
63 
64  vtkDataArray* InScalars;
65 
67  vtkDoubleArray* Depth;
68  vtkBitArray* Mask;
69  int GlobalId;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif // vtkImageDataToHyperTreeGrid_h
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
Store vtkAlgorithm input/output information.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Objects for traversal a HyperTreeGrid.
dynamic, self-adjusting array of double
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:34
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
dynamic, self-adjusting array of unsigned char
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:28
Superclass for algorithms that produce a hyper tree grid as output.
int FillInputPortInformation(int, vtkInformation *) override
Define default input and output port types.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...