Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

VariableEmbeddingInserterBase.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/basic.h>
37 
38 namespace ogdf {
39 
42 public:
45  : m_rrOption(RemoveReinsertType::None), m_percentMostCrossed(25) { }
46 
49  : EdgeInsertionModule(inserter)
50  , m_rrOption(inserter.m_rrOption)
51  , m_percentMostCrossed(inserter.m_percentMostCrossed) { }
52 
55  m_rrOption = inserter.m_rrOption;
56  m_percentMostCrossed = inserter.m_percentMostCrossed;
57  return *this;
58  }
59 
62 
68  void removeReinsert(RemoveReinsertType rrOption) { m_rrOption = rrOption; }
70 
72  RemoveReinsertType removeReinsert() const { return m_rrOption; }
73 
75 
79  void percentMostCrossed(double percent) { m_percentMostCrossed = percent; }
80 
82  double percentMostCrossed() const { return m_percentMostCrossed; }
83 
89  int runsPostprocessing() const { return m_runsPostprocessing; }
91 
92 protected:
94  void runsPostprocessing(int runs) { m_runsPostprocessing = runs; }
95 
97 
98 private:
101 
103 };
104 
105 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::VariableEmbeddingInserterBase::m_rrOption
RemoveReinsertType m_rrOption
The remove-reinsert method.
Definition: VariableEmbeddingInserterBase.h:99
ogdf::VariableEmbeddingInserterBase::runsPostprocessing
void runsPostprocessing(int runs)
Sets the number of runs performed by the remove-reinsert method.
Definition: VariableEmbeddingInserterBase.h:94
ogdf::VariableEmbeddingInserterBase::m_percentMostCrossed
double m_percentMostCrossed
The portion of most crossed edges considered.
Definition: VariableEmbeddingInserterBase.h:100
RemoveReinsertType.h
Definition of RemoveReinsertType (used for postprocessing in edge insertion algorithms).
ogdf::VariableEmbeddingInserterBase::VariableEmbeddingInserterBase
VariableEmbeddingInserterBase()
Creates an instance of variable embedding edge inserter with default settings.
Definition: VariableEmbeddingInserterBase.h:44
ogdf::VariableEmbeddingInserterBase::percentMostCrossed
void percentMostCrossed(double percent)
Sets the option percentMostCrossed to percent.
Definition: VariableEmbeddingInserterBase.h:79
ogdf::EdgeInsertionModule
Interface for edge insertion algorithms.
Definition: EdgeInsertionModule.h:50
ogdf::VariableEmbeddingInserterBase::m_runsPostprocessing
int m_runsPostprocessing
Runs of remove-reinsert method.
Definition: VariableEmbeddingInserterBase.h:102
ogdf::VariableEmbeddingInserterBase::~VariableEmbeddingInserterBase
virtual ~VariableEmbeddingInserterBase()
Destructor.
Definition: VariableEmbeddingInserterBase.h:61
ogdf::VariableEmbeddingInserterBase::operator=
VariableEmbeddingInserterBase & operator=(const VariableEmbeddingInserterBase &inserter)
Assignment operator. Copies option settings only.
Definition: VariableEmbeddingInserterBase.h:54
EdgeInsertionModule.h
Declaration of interface for edge insertion algorithms.
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
ogdf::VariableEmbeddingInserterBase::removeReinsert
RemoveReinsertType removeReinsert() const
Returns the current setting of the remove-reinsert postprocessing method.
Definition: VariableEmbeddingInserterBase.h:72
ogdf::VariableEmbeddingInserterBase::percentMostCrossed
double percentMostCrossed() const
Returns the current setting of option percentMostCrossed.
Definition: VariableEmbeddingInserterBase.h:82
ogdf::VariableEmbeddingInserterBase::VariableEmbeddingInserterBase
VariableEmbeddingInserterBase(const VariableEmbeddingInserterBase &inserter)
Creates an instance of variable embedding inserter with the same settings as inserter.
Definition: VariableEmbeddingInserterBase.h:48
ogdf::IntersectionType::None
@ None
Two geometric objects do not intersect.
ogdf::VariableEmbeddingInserterBase
Common parameter functionality for ogdf::VariableEmbeddingInserter and ogdf::VariableEmbeddingInserte...
Definition: VariableEmbeddingInserterBase.h:41