VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
Layout
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 "vtkInfovisLayoutModule.h"
// For export macro
48
#include "
vtkTreeAlgorithm.h
"
49
50
class
vtkCirclePackLayoutStrategy
;
51
52
class
VTKINFOVISLAYOUT_EXPORT
vtkCirclePackLayout
:
public
vtkTreeAlgorithm
53
{
54
public
:
55
static
vtkCirclePackLayout
*
New
();
56
57
vtkTypeMacro(
vtkCirclePackLayout
,
vtkTreeAlgorithm
);
58
void
PrintSelf
(ostream& os,
vtkIndent
indent);
59
61
64
vtkGetStringMacro
(CirclesFieldName);
65
vtkSetStringMacro(CirclesFieldName);
67
69
71
virtual
void
SetSizeArrayName(
const
char
*
name
)
72
{ this->
SetInputArrayToProcess
(0, 0, 0,
vtkDataObject::FIELD_ASSOCIATION_VERTICES
, name); }
74
76
77
vtkGetObjectMacro(LayoutStrategy,
vtkCirclePackLayoutStrategy
);
78
void
SetLayoutStrategy(
vtkCirclePackLayoutStrategy
* strategy);
80
85
vtkIdType
FindVertex(
float
pnt[2],
float
*cinfo=0);
86
89
void
GetBoundingCircle(
vtkIdType
id
,
float
*cinfo);
90
92
virtual
unsigned
long
GetMTime
();
93
94
protected
:
95
vtkCirclePackLayout
();
96
~
vtkCirclePackLayout
();
97
98
char
*
CirclesFieldName
;
99
vtkCirclePackLayoutStrategy
*
LayoutStrategy
;
100
101
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
102
103
private
:
104
105
vtkCirclePackLayout
(
const
vtkCirclePackLayout
&);
// Not implemented.
106
void
operator=(
const
vtkCirclePackLayout
&);
// Not implemented.
107
};
108
109
#endif
Generated on Thu May 24 2012 22:22:26 for VTK by
1.8.1