VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
vtkGraphLayoutStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGraphLayoutStrategy.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
-------------------------------------------------------------------------*/
36
#ifndef __vtkGraphLayoutStrategy_h
37
#define __vtkGraphLayoutStrategy_h
38
39
#include "
vtkObject.h
"
40
41
class
vtkGraph
;
42
43
class
VTK_INFOVIS_EXPORT
vtkGraphLayoutStrategy
:
public
vtkObject
44
{
45
public
:
46
vtkTypeMacro(
vtkGraphLayoutStrategy
,
vtkObject
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent);
48
50
virtual
void
SetGraph(
vtkGraph
*graph);
51
54
virtual
void
Initialize
() {};
55
60
virtual
void
Layout()=0;
61
64
virtual
int
IsLayoutComplete
() {
return
1;}
65
67
68
virtual
void
SetWeightEdges(
bool
state);
69
vtkGetMacro(WeightEdges,
bool
);
71
73
74
virtual
void
SetEdgeWeightField(
const
char
*
field
);
75
vtkGetStringMacro(EdgeWeightField);
77
78
protected
:
79
vtkGraphLayoutStrategy
();
80
~
vtkGraphLayoutStrategy
();
81
82
vtkGraph
*
Graph
;
83
char
*
EdgeWeightField
;
84
bool
WeightEdges
;
85
private
:
86
87
vtkGraphLayoutStrategy
(
const
vtkGraphLayoutStrategy
&);
// Not implemented.
88
void
operator=(
const
vtkGraphLayoutStrategy
&);
// Not implemented.
89
};
90
91
#endif
92
Generated on Sun Sep 9 2012 13:03:41 for VTK by
1.8.1.2