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 "vtkTreeAlgorithm.h"
49 
51 
53 {
54 public:
55  static vtkTreeMapLayout *New();
56 
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
64  vtkGetStringMacro(RectanglesFieldName);
65  vtkSetStringMacro(RectanglesFieldName);
67 
69 
70  virtual void SetSizeArrayName(const char* name)
73 
75 
76  vtkGetObjectMacro(LayoutStrategy, vtkTreeMapLayoutStrategy);
77  void SetLayoutStrategy(vtkTreeMapLayoutStrategy * strategy);
79 
81  vtkIdType FindVertex(float pnt[2], float *binfo=0);
82 
84  void GetBoundingBox(vtkIdType id, float *binfo);
85 
87  virtual unsigned long GetMTime();
88 
89 protected:
92 
95 
97 
98 private:
99 
100  vtkTreeMapLayout(const vtkTreeMapLayout&); // Not implemented.
101  void operator=(const vtkTreeMapLayout&); // Not implemented.
102 };
103 
104 #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
virtual void SetSizeArrayName(const char *name)
layout a vtkTree into a tree map
int vtkIdType
Definition: vtkType.h:255
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:37
#define VTK_INFOVIS_EXPORT
abstract superclass for all tree map layout strategies
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()