Open
Graph Drawing
Framework

 v.2012.07
 

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 
54 
55 
56 namespace ogdf {
57 
58 
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;
85  double weight;
86  };
87 
89  std::vector<EdgeData> m_deletedEdges;
91 
92  void call(Graph &G, MultilevelGraph &MLG);
93 
94 public:
95 
98 
101 
102 
104  void call(MultilevelGraph &MLG);
105 
107  void call(GraphAttributes &GA);
108 
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