Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::EdgeLabel< coordType > Class Template Reference

#include <ogdf/labeling/ELabelInterface.h>

Public Member Functions

 EdgeLabel ()
 
 EdgeLabel (const EdgeLabel &rhs)
 
 EdgeLabel (edge e, coordType w, coordType h, int usedLabels)
 
 EdgeLabel (edge e, coordType w[], coordType h[], int usedLabels=numberUsedLabels)
 
 EdgeLabel (edge e, int usedLabels=numberUsedLabels)
 
 ~EdgeLabel ()
 
void addType (LabelType elt)
 
coordType getHeight (LabelType elt) const
 
coordType getWidth (LabelType elt) const
 
coordType getX (LabelType elt) const
 
coordType getY (LabelType elt) const
 
EdgeLabeloperator= (const EdgeLabel &rhs)
 
EdgeLabeloperator|= (const EdgeLabel &rhs)
 
void setEdge (edge e)
 
void setHeight (LabelType elt, coordType h)
 
void setWidth (LabelType elt, coordType w)
 
void setX (LabelType elt, coordType x)
 
void setY (LabelType elt, coordType y)
 
edge theEdge () const
 
int & usedLabel ()
 
bool usedLabel (LabelType elt) const
 

Static Public Attributes

static const int numberUsedLabels = static_cast<int>(UsedLabels::lAll)
 

Private Attributes

edge m_edge
 
int m_usedLabels
 
coordType m_xPos [m_numberLabelTypes]
 
coordType m_xSize [m_numberLabelTypes]
 
coordType m_yPos [m_numberLabelTypes]
 
coordType m_ySize [m_numberLabelTypes]
 

Static Private Attributes

static const int m_numberLabelTypes = static_cast<int>(LabelType::NumLabels)
 

Detailed Description

template<class coordType>
class ogdf::EdgeLabel< coordType >

Definition at line 68 of file ELabelInterface.h.

Constructor & Destructor Documentation

◆ EdgeLabel() [1/5]

template<class coordType >
ogdf::EdgeLabel< coordType >::EdgeLabel ( )
inline

Definition at line 73 of file ELabelInterface.h.

◆ EdgeLabel() [2/5]

template<class coordType >
ogdf::EdgeLabel< coordType >::EdgeLabel ( edge  e,
int  usedLabels = numberUsedLabels 
)
inlineexplicit

Definition at line 79 of file ELabelInterface.h.

◆ EdgeLabel() [3/5]

template<class coordType >
ogdf::EdgeLabel< coordType >::EdgeLabel ( edge  e,
coordType  w[],
coordType  h[],
int  usedLabels = numberUsedLabels 
)
inline

Definition at line 92 of file ELabelInterface.h.

◆ EdgeLabel() [4/5]

template<class coordType >
ogdf::EdgeLabel< coordType >::EdgeLabel ( edge  e,
coordType  w,
coordType  h,
int  usedLabels 
)
inline

Definition at line 102 of file ELabelInterface.h.

◆ EdgeLabel() [5/5]

template<class coordType >
ogdf::EdgeLabel< coordType >::EdgeLabel ( const EdgeLabel< coordType > &  rhs)
inline

Definition at line 115 of file ELabelInterface.h.

◆ ~EdgeLabel()

template<class coordType >
ogdf::EdgeLabel< coordType >::~EdgeLabel ( )
inline

Definition at line 124 of file ELabelInterface.h.

Member Function Documentation

◆ addType()

template<class coordType >
void ogdf::EdgeLabel< coordType >::addType ( LabelType  elt)
inline

Definition at line 173 of file ELabelInterface.h.

◆ getHeight()

template<class coordType >
coordType ogdf::EdgeLabel< coordType >::getHeight ( LabelType  elt) const
inline

Definition at line 182 of file ELabelInterface.h.

◆ getWidth()

template<class coordType >
coordType ogdf::EdgeLabel< coordType >::getWidth ( LabelType  elt) const
inline

Definition at line 180 of file ELabelInterface.h.

◆ getX()

template<class coordType >
coordType ogdf::EdgeLabel< coordType >::getX ( LabelType  elt) const
inline

Definition at line 176 of file ELabelInterface.h.

◆ getY()

template<class coordType >
coordType ogdf::EdgeLabel< coordType >::getY ( LabelType  elt) const
inline

Definition at line 178 of file ELabelInterface.h.

◆ operator=()

template<class coordType >
EdgeLabel& ogdf::EdgeLabel< coordType >::operator= ( const EdgeLabel< coordType > &  rhs)
inline

Definition at line 127 of file ELabelInterface.h.

◆ operator|=()

template<class coordType >
EdgeLabel& ogdf::EdgeLabel< coordType >::operator|= ( const EdgeLabel< coordType > &  rhs)
inline

Definition at line 142 of file ELabelInterface.h.

◆ setEdge()

template<class coordType >
void ogdf::EdgeLabel< coordType >::setEdge ( edge  e)
inline

Definition at line 171 of file ELabelInterface.h.

◆ setHeight()

template<class coordType >
void ogdf::EdgeLabel< coordType >::setHeight ( LabelType  elt,
coordType  h 
)
inline

Definition at line 167 of file ELabelInterface.h.

◆ setWidth()

template<class coordType >
void ogdf::EdgeLabel< coordType >::setWidth ( LabelType  elt,
coordType  w 
)
inline

Definition at line 169 of file ELabelInterface.h.

◆ setX()

template<class coordType >
void ogdf::EdgeLabel< coordType >::setX ( LabelType  elt,
coordType  x 
)
inline

Definition at line 163 of file ELabelInterface.h.

◆ setY()

template<class coordType >
void ogdf::EdgeLabel< coordType >::setY ( LabelType  elt,
coordType  y 
)
inline

Definition at line 165 of file ELabelInterface.h.

◆ theEdge()

template<class coordType >
edge ogdf::EdgeLabel< coordType >::theEdge ( ) const
inline

Definition at line 184 of file ELabelInterface.h.

◆ usedLabel() [1/2]

template<class coordType >
int& ogdf::EdgeLabel< coordType >::usedLabel ( )
inline

Definition at line 190 of file ELabelInterface.h.

◆ usedLabel() [2/2]

template<class coordType >
bool ogdf::EdgeLabel< coordType >::usedLabel ( LabelType  elt) const
inline

Definition at line 186 of file ELabelInterface.h.

Member Data Documentation

◆ m_edge

template<class coordType >
edge ogdf::EdgeLabel< coordType >::m_edge
private

Definition at line 208 of file ELabelInterface.h.

◆ m_numberLabelTypes

template<class coordType >
const int ogdf::EdgeLabel< coordType >::m_numberLabelTypes = static_cast<int>(LabelType::NumLabels)
staticprivate

Definition at line 194 of file ELabelInterface.h.

◆ m_usedLabels

template<class coordType >
int ogdf::EdgeLabel< coordType >::m_usedLabels
private

Definition at line 205 of file ELabelInterface.h.

◆ m_xPos

template<class coordType >
coordType ogdf::EdgeLabel< coordType >::m_xPos[m_numberLabelTypes]
private

Definition at line 197 of file ELabelInterface.h.

◆ m_xSize

template<class coordType >
coordType ogdf::EdgeLabel< coordType >::m_xSize[m_numberLabelTypes]
private

Definition at line 201 of file ELabelInterface.h.

◆ m_yPos

template<class coordType >
coordType ogdf::EdgeLabel< coordType >::m_yPos[m_numberLabelTypes]
private

Definition at line 198 of file ELabelInterface.h.

◆ m_ySize

template<class coordType >
coordType ogdf::EdgeLabel< coordType >::m_ySize[m_numberLabelTypes]
private

Definition at line 202 of file ELabelInterface.h.

◆ numberUsedLabels

template<class coordType >
const int ogdf::EdgeLabel< coordType >::numberUsedLabels = static_cast<int>(UsedLabels::lAll)
static

Definition at line 70 of file ELabelInterface.h.


The documentation for this class was generated from the following file: