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 -------------------------------------------------------------------------*/
45 #ifndef vtkTreeMapLayout_h
46 #define vtkTreeMapLayout_h
47 
48 #include "vtkInfovisLayoutModule.h" // For export macro
49 #include "vtkTreeAlgorithm.h"
50 
52 
54 {
55 public:
56  static vtkTreeMapLayout *New();
57 
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62 
65  vtkGetStringMacro(RectanglesFieldName);
66  vtkSetStringMacro(RectanglesFieldName);
68 
70 
71  virtual void SetSizeArrayName(const char* name)
74 
76 
77  vtkGetObjectMacro(LayoutStrategy, vtkTreeMapLayoutStrategy);
78  void SetLayoutStrategy(vtkTreeMapLayoutStrategy * strategy);
80 
82  vtkIdType FindVertex(float pnt[2], float *binfo=0);
83 
85  void GetBoundingBox(vtkIdType id, float *binfo);
86 
88  virtual unsigned long GetMTime();
89 
90 protected:
93 
96 
98 
99 private:
100 
101  vtkTreeMapLayout(const vtkTreeMapLayout&); // Not implemented.
102  void operator=(const vtkTreeMapLayout&); // Not implemented.
103 };
104 
105 #endif
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTreeMapLayoutStrategy * LayoutStrategy
#define VTKINFOVISLAYOUT_EXPORT
virtual void SetSizeArrayName(const char *name)
layout a vtkTree into a tree map
int vtkIdType
Definition: vtkType.h:275
void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for all tree map layout strategies
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()