Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

FixedEmbeddingInserter.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 
38 namespace ogdf {
39 
40 
51 {
52 public:
55 
58 
61 
63  virtual EdgeInsertionModule *clone() const override;
64 
66  FixedEmbeddingInserter &operator=(const FixedEmbeddingInserter &inserter);
67 
68 
80  m_rrOption = rrOption;
81  }
82 
85  return m_rrOption;
86  }
87 
88 
90 
94  void percentMostCrossed(double percent) {
95  m_percentMostCrossed = percent;
96  }
97 
99  double percentMostCrossed() const {
100  return m_percentMostCrossed;
101  }
102 
104 
109  void keepEmbedding(bool keep) {
110  m_keepEmbedding = keep;
111  }
112 
114  bool keepEmbeding() const {
115  return m_keepEmbedding;
116  }
117 
123  int runsPostprocessing() const {
125  return m_runsPostprocessing;
126  }
127 
129 
130 private:
132  virtual ReturnType doCall(
133  PlanRepLight &pr,
134  const Array<edge> &origEdges,
135  const EdgeArray<int> *costOrig,
136  const EdgeArray<bool> *pForbiddenOrig,
137  const EdgeArray<uint32_t> *pEdgeSubGraphs) override;
138 
142 
144 };
145 
146 } // end namespace ogdf
RemoveReinsertType removeReinsert() const
Returns the current setting of the remove-reinsert postprocessing method.
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:56
bool keepEmbeding() const
Returns the current setting of option keepEmbedding.
void removeReinsert(RemoveReinsertType rrOption)
Sets the remove-reinsert postprocessing method.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Declaration of interface for edge insertion algorithms.
RemoveReinsertType
The postprocessing method for edge insertion algorithms.
Interface for edge insertion algorithms.
RemoveReinsertType m_rrOption
The remove-reinsert method.
Definition of RemoveReinsertType (used for postprocessing in edge insertion algorithms).
ReturnType
The return type of a module.
Definition: Module.h:51
Light-weight version of a planarized representation, associated with a PlanRep.
Definition: PlanRepLight.h:44
int m_runsPostprocessing
Runs of remove-reinsert method.
void percentMostCrossed(double percent)
Sets the option percentMostCrossed to percent.
double m_percentMostCrossed
The portion of most crossed edges considered.
void keepEmbedding(bool keep)
Sets the option keepEmbedding to keep.
double percentMostCrossed() const
Returns the current setting of option percentMostCrossed.
The namespace for all OGDF objects.
Inserts edges optimally into an embedding.