65template<
class coordType>
68 static const int numberUsedLabels =
static_cast<int>(UsedLabels::lAll);
79 for (
int i = 0; i < m_numberLabelTypes; i++) {
92 for (
int i = 0; i < m_numberLabelTypes; i++) {
102 for (
int i = 0; i < m_numberLabelTypes; i++) {
103 if (m_usedLabels & (1 << i)) {
114 for (
int i = 0; i < m_numberLabelTypes; i++) {
115 m_xPos[i] = rhs.
m_xPos[i];
116 m_yPos[i] = rhs.
m_yPos[i];
130 for (i = 0; i < m_numberLabelTypes; i++) {
131 m_xPos[i] = rhs.
m_xPos[i];
132 m_yPos[i] = rhs.
m_yPos[i];
148 for (
int i = 0; i < m_numberLabelTypes; i++) {
150 m_xPos[i] = rhs.
m_xPos[i];
151 m_yPos[i] = rhs.
m_yPos[i];
185 return (m_usedLabels & (1 <<
static_cast<int>(
elt))) > 0;
192 static const int m_numberLabelTypes =
static_cast<int>(LabelType::NumLabels);
215template<
class coordType>
227 for (
edge e :
pru.original().edges) {
240 for (
edge e :
uml.constGraph().edges) {
Declaration of class GridLayout.
Declaration of class GridLayoutMapped which extends GridLayout by a grid mapping mechanism.
Declaration of class PlanRepUML.
coordType & distDefault()
void setLabel(const edge &e, const EdgeLabel< coordType > &el)
coordType & minFeatDist()
ELabelInterface(GraphAttributes ¨)
GraphAttributes & graph()
coordType getWidth(edge e, LabelType elt)
coordType getHeight(edge e, LabelType elt)
void addLabel(const edge &e, const EdgeLabel< coordType > &el)
EdgeLabel< coordType > & getLabel(edge e)
EdgeArray< EdgeLabel< coordType > > m_labels
ELabelInterface(PlanRepUML &pru)
Dynamic arrays indexed with edges.
Class for the representation of edges.
coordType m_xSize[m_numberLabelTypes]
void addType(LabelType elt)
EdgeLabel(edge e, coordType w, coordType h, int usedLabels)
coordType getWidth(LabelType elt) const
void setX(LabelType elt, coordType x)
coordType getHeight(LabelType elt) const
EdgeLabel & operator=(const EdgeLabel &rhs)
EdgeLabel(edge e, coordType w[], coordType h[], int usedLabels=numberUsedLabels)
void setWidth(LabelType elt, coordType w)
EdgeLabel(const EdgeLabel &rhs)
coordType getY(LabelType elt) const
coordType m_xPos[m_numberLabelTypes]
EdgeLabel & operator|=(const EdgeLabel &rhs)
void setY(LabelType elt, coordType y)
EdgeLabel(edge e, int usedLabels=numberUsedLabels)
coordType m_ySize[m_numberLabelTypes]
bool usedLabel(LabelType elt) const
coordType m_yPos[m_numberLabelTypes]
coordType getX(LabelType elt) const
void setHeight(LabelType elt, coordType h)
Stores additional attributes of a graph (like layout information).
virtual void init(const Graph &G, long attr)
Initializes the graph attributes for graph G.
Planarized representation (of a connected component) of a UMLGraph; allows special handling of hierar...
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
int randomNumber(int low, int high)
Returns random integer between low and high (including).
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
@ NumLabels
the number of available labels at an edge