Adaptagrams
Public Member Functions | Public Attributes | List of all members
topology::Edge Class Reference

Topology representation of an edge. More...

#include <topology_graph.h>

Collaboration diagram for topology::Edge:
Collaboration graph

Public Member Functions

 Edge (unsigned id, double idealLength, EdgePoints &vs)
 

Public Attributes

unsigned id
 id specified by user. Can be used to match to external edge.
 
double idealLength
 the ideal length which the layout should try to obtain for this edge
 
Segment * firstSegment
 
Segment * lastSegment
 

Detailed Description

Topology representation of an edge.

An edge provides a doubly linked list of segments, each involving a pair of EdgePoints.

Note
You shouldn't need to create these yourself, but you may extract them from an existing ColaTopologyAddon and construct a new ColaTopologyAddon with that same topology information.

Constructor & Destructor Documentation

◆ Edge()

topology::Edge::Edge ( unsigned  id,
double  idealLength,
EdgePoints &  vs 
)
inline

Construct an edge from a list of EdgePoint in sequence

References Avoid::Edge::a, and Avoid::Edge::b.

Member Data Documentation

◆ firstSegment

Segment* topology::Edge::firstSegment

Head of a doubly-linked list of Segment each involving a pair of EdgePoints

◆ lastSegment

Segment* topology::Edge::lastSegment

End of list of Segment


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