Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

FixedEmbeddingInserterUML.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 
38 namespace ogdf {
39 
40 
43 {
44 public:
47 
50 
53 
55  virtual UMLEdgeInsertionModule *clone() const override;
56 
58  FixedEmbeddingInserterUML &operator=(const FixedEmbeddingInserterUML &inserter);
59 
60 
66  void removeReinsert(RemoveReinsertType rrOption) {
68  m_rrOption = rrOption;
69  }
70 
73  return m_rrOption;
74  }
75 
76 
78 
82  void percentMostCrossed(double percent) {
83  m_percentMostCrossed = percent;
84  }
85 
87  double percentMostCrossed() const {
88  return m_percentMostCrossed;
89  }
90 
92 
97  void keepEmbedding(bool keep) {
98  m_keepEmbedding = keep;
99  }
100 
102  bool keepEmbeding() const {
103  return m_keepEmbedding;
104  }
105 
107 
108 private:
110  virtual ReturnType doCall(
111  PlanRepLight &pr,
112  const Array<edge> &origEdges,
113  const EdgeArray<int> *pCostOrig,
114  const EdgeArray<uint32_t> *pEdgeSubgraph) override;
115 
119 };
120 
121 } // end namespace ogdf
void keepEmbedding(bool keep)
Sets the option keepEmbedding to keep.
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:56
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
RemoveReinsertType
The postprocessing method for edge insertion algorithms.
double percentMostCrossed() const
Returns the current setting of option percentMostCrossed.
Definition of RemoveReinsertType (used for postprocessing in edge insertion algorithms).
Edge insertion module that inserts each edge optimally into a fixed embedding.
Declaration of interface for 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
double m_percentMostCrossed
The portion of most crossed edges considered.
RemoveReinsertType removeReinsert() const
Returns the current setting of the remove-reinsert postprocessing method.
bool keepEmbeding() const
Returns the current setting of option keepEmbedding.
Interface for UML edge insertion algorithms.
The namespace for all OGDF objects.
RemoveReinsertType m_rrOption
The remove-reinsert method.
void percentMostCrossed(double percent)
Sets the option percentMostCrossed to percent.