VTK  9.0.1
vtkTreeMapToPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeMapToPolyData.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
30 #ifndef vtkTreeMapToPolyData_h
31 #define vtkTreeMapToPolyData_h
32 
33 #include "vtkInfovisLayoutModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
36 class VTKINFOVISLAYOUT_EXPORT vtkTreeMapToPolyData : public vtkPolyDataAlgorithm
37 {
38 public:
39  static vtkTreeMapToPolyData* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
48  virtual void SetRectanglesArrayName(const char* name)
49  {
51  }
52 
60  virtual void SetLevelArrayName(const char* name)
61  {
63  }
64 
66 
69  vtkGetMacro(LevelDeltaZ, double);
70  vtkSetMacro(LevelDeltaZ, double);
72 
74 
77  vtkGetMacro(AddNormals, bool);
78  vtkSetMacro(AddNormals, bool);
80 
82 
83 protected:
85  ~vtkTreeMapToPolyData() override;
86 
87  double LevelDeltaZ;
88  bool AddNormals;
89 
91 
92 private:
94  void operator=(const vtkTreeMapToPolyData&) = delete;
95 };
96 
97 #endif
vtkTreeMapToPolyData::LevelDeltaZ
double LevelDeltaZ
Definition: vtkTreeMapToPolyData.h:87
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTreeMapToPolyData
converts a tree to a polygonal data representing a tree map
Definition: vtkTreeMapToPolyData.h:36
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject::FIELD_ASSOCIATION_VERTICES
@ FIELD_ASSOCIATION_VERTICES
Definition: vtkDataObject.h:253
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkTreeMapToPolyData::SetLevelArrayName
virtual void SetLevelArrayName(const char *name)
The field containing the level of each tree node.
Definition: vtkTreeMapToPolyData.h:60
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTreeMapToPolyData::AddNormals
bool AddNormals
Definition: vtkTreeMapToPolyData.h:88
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
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:48
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.
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41