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 -------------------------------------------------------------------------*/
46 #ifndef vtkTreeMapLayout_h
47 #define vtkTreeMapLayout_h
48 
49 #include "vtkInfovisLayoutModule.h" // For export macro
50 #include "vtkTreeAlgorithm.h"
51 
53 
54 class VTKINFOVISLAYOUT_EXPORT vtkTreeMapLayout : public vtkTreeAlgorithm
55 {
56 public:
57  static vtkTreeMapLayout *New();
58 
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
68  vtkGetStringMacro(RectanglesFieldName);
69  vtkSetStringMacro(RectanglesFieldName);
71 
75  virtual void SetSizeArrayName(const char* name)
77 
79 
82  vtkGetObjectMacro(LayoutStrategy, vtkTreeMapLayoutStrategy);
83  void SetLayoutStrategy(vtkTreeMapLayoutStrategy * strategy);
85 
89  vtkIdType FindVertex(float pnt[2], float *binfo=nullptr);
90 
95  void GetBoundingBox(vtkIdType id, float *binfo);
96 
100  vtkMTimeType GetMTime() override;
101 
102 protected:
104  ~vtkTreeMapLayout() override;
105 
108 
110 
111 private:
112 
113  vtkTreeMapLayout(const vtkTreeMapLayout&) = delete;
114  void operator=(const vtkTreeMapLayout&) = delete;
115 };
116 
117 #endif
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTreeMapLayoutStrategy * LayoutStrategy
virtual void SetSizeArrayName(const char *name)
The array to use for the size of each vertex.
layout a vtkTree into a tree map
int vtkIdType
Definition: vtkType.h:347
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
abstract superclass for all tree map layout strategies
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.