【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.16.4 GetGraphPoints::GetData
Contents
Description
Gets the XY points into two vectors for the points that have been picked thus far. Can be called from within an event method of a derived class or after the GetGraphPoints::GetPoints() has returned. Optionally returns the row indices of the points from the plot source data sheet and/or the zero-based plot indices for the picked points.
Syntax
int GetData(vector& vx, vector& vy = NULL, vector<int>& vnDatapointIndices = NULL, vector<int>& vnDataplotIndices = NULL);
Parameters
- vx
- [output] Receives the x-values of the selected points.
- vy
- [output] If not NULL, receives the y-values of the selected points.
- vnDatapointIndices
- [output] When not NULL it receives the zero-based row index of data from the source data sheet. If 1st parameter of GetGraphPoints::SetFollowData() is false, the returned values will all be -1.
- vnDataplotIndices
- [output] When not NULL it receives the zero-based index of the plot in the graph layer. If 1st parameter of GetGraphPoints::SetFollowData() is false, the returned values will all be -1.
Return
Returns -1 if cancelled or an error occurred. Otherwise returns number of points picked.
Examples
For an example of using this method, please see the Example Section in GetGraphPoints.
Remark
See Also
Header to Include
origin.h