VTK  9.0.1
vtkTreeMapLayout.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeMapLayout.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 -------------------------------------------------------------------------*/
43 #ifndef vtkTreeMapLayout_h
44 #define vtkTreeMapLayout_h
45 
46 #include "vtkInfovisLayoutModule.h" // For export macro
47 #include "vtkTreeAlgorithm.h"
48 
50 
51 class VTKINFOVISLAYOUT_EXPORT vtkTreeMapLayout : public vtkTreeAlgorithm
52 {
53 public:
54  static vtkTreeMapLayout* New();
55 
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
65  vtkGetStringMacro(RectanglesFieldName);
66  vtkSetStringMacro(RectanglesFieldName);
68 
72  virtual void SetSizeArrayName(const char* name)
73  {
75  }
76 
78 
81  vtkGetObjectMacro(LayoutStrategy, vtkTreeMapLayoutStrategy);
82  void SetLayoutStrategy(vtkTreeMapLayoutStrategy* strategy);
84 
88  vtkIdType FindVertex(float pnt[2], float* binfo = nullptr);
89 
94  void GetBoundingBox(vtkIdType id, float* binfo);
95 
99  vtkMTimeType GetMTime() override;
100 
101 protected:
103  ~vtkTreeMapLayout() override;
104 
107 
109 
110 private:
111  vtkTreeMapLayout(const vtkTreeMapLayout&) = delete;
112  void operator=(const vtkTreeMapLayout&) = delete;
113 };
114 
115 #endif
vtkTreeMapLayout::RectanglesFieldName
char * RectanglesFieldName
Definition: vtkTreeMapLayout.h:105
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkTreeMapLayout::LayoutStrategy
vtkTreeMapLayoutStrategy * LayoutStrategy
Definition: vtkTreeMapLayout.h:106
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTreeAlgorithm.h
vtkDataObject::FIELD_ASSOCIATION_VERTICES
@ FIELD_ASSOCIATION_VERTICES
Definition: vtkDataObject.h:253
vtkTreeAlgorithm::New
static vtkTreeAlgorithm * New()
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkTreeMapLayout::SetSizeArrayName
virtual void SetSizeArrayName(const char *name)
The array to use for the size of each vertex.
Definition: vtkTreeMapLayout.h:72
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTreeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTreeAlgorithm
Superclass for algorithms that produce only Tree as output.
Definition: vtkTreeAlgorithm.h:45
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkTreeAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkTreeMapLayoutStrategy
abstract superclass for all tree map layout strategies
Definition: vtkTreeMapLayoutStrategy.h:47
vtkTreeMapLayout
layout a vtkTree into a tree map
Definition: vtkTreeMapLayout.h:51
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.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293