VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
vtkCirclePackLayout.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCirclePackLayout.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
-------------------------------------------------------------------------*/
44
#ifndef __vtkCirclePackLayout_h
45
#define __vtkCirclePackLayout_h
46
47
#include "
vtkTreeAlgorithm.h
"
48
49
class
vtkCirclePackLayoutStrategy
;
50
51
class
VTK_INFOVIS_EXPORT
vtkCirclePackLayout
:
public
vtkTreeAlgorithm
52
{
53
public
:
54
static
vtkCirclePackLayout
*
New
();
55
56
vtkTypeMacro(
vtkCirclePackLayout
,
vtkTreeAlgorithm
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent);
58
60
63
vtkGetStringMacro(CirclesFieldName);
64
vtkSetStringMacro(CirclesFieldName);
66
68
70
virtual
void
SetSizeArrayName(
const
char
*
name
)
71
{ this->
SetInputArrayToProcess
(0, 0, 0,
vtkDataObject::FIELD_ASSOCIATION_VERTICES
, name); }
73
75
76
vtkGetObjectMacro(LayoutStrategy,
vtkCirclePackLayoutStrategy
);
77
void
SetLayoutStrategy(
vtkCirclePackLayoutStrategy
* strategy);
79
84
vtkIdType
FindVertex(
float
pnt[2],
float
*cinfo=0);
85
88
void
GetBoundingCircle(
vtkIdType
id
,
float
*cinfo);
89
91
virtual
unsigned
long
GetMTime
();
92
93
protected
:
94
vtkCirclePackLayout
();
95
~
vtkCirclePackLayout
();
96
97
char
*
CirclesFieldName
;
98
vtkCirclePackLayoutStrategy
*
LayoutStrategy
;
99
100
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
101
102
private
:
103
104
vtkCirclePackLayout
(
const
vtkCirclePackLayout
&);
// Not implemented.
105
void
operator=(
const
vtkCirclePackLayout
&);
// Not implemented.
106
};
107
108
#endif
Generated on Tue Jan 8 2013 05:45:34 for VTK by
1.8.1.2