2.2.4.17.19 GraphLayer::GetFunctionPlots


Description

This function get all the function plots on this layer.

Syntax

int GetFunctionPlots( vector<string> & vsNames, vector<string> & vsBodies, vector<int> * pvnIndices = NULL )

Parameters

vsNames
[output] The names of all the function plots on this graph layer.
vsBodies
[output] The defination of the function plots.
pvnIndices
[output] The indices of the corresponding function plots

Return

Return the number of function plots on the layer.

Examples

EX1

//This function will romove all the function plots on this layer.
void GetFunctinPlots_ex1()
{
    GraphLayer gl = Project.ActiveLayer();
    if ( gl )
    {
        vector<string> vsNames;
        vector<string> vsBodies;
        vector<int> vnIndices;
        int nRet = gl.GetFunctionPlots(vsNames, vsBodies, &vnIndices);
        while ( nRet-- )
            gl.RemovePlot(vnIndices[nRet]);
        return;
    }
}

Remark

See Also

Header to Included

origin.h