SetPoints
Set points to a ploy line
int SetPoints(vector& vX, vector& vY)
Return the count of the points
EX1
void PolylineGraphObject_SetPoints_Ex1() { GraphLayer gl = Project.ActiveLayer(); if( !gl ) return; PolylineGraphObject grCursor; grCursor = (PolylineGraphObject) gl.CreateGraphObject(GROT_LINE); vector vX; vector vY; vX.Add(0); vX.Add(1); vY.Add(0); vY.Add(1); int nCount = grCursor.SetPoints(vX, vY); out_int("SetPoints return count:", nCount); nCount = grCursor.GetPoints(vX, vY); out_int("SetPoints return count:", nCount); GraphPage gp = Project.Pages(); if( gp ) gp.Refresh(TRUE); // Slow refresh, redraw everything from data }
GetPoints
origin.h