![]() |
Bridges-C++
3.1.1
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 |
| const K & | to () const |
| void | setEdgeData (const E2 &data) |
| const E2 & | getEdgeData () const |
| E2 & | getEdgeData () |
| string | getLabel () const |
| void | setLabel (const string &lab) |
| void | setThickness (const double &th) |
| Change the thickness of the edge when displayed. More... | |
| double | getThickness () const |
| void | setColor (const Color &col) |
| Set the color of the edge when displayed. More... | |
| void | setColor (const string col) |
| Set the color to a named color. More... | |
| Color | getColor () const |
|
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 |
|
inline |
|
inline |
Return the edge data
|
inline |
Return the edge data
|
inline |
Return the edge label
|
inline |
|
inline |
Set the color of the edge when displayed.
| col | The color of the edge |
|
inline |
Set the color to a named color.
| col | The name of the color. Check the Color class for a list of named colors. |
|
inline |
Sets edge data to "data"
| data | Application data |
|
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 |
1.8.13