Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

VariableEmbeddingInserterUML.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Array.h>
35 #include <ogdf/basic/Graph.h>
36 #include <ogdf/basic/basic.h>
38 
39 #include <cstdint>
40 
41 namespace ogdf {
42 class PlanRepLight;
43 enum class RemoveReinsertType;
44 
46 
58 public:
61 
64 
67 
69  virtual UMLEdgeInsertionModule* clone() const override;
70 
73 
79  void removeReinsert(RemoveReinsertType rrOption) { m_rrOption = rrOption; }
81 
83  RemoveReinsertType removeReinsert() const { return m_rrOption; }
84 
86 
90  void percentMostCrossed(double percent) { m_percentMostCrossed = percent; }
91 
93  double percentMostCrossed() const { return m_percentMostCrossed; }
94 
96 
97 private:
99  virtual ReturnType doCall(PlanRepLight& pr, const Array<edge>& origEdges,
100  const EdgeArray<int>* pCostOrig, const EdgeArray<uint32_t>* pEdgeSubgraph) override;
101 
104 };
105 
106 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::VariableEmbeddingInserterUML::m_rrOption
RemoveReinsertType m_rrOption
The remove-reinsert method.
Definition: VariableEmbeddingInserterUML.h:102
ogdf::PlanRepLight
Light-weight version of a planarized representation, associated with a PlanRep.
Definition: PlanRepLight.h:45
ogdf::UMLEdgeInsertionModule
Interface for UML edge insertion algorithms.
Definition: UMLEdgeInsertionModule.h:53
ogdf::VariableEmbeddingInserterUML
Optimal edge insertion module.
Definition: VariableEmbeddingInserterUML.h:57
UMLEdgeInsertionModule.h
Declaration of interface for edge insertion algorithms.
ogdf::VariableEmbeddingInserterUML::percentMostCrossed
void percentMostCrossed(double percent)
Sets the option percentMostCrossed to percent.
Definition: VariableEmbeddingInserterUML.h:90
ogdf::Array
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:219
ogdf::VariableEmbeddingInserterUML::removeReinsert
RemoveReinsertType removeReinsert() const
Returns the current setting of the remove-reinsert postprocessing method.
Definition: VariableEmbeddingInserterUML.h:83
ogdf::VariableEmbeddingInserterUML::m_percentMostCrossed
double m_percentMostCrossed
The portion of most crossed edges considered.
Definition: VariableEmbeddingInserterUML.h:103
ogdf::VariableEmbeddingInserterUML::percentMostCrossed
double percentMostCrossed() const
Returns the current setting of option percentMostCrossed.
Definition: VariableEmbeddingInserterUML.h:93
ogdf::VariableEmbeddingInserterUML::~VariableEmbeddingInserterUML
~VariableEmbeddingInserterUML()
Destructor.
Definition: VariableEmbeddingInserterUML.h:66
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::RemoveReinsertType
RemoveReinsertType
The postprocessing method for edge insertion algorithms.
Definition: RemoveReinsertType.h:41
Array.h
Declaration and implementation of Array class and Array algorithms.
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716