Modifying Line Ends

In Vector graphs, both ends of the line segment can be displayed using polygonal shapes. Like wigets, the appearance of the line ends is controlled by SRGraphStyle::SetObjectName(). For vectors, the resource names of the tail and head shapes are specified together, separated by a “|” character. For example,

 

m_Graph.GetSafeData(x, g)->GetStyle()-> SetObjectName(_T("TAILA|ARROWA"));

Currently, only three shapes are supplied as LINE_ENDS resources — TAILA, ARROWA, and ENDBLOB. Like wigets, these shapes are defined in simple text files (*.ply), so it is easy to add new shapes to the resources.

Sample line ends in a Vector graph