VTK  9.3.1
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:
27  static vtkTreeMapToPolyData* New();
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:
73  ~vtkTreeMapToPolyData() override;
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
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
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...
static vtkPolyDataAlgorithm * New()
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void SetLevelArrayName(const char *name)
The field containing the level of each tree node.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
converts a tree to a polygonal data representing a tree map
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.