Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

FixedEmbeddingInserterUML.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 namespace ogdf {
38 
41 public:
44 
47 
50 
52  virtual UMLEdgeInsertionModule* clone() const override;
53 
55  FixedEmbeddingInserterUML& operator=(const FixedEmbeddingInserterUML& inserter);
56 
62  void removeReinsert(RemoveReinsertType rrOption) { m_rrOption = rrOption; }
64 
66  RemoveReinsertType removeReinsert() const { return m_rrOption; }
67 
69 
73  void percentMostCrossed(double percent) { m_percentMostCrossed = percent; }
74 
76  double percentMostCrossed() const { return m_percentMostCrossed; }
77 
79 
84  void keepEmbedding(bool keep) { m_keepEmbedding = keep; }
85 
87  bool keepEmbeding() const { return m_keepEmbedding; }
88 
90 
91 private:
93  virtual ReturnType doCall(PlanRepLight& pr, const Array<edge>& origEdges,
94  const EdgeArray<int>* pCostOrig, const EdgeArray<uint32_t>* pEdgeSubgraph) override;
95 
99 };
100 
101 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::FixedEmbeddingInserterUML::m_keepEmbedding
bool m_keepEmbedding
Definition: FixedEmbeddingInserterUML.h:98
ogdf::FixedEmbeddingInserterUML::m_rrOption
RemoveReinsertType m_rrOption
The remove-reinsert method.
Definition: FixedEmbeddingInserterUML.h:96
RemoveReinsertType.h
Definition of RemoveReinsertType (used for postprocessing in edge insertion algorithms).
ogdf::PlanRepLight
Light-weight version of a planarized representation, associated with a PlanRep.
Definition: PlanRepLight.h:43
ogdf::UMLEdgeInsertionModule
Interface for UML edge insertion algorithms.
Definition: UMLEdgeInsertionModule.h:48
ogdf::FixedEmbeddingInserterUML::keepEmbedding
void keepEmbedding(bool keep)
Sets the option keepEmbedding to keep.
Definition: FixedEmbeddingInserterUML.h:84
ogdf::FixedEmbeddingInserterUML::m_percentMostCrossed
double m_percentMostCrossed
The portion of most crossed edges considered.
Definition: FixedEmbeddingInserterUML.h:97
ogdf::FixedEmbeddingInserterUML::percentMostCrossed
void percentMostCrossed(double percent)
Sets the option percentMostCrossed to percent.
Definition: FixedEmbeddingInserterUML.h:73
UMLEdgeInsertionModule.h
Declaration of interface for edge insertion algorithms.
ogdf::Array
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:214
ogdf::FixedEmbeddingInserterUML
Edge insertion module that inserts each edge optimally into a fixed embedding.
Definition: FixedEmbeddingInserterUML.h:40
ogdf::FixedEmbeddingInserterUML::removeReinsert
RemoveReinsertType removeReinsert() const
Returns the current setting of the remove-reinsert postprocessing method.
Definition: FixedEmbeddingInserterUML.h:66
ogdf::FixedEmbeddingInserterUML::~FixedEmbeddingInserterUML
~FixedEmbeddingInserterUML()
Destructor.
Definition: FixedEmbeddingInserterUML.h:49
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
ogdf::FixedEmbeddingInserterUML::keepEmbeding
bool keepEmbeding() const
Returns the current setting of option keepEmbedding.
Definition: FixedEmbeddingInserterUML.h:87
ogdf::FixedEmbeddingInserterUML::percentMostCrossed
double percentMostCrossed() const
Returns the current setting of option percentMostCrossed.
Definition: FixedEmbeddingInserterUML.h:76
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:709