Open
Graph Drawing
Framework
v.2012.07
Overview
Class Hierarchy
Class Index
Class List
Members
Namespaces
Source Files
PreprocessorLayout.h
Go to the documentation of this file.
1
/*
2
* $Revision: 2523 $
3
*
4
* last checkin:
5
* $Author: gutwenger $
6
* $Date: 2012-07-02 20:59:27 +0200 (Mon, 02 Jul 2012) $
7
***************************************************************/
8
44
#ifdef _MSC_VER
45
#pragma once
46
#endif
47
48
#ifndef OGDF_PREPROCESSOR_LAYOUT_H
49
#define OGDF_PREPROCESSOR_LAYOUT_H
50
51
52
#include <
ogdf/basic/ModuleOption.h
>
53
#include <
ogdf/module/MultilevelLayoutModule.h
>
54
55
56
namespace
ogdf {
57
58
68
class
OGDF_EXPORT
PreprocessorLayout
:
public
MultilevelLayoutModule
69
{
70
private
:
76
struct
EdgeData
77
{
78
EdgeData
(
int
edgeIndex,
int
sourceIndex,
int
targetIndex,
double
weight)
79
:edgeIndex(edgeIndex), sourceIndex(sourceIndex), targetIndex(targetIndex), weight(weight)
80
{ }
81
82
int
edgeIndex
;
83
int
sourceIndex
;
84
int
targetIndex
;
85
double
weight
;
86
};
87
88
ModuleOption<LayoutModule>
m_secondaryLayout
;
89
std::vector<EdgeData>
m_deletedEdges
;
90
bool
m_randomize
;
91
92
void
call(
Graph
&G,
MultilevelGraph
&MLG);
93
94
public
:
95
97
PreprocessorLayout
();
98
100
~PreprocessorLayout
() { }
101
102
104
void
call(
MultilevelGraph
&MLG);
105
107
void
call(
GraphAttributes
&GA);
108
110
void
setLayoutModule
(
LayoutModule
*layout) {
111
m_secondaryLayout.set(layout);
112
}
113
115
void
setRandomizePositions
(
bool
on) {
116
m_randomize = on;
117
}
118
};
119
120
121
}
// namespace ogdf
122
123
#endif
ogdf
basic
PreprocessorLayout.h
© 1999-2012 by
TU Dortmund
,
University of Jena
,
University of Cologne
,
University of Sydney
,
oreas GmbH