Bridges-C++
3.4.4
Bridges(C++ API)
|
#include <Edge.h>
This helper class is used by the graph classes - GraphAdjList , GraphAdjMatrix - to keep track of edge information.
This class is used to assign a visual connection between two Elements in the Bridges Visualization.
Bridges will represent these as arrows between two Elements. The starting Element of the arrow will be referred to as the source Element and the ending Element of the arrow will be referred to as the terminating Element.
E |
Public Member Functions | |
Edge (const K &from, const K &to, LinkVisualizer *lv, const E2 &data=E2()) | |
Constructs an edge with the given destination vertex, and edge data. More... | |
~Edge () | |
const K & | from () const |
Source vertex accessor. More... | |
const K & | to () const |
Destination vertex accessor. More... | |
void | setEdgeData (const E2 &data) |
Sets edge data to "data". More... | |
const E2 & | getEdgeData () const |
Return the edge data. More... | |
E2 & | getEdgeData () |
Return the edge data. More... | |
string | getLabel () const |
Return the edge label. More... | |
void | setLabel (const string &lab) |
Sets edge label to "lab". More... | |
void | setThickness (const double &th) |
Change the thickness of the edge when displayed. More... | |
double | getThickness () const |
Get the thickness of the edge. More... | |
void | setColor (const Color &col) |
Set the color of the edge. More... | |
void | setColor (const string col) |
Set the color to a named color. Check the Color class for a list of named colors. More... | |
Color | getColor () const |
return the current color of the edge More... | |
LinkVisualizer * | getLinkVisualizer () |
Get the link visualizer of this edge. More... | |
|
inline |
Constructs an edge with the given destination vertex, and edge data.
This constructor is not meant to be used by the Bridges user. If an argument is not given its default is used.
from | source vertex |
to | destination vertex |
lv | LinkVisualizer storing the styling information for the edge |
data | edge data |
|
inline |
|
inline |
Source vertex accessor.
|
inline |
return the current color of the edge
|
inline |
Return the edge data.
|
inline |
Return the edge data.
|
inline |
Return the edge label.
|
inline |
Get the link visualizer of this edge.
|
inline |
Get the thickness of the edge.
|
inline |
Set the color of the edge.
col | The color of the edge |
|
inline |
Set the color to a named color. Check the Color class for a list of named colors.
col | The name of the color. |
|
inline |
Sets edge data to "data".
data | Application data to be set |
|
inline |
Sets edge label to "lab".
lab | The label of the element |
|
inline |
Change the thickness of the edge when displayed.
Valid Range:[1,10] Default: 1
th | The size in pixels of the link's line weight |
string | If invalid thickness |
|
inline |
Destination vertex accessor.