Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

FixedEmbeddingInserterUML.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 namespace ogdf {
38 
41 {
42 public:
45 
48 
51 
53  virtual UMLEdgeInsertionModule *clone() const override;
54 
56  FixedEmbeddingInserterUML &operator=(const FixedEmbeddingInserterUML &inserter);
57 
58 
64  void removeReinsert(RemoveReinsertType rrOption) {
66  m_rrOption = rrOption;
67  }
68 
71  return m_rrOption;
72  }
73 
74 
76 
80  void percentMostCrossed(double percent) {
81  m_percentMostCrossed = percent;
82  }
83 
85  double percentMostCrossed() const {
86  return m_percentMostCrossed;
87  }
88 
90 
95  void keepEmbedding(bool keep) {
96  m_keepEmbedding = keep;
97  }
98 
100  bool keepEmbeding() const {
101  return m_keepEmbedding;
102  }
103 
105 
106 private:
108  virtual ReturnType doCall(
109  PlanRepLight &pr,
110  const Array<edge> &origEdges,
111  const EdgeArray<int> *pCostOrig,
112  const EdgeArray<uint32_t> *pEdgeSubgraph) override;
113 
117 };
118 
119 }
void keepEmbedding(bool keep)
Sets the option keepEmbedding to keep.
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:200
#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.