VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
Layout
vtkAreaLayout.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAreaLayout.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
-------------------------------------------------------------------------*/
37
#ifndef __vtkAreaLayout_h
38
#define __vtkAreaLayout_h
39
40
#include "vtkInfovisLayoutModule.h"
// For export macro
41
#include "
vtkTreeAlgorithm.h
"
42
43
class
vtkAreaLayoutStrategy
;
44
45
class
VTKINFOVISLAYOUT_EXPORT
vtkAreaLayout
:
public
vtkTreeAlgorithm
46
{
47
public
:
48
static
vtkAreaLayout
*
New
();
49
vtkTypeMacro(
vtkAreaLayout
,
vtkTreeAlgorithm
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
53
56
virtual
void
SetSizeArrayName(
const
char
*
name
)
57
{ this->
SetInputArrayToProcess
(0, 0, 0,
vtkDataObject::FIELD_ASSOCIATION_VERTICES
, name); }
59
61
65
vtkGetStringMacro
(AreaArrayName);
66
vtkSetStringMacro(AreaArrayName);
68
70
72
vtkGetMacro(EdgeRoutingPoints,
bool
);
73
vtkSetMacro(EdgeRoutingPoints,
bool
);
74
vtkBooleanMacro(EdgeRoutingPoints,
bool
);
76
78
79
vtkGetObjectMacro(LayoutStrategy,
vtkAreaLayoutStrategy
);
80
void
SetLayoutStrategy(
vtkAreaLayoutStrategy
* strategy);
82
84
virtual
unsigned
long
GetMTime
();
85
88
vtkIdType
FindVertex(
float
pnt[2]);
89
91
void
GetBoundingArea(
vtkIdType
id
,
float
*sinfo);
92
93
protected
:
94
vtkAreaLayout
();
95
~
vtkAreaLayout
();
96
97
char
*
AreaArrayName
;
98
bool
EdgeRoutingPoints
;
99
char
*
EdgeRoutingPointsArrayName
;
100
vtkAreaLayoutStrategy
*
LayoutStrategy
;
101
102
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
103
104
private
:
105
106
vtkAreaLayout
(
const
vtkAreaLayout
&);
// Not implemented.
107
void
operator=(
const
vtkAreaLayout
&);
// Not implemented.
108
};
109
110
#endif
Generated on Thu May 24 2012 22:22:26 for VTK by
1.8.1