VTK  9.3.20230924
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
21 #include "vtkPolyDataAlgorithm.h"
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKINFOVISLAYOUT_EXPORT vtkTreeMapToPolyData : public vtkPolyDataAlgorithm
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
36  virtual void SetRectanglesArrayName(const char* name)
37  {
39  }
40 
48  virtual void SetLevelArrayName(const char* name)
49  {
51  }
52 
54 
57  vtkGetMacro(LevelDeltaZ, double);
58  vtkSetMacro(LevelDeltaZ, double);
60 
62 
65  vtkGetMacro(AddNormals, bool);
66  vtkSetMacro(AddNormals, bool);
68 
70 
71 protected:
74 
75  double LevelDeltaZ;
76  bool AddNormals;
77 
79 
80 private:
82  void operator=(const vtkTreeMapToPolyData&) = delete;
83 };
84 
85 VTK_ABI_NAMESPACE_END
86 #endif
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
@ FIELD_ASSOCIATION_VERTICES
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()
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ name
Definition: vtkX3D.h:219