Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

VariableEmbeddingInserterBase.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 namespace ogdf {
38 
41 {
42 public:
45  : m_rrOption(RemoveReinsertType::None),
46  m_percentMostCrossed(25)
47  {}
48 
51  : EdgeInsertionModule(inserter),
52  m_rrOption(inserter.m_rrOption),
53  m_percentMostCrossed(inserter.m_percentMostCrossed)
54  {}
55 
58  {
59  m_rrOption = inserter.m_rrOption;
60  m_percentMostCrossed = inserter.m_percentMostCrossed;
61  return *this;
62  }
63 
66 
72  void removeReinsert(RemoveReinsertType rrOption) {
74  m_rrOption = rrOption;
75  }
76 
79  return m_rrOption;
80  }
81 
83 
87  void percentMostCrossed(double percent) {
88  m_percentMostCrossed = percent;
89  }
90 
92  double percentMostCrossed() const {
93  return m_percentMostCrossed;
94  }
95 
101  int runsPostprocessing() const {
103  return m_runsPostprocessing;
104  }
105 
106 protected:
108  void runsPostprocessing(int runs) {
109  m_runsPostprocessing = runs;
110  }
111 
113 
114 private:
117 
119 };
120 
121 }
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Declaration of interface for edge insertion algorithms.
RemoveReinsertType
The postprocessing method for edge insertion algorithms.
RemoveReinsertType m_rrOption
The remove-reinsert method.
Interface for edge insertion algorithms.
VariableEmbeddingInserterBase()
Creates an instance of variable embedding edge inserter with default settings.
Definition of RemoveReinsertType (used for postprocessing in edge insertion algorithms).
Common parameter functionality for ogdf::VariableEmbeddingInserter and ogdf::VariableEmbeddingInserte...
VariableEmbeddingInserterBase & operator=(const VariableEmbeddingInserterBase &inserter)
Assignment operator. Copies option settings only.
void runsPostprocessing(int runs)
Sets the number of runs performed by the remove-reinsert method.
RemoveReinsertType removeReinsert() const
Returns the current setting of the remove-reinsert postprocessing method.
double percentMostCrossed() const
Returns the current setting of option percentMostCrossed.
int m_runsPostprocessing
Runs of remove-reinsert method.
VariableEmbeddingInserterBase(const VariableEmbeddingInserterBase &inserter)
Creates an instance of variable embedding inserter with the same settings as inserter.
void percentMostCrossed(double percent)
Sets the option percentMostCrossed to percent.
double m_percentMostCrossed
The portion of most crossed edges considered.
Two geometric objects do not intersect.
The namespace for all OGDF objects.