2.2.4.8.8 DataPlot::GetDataMarkers

Description

Get begin and end indices of data markers present on the data plot.

Syntax

int GetDataMarkers( vector<int> & vBegin, vector<int> & vEnd, vector<uint>& vIDs = NULL )

Parameters

vBegin
[output] will receive indices of data markers begin marker.
vEnd
[output] will receive indices of data markers end marker.
vIDs
[output] will receive IDs of data markers, can be NULL, default is NULL

Return

return the valid count of markers.

Examples

EX1

//Get the first dataplot's datamarkers in the active graph.
void DataPlot_TestDataMarkers()
{
    GraphLayer gl = Project.ActiveLayer();
    if( gl )
    {
        DataPlot dp = gl.DataPlots();
        if( dp )
        {
            vector<int> vBegin;
            vector<int> vEnd;
	    vector<uint> vIDs;
	    dp.GetDataMarkers(vBegin, vEnd, vIDs);
        }
    }
}

Remark

See Also

DataPlot::SetDataMarkers

Header to Include

origin.h