MCPcopy Create free account
hub / github.com/CloudCompare/CloudCompare / clearGraphs

Method clearGraphs

qCC/extern/QCustomPlot/qcustomplot.cpp:14478–14484  ·  view source on GitHub ↗

! Removes all graphs from the plot and deletes them. Corresponding legend items are also removed from the default legend (QCustomPlot::legend). Returns the number of graphs removed. \see removeGraph */

Source from the content-addressed store, hash-verified

14476 \see removeGraph
14477*/
14478int QCustomPlot::clearGraphs()
14479{
14480 int c = mGraphs.size();
14481 for (int i=c-1; i >= 0; --i)
14482 removeGraph(mGraphs[i]);
14483 return c;
14484}
14485
14486/*!
14487 Returns the number of currently existing graphs in the plot

Callers 2

refreshMethod · 0.80
refreshMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected