VTK
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)
74 
76 
79  vtkGetObjectMacro(LayoutStrategy, vtkTreeMapLayoutStrategy);
80  void SetLayoutStrategy(vtkTreeMapLayoutStrategy * strategy);
82 
86  vtkIdType FindVertex(float pnt[2], float *binfo=nullptr);
87 
92  void GetBoundingBox(vtkIdType id, float *binfo);
93 
97  vtkMTimeType GetMTime() override;
98 
99 protected:
101  ~vtkTreeMapLayout() override;
102 
105 
107 
108 private:
109 
110  vtkTreeMapLayout(const vtkTreeMapLayout&) = delete;
111  void operator=(const vtkTreeMapLayout&) = delete;
112 };
113 
114 #endif
vtkTreeMapLayout::RectanglesFieldName
char * RectanglesFieldName
Definition: vtkTreeMapLayout.h:103
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkTreeMapLayout::LayoutStrategy
vtkTreeMapLayoutStrategy * LayoutStrategy
Definition: vtkTreeMapLayout.h:104
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTreeAlgorithm.h
vtkDataObject::FIELD_ASSOCIATION_VERTICES
Definition: vtkDataObject.h:257
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
Definition: vtkX3D.h:219
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:80
vtkTreeMapLayoutStrategy
abstract superclass for all tree map layout strategies
Definition: vtkTreeMapLayoutStrategy.h:48
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:302