VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
Layout
vtkBoxLayoutStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkBoxLayoutStrategy.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
-------------------------------------------------------------------------*/
34
#ifndef __vtkBoxLayoutStrategy_h
35
#define __vtkBoxLayoutStrategy_h
36
37
#include "vtkInfovisLayoutModule.h"
// For export macro
38
#include "
vtkTreeMapLayoutStrategy.h
"
39
40
class
VTKINFOVISLAYOUT_EXPORT
vtkBoxLayoutStrategy
:
public
vtkTreeMapLayoutStrategy
41
{
42
public
:
43
static
vtkBoxLayoutStrategy
*
New
();
44
45
vtkTypeMacro(
vtkBoxLayoutStrategy
,
vtkTreeMapLayoutStrategy
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
47
49
51
virtual
void
Layout
(
52
vtkTree
* inputTree,
53
vtkDataArray
* coordsArray,
54
vtkDataArray
* sizeArray);
56
57
protected
:
58
vtkBoxLayoutStrategy
();
59
~
vtkBoxLayoutStrategy
();
60
61
private
:
62
63
void
LayoutChildren(
vtkTree
*inputTree,
vtkDataArray
*coordsArray,
64
vtkIdType
parentId,
65
float
parentMinX,
float
parentMaxX,
66
float
parentMinY,
float
parentMaxY);
67
68
vtkBoxLayoutStrategy
(
const
vtkBoxLayoutStrategy
&);
// Not implemented.
69
void
operator=(
const
vtkBoxLayoutStrategy
&);
// Not implemented.
70
};
71
72
#endif
73
Generated on Thu May 24 2012 22:22:26 for VTK by
1.8.1