VTK  9.3.20240521
vtkTreeMapToPolyData.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
17#ifndef vtkTreeMapToPolyData_h
18#define vtkTreeMapToPolyData_h
19
20#include "vtkInfovisLayoutModule.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKINFOVISLAYOUT_EXPORT vtkTreeMapToPolyData : public vtkPolyDataAlgorithm
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
36 virtual void SetRectanglesArrayName(const char* name)
37 {
38 this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name);
39 }
40
48 virtual void SetLevelArrayName(const char* name)
49 {
50 this->SetInputArrayToProcess(1, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name);
51 }
52
54
57 vtkGetMacro(LevelDeltaZ, double);
58 vtkSetMacro(LevelDeltaZ, double);
60
62
65 vtkGetMacro(AddNormals, bool);
66 vtkSetMacro(AddNormals, bool);
68
69 int FillInputPortInformation(int port, vtkInformation* info) override;
70
71protected:
74
77
79
80private:
82 void operator=(const vtkTreeMapToPolyData&) = delete;
83};
84
85VTK_ABI_NAMESPACE_END
86#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
converts a tree to a polygonal data representing a tree map
virtual void SetRectanglesArrayName(const char *name)
The field containing quadruples of the form (min x, max x, min y, max y) representing the bounds of t...
~vtkTreeMapToPolyData() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetLevelArrayName(const char *name)
The field containing the level of each tree node.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkTreeMapToPolyData * New()