VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
Layout
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
51
class
vtkTreeMapLayoutStrategy
;
52
53
class
VTKINFOVISLAYOUT_EXPORT
vtkTreeMapLayout
:
public
vtkTreeAlgorithm
54
{
55
public
:
56
static
vtkTreeMapLayout
*
New
();
57
58
vtkTypeMacro(
vtkTreeMapLayout
,
vtkTreeAlgorithm
);
59
void
PrintSelf
(ostream& os,
vtkIndent
indent);
60
62
65
vtkGetStringMacro
(RectanglesFieldName);
66
vtkSetStringMacro(RectanglesFieldName);
68
70
71
virtual
void
SetSizeArrayName(
const
char
*
name
)
72
{ this->
SetInputArrayToProcess
(0, 0, 0,
vtkDataObject::FIELD_ASSOCIATION_VERTICES
, 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
:
91
vtkTreeMapLayout
();
92
~
vtkTreeMapLayout
();
93
94
char
*
RectanglesFieldName
;
95
vtkTreeMapLayoutStrategy
*
LayoutStrategy
;
96
97
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
98
99
private
:
100
101
vtkTreeMapLayout
(
const
vtkTreeMapLayout
&);
// Not implemented.
102
void
operator=(
const
vtkTreeMapLayout
&);
// Not implemented.
103
};
104
105
#endif
Generated on Thu May 24 2012 22:22:26 for VTK by
1.8.1