VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
dox
Infovis
Layout
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 "vtkInfovisLayoutModule.h"
// For export macro
40
#include "vtkObject.h"
41
42
class
vtkGraph;
43
44
class
VTKINFOVISLAYOUT_EXPORT
vtkGraphLayoutStrategy
:
public
vtkObject
45
{
46
public
:
47
vtkTypeMacro(
vtkGraphLayoutStrategy
,vtkObject);
48
void
PrintSelf(ostream& os, vtkIndent indent);
49
51
virtual
void
SetGraph(vtkGraph *graph);
52
55
virtual
void
Initialize
() {};
56
61
virtual
void
Layout()=0;
62
65
virtual
int
IsLayoutComplete
() {
return
1;}
66
68
69
virtual
void
SetWeightEdges(
bool
state);
70
vtkGetMacro(WeightEdges,
bool
);
72
74
75
virtual
void
SetEdgeWeightField(
const
char
* field);
76
vtkGetStringMacro(EdgeWeightField);
78
79
protected
:
80
vtkGraphLayoutStrategy
();
81
~
vtkGraphLayoutStrategy
();
82
83
vtkGraph *
Graph
;
84
char
*
EdgeWeightField
;
85
bool
WeightEdges
;
86
private
:
87
88
vtkGraphLayoutStrategy
(
const
vtkGraphLayoutStrategy
&);
// Not implemented.
89
void
operator=(
const
vtkGraphLayoutStrategy
&);
// Not implemented.
90
};
91
92
#endif
93
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition:
vtkGraphLayoutStrategy.h:44
vtkGraphLayoutStrategy::IsLayoutComplete
virtual int IsLayoutComplete()
Definition:
vtkGraphLayoutStrategy.h:65
vtkGraphLayoutStrategy::EdgeWeightField
char * EdgeWeightField
Definition:
vtkGraphLayoutStrategy.h:84
vtkGraphLayoutStrategy::Graph
vtkGraph * Graph
Definition:
vtkGraphLayoutStrategy.h:83
vtkGraphLayoutStrategy::Initialize
virtual void Initialize()
Definition:
vtkGraphLayoutStrategy.h:55
vtkGraphLayoutStrategy::WeightEdges
bool WeightEdges
Definition:
vtkGraphLayoutStrategy.h:85
Generated on Sat May 10 2014 05:42:50 for VTK by
1.8.6