VTK  9.3.20240419
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:
47 
49 
51 
53 
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
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:29
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:155
general representation of visualization data
dynamic, self-adjusting array of double
Superclass for algorithms that produce a hyper tree grid as output.
Objects for traversal a HyperTreeGrid.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...
int FillInputPortInformation(int, vtkInformation *) override
Define default input and output port types.
~vtkImageDataToHyperTreeGrid() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ProcessPixels(vtkIntArray *, vtkHyperTreeGridNonOrientedCursor *)
static vtkImageDataToHyperTreeGrid * New()
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:144
dynamic, self-adjusting array of unsigned char
@ Color
Definition: vtkX3D.h:46