【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.36.2 PolylineGraphObject::SetPoints
Contents
Description
Set points to a ploy line
Syntax
int SetPoints(vector& vX, vector& vY)
Parameters
- vX
- [input] point's x values
- vY
- [input] point's y values
Return
Return the count of the points
Examples
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 }
Remark
See Also
Header to Include
origin.h