VTK: Filters/HyperTree/vtkImageDataToHyperTreeGrid.h Source File

| 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
21 #include "vtkHyperTreeGridAlgorithm.h"
22
23 VTK_ABI_NAMESPACE_BEGIN
24 class vtkBitArray;
25 class vtkIntArray;
26 class vtkUnsignedCharArray;
27 class vtkDoubleArray;
28 class vtkHyperTreeGrid;
29 class vtkHyperTreeGridNonOrientedCursor;
30
31 class VTKFILTERSHYPERTREE_EXPORT vtkImageDataToHyperTreeGrid : public vtkHyperTreeGridAlgorithm
32 {
33 public:
34 static vtkImageDataToHyperTreeGrid* New();
35 vtkTypeMacro(vtkImageDataToHyperTreeGrid, vtkHyperTreeGridAlgorithm);
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:
45 vtkImageDataToHyperTreeGrid();
46 ~vtkImageDataToHyperTreeGrid() override;
47
48 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
49
50 int ProcessTrees(vtkHyperTreeGrid*, vtkDataObject*) override;
51
52 void ProcessPixels(vtkIntArray*, vtkHyperTreeGridNonOrientedCursor*);
53
54 int FillInputPortInformation(int, vtkInformation*) override;
55 int FillOutputPortInformation(int, vtkInformation*) override;
56
57 private:
58 vtkImageDataToHyperTreeGrid(const vtkImageDataToHyperTreeGrid&) = delete;
59 void operator=(const vtkImageDataToHyperTreeGrid&) = delete;
60
61 int DepthMax;
62 int NbColors;
63
64 vtkDataArray* InScalars;
65
66 vtkUnsignedCharArray* Color;
67 vtkDoubleArray* Depth;
68 vtkBitArray* Mask;
69 int GlobalId;
70 };
71
72 VTK_ABI_NAMESPACE_END
73 #endif // vtkImageDataToHyperTreeGrid_h
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:29
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:40
vtkHyperTreeGridAlgorithm
Superclass for algorithms that produce a hyper tree grid as output.
Definition: vtkHyperTreeGridAlgorithm.h:37
vtkHyperTreeGridNonOrientedCursor
Objects for traversal a HyperTreeGrid.
Definition: vtkHyperTreeGridNonOrientedCursor.h:46
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition: vtkHyperTreeGrid.h:91
vtkImageDataToHyperTreeGrid
Definition: vtkImageDataToHyperTreeGrid.h:32
vtkImageDataToHyperTreeGrid::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkImageDataToHyperTreeGrid::ProcessTrees
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...
vtkImageDataToHyperTreeGrid::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Define default input and output port types.
vtkImageDataToHyperTreeGrid::~vtkImageDataToHyperTreeGrid
~vtkImageDataToHyperTreeGrid() override
vtkImageDataToHyperTreeGrid::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageDataToHyperTreeGrid::ProcessPixels
void ProcessPixels(vtkIntArray *, vtkHyperTreeGridNonOrientedCursor *)
vtkImageDataToHyperTreeGrid::New
static vtkImageDataToHyperTreeGrid * New()
vtkImageDataToHyperTreeGrid::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
vtkImageDataToHyperTreeGrid::vtkImageDataToHyperTreeGrid
vtkImageDataToHyperTreeGrid()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:44
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:40
vtkX3D::Color
@ Color
Definition: vtkX3D.h:46
vtkHyperTreeGridAlgorithm.h