VTK: Infovis/Layout/vtkTreeMapToPolyData.h Source File

| 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();
28 vtkTypeMacro(vtkTreeMapToPolyData, vtkPolyDataAlgorithm);
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
71 protected:
72 vtkTreeMapToPolyData();
73 ~vtkTreeMapToPolyData() override;
74
75 double LevelDeltaZ;
76 bool AddNormals;
77
78 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
79
80 private:
81 vtkTreeMapToPolyData(const vtkTreeMapToPolyData&) = delete;
82 void operator=(const vtkTreeMapToPolyData&) = delete;
83 };
84
85 VTK_ABI_NAMESPACE_END
86 #endif
vtkAlgorithm::SetInputArrayToProcess
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
vtkDataObject::FIELD_ASSOCIATION_VERTICES
@ FIELD_ASSOCIATION_VERTICES
Definition: vtkDataObject.h:266
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
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkTreeMapToPolyData
converts a tree to a polygonal data representing a tree map
Definition: vtkTreeMapToPolyData.h:25
vtkTreeMapToPolyData::SetRectanglesArrayName
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...
Definition: vtkTreeMapToPolyData.h:36
vtkTreeMapToPolyData::~vtkTreeMapToPolyData
~vtkTreeMapToPolyData() override
vtkTreeMapToPolyData::AddNormals
bool AddNormals
Definition: vtkTreeMapToPolyData.h:76
vtkTreeMapToPolyData::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTreeMapToPolyData::SetLevelArrayName
virtual void SetLevelArrayName(const char *name)
The field containing the level of each tree node.
Definition: vtkTreeMapToPolyData.h:48
vtkTreeMapToPolyData::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTreeMapToPolyData::vtkTreeMapToPolyData
vtkTreeMapToPolyData()
vtkTreeMapToPolyData::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkTreeMapToPolyData::LevelDeltaZ
double LevelDeltaZ
Definition: vtkTreeMapToPolyData.h:75
vtkTreeMapToPolyData::New
static vtkTreeMapToPolyData * New()
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkPolyDataAlgorithm.h