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) VTK_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=0);
87 
92  void GetBoundingBox(vtkIdType id, float *binfo);
93 
97  vtkMTimeType GetMTime() VTK_OVERRIDE;
98 
99 protected:
101  ~vtkTreeMapLayout() VTK_OVERRIDE;
102 
103  char * RectanglesFieldName;
104  vtkTreeMapLayoutStrategy* LayoutStrategy;
105 
106  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
107 
108 private:
109 
110  vtkTreeMapLayout(const vtkTreeMapLayout&) VTK_DELETE_FUNCTION;
111  void operator=(const vtkTreeMapLayout&) VTK_DELETE_FUNCTION;
112 };
113 
114 #endif
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
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:345
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:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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.