Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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
 
intusedLabel ()
 
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 66 of file ELabelInterface.h.

Constructor & Destructor Documentation

◆ EdgeLabel() [1/5]

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

Definition at line 71 of file ELabelInterface.h.

◆ EdgeLabel() [2/5]

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

Definition at line 77 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 90 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 100 of file ELabelInterface.h.

◆ EdgeLabel() [5/5]

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

Definition at line 113 of file ELabelInterface.h.

◆ ~EdgeLabel()

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

Definition at line 122 of file ELabelInterface.h.

Member Function Documentation

◆ addType()

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

Definition at line 171 of file ELabelInterface.h.

◆ getHeight()

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

Definition at line 180 of file ELabelInterface.h.

◆ getWidth()

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

Definition at line 178 of file ELabelInterface.h.

◆ getX()

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

Definition at line 174 of file ELabelInterface.h.

◆ getY()

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

Definition at line 176 of file ELabelInterface.h.

◆ operator=()

Definition at line 125 of file ELabelInterface.h.

◆ operator|=()

Definition at line 140 of file ELabelInterface.h.

◆ setEdge()

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

Definition at line 169 of file ELabelInterface.h.

◆ setHeight()

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

Definition at line 165 of file ELabelInterface.h.

◆ setWidth()

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

Definition at line 167 of file ELabelInterface.h.

◆ setX()

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

Definition at line 161 of file ELabelInterface.h.

◆ setY()

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

Definition at line 163 of file ELabelInterface.h.

◆ theEdge()

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

Definition at line 182 of file ELabelInterface.h.

◆ usedLabel() [1/2]

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

Definition at line 188 of file ELabelInterface.h.

◆ usedLabel() [2/2]

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

Definition at line 184 of file ELabelInterface.h.

Member Data Documentation

◆ m_edge

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

Definition at line 206 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 192 of file ELabelInterface.h.

◆ m_usedLabels

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

Definition at line 203 of file ELabelInterface.h.

◆ m_xPos

Definition at line 195 of file ELabelInterface.h.

◆ m_xSize

Definition at line 199 of file ELabelInterface.h.

◆ m_yPos

Definition at line 196 of file ELabelInterface.h.

◆ m_ySize

Definition at line 200 of file ELabelInterface.h.

◆ numberUsedLabels

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

Definition at line 68 of file ELabelInterface.h.


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