【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.36.1 PolylineGraphObject::GetPoints
Contents
Description
Get points of the ploy line
Syntax
int GetPoints(vector& vX = NULL, vector& vY = NULL)
Parameters
- vX
- [output] point's x values
- vY
- [output] point's y values
Return
Return the count of the points
Examples
EX1
void PolylineGraphObject_GetPoints_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