[vtkusers] Clearing vtkPlot object

Maarten Beek beekmaarten at yahoo.com
Fri Dec 19 10:12:52 EST 2014

Hi all,
Yesterday I started exploring the options to draw 2d graphs in VTK.

Why does
not remove the graph from my chart?

I am currently using 
vtkTable* table = m_pChart->GetPlot(0)->GetInput();if( 0 != table ){    while( 0  < table->GetNumberOfRows() )    {        table->RemoveRow(0);    }}
m_pChart->GetPlot(0)->GetData()->Modified(); // <- required!
This works, but complains about trying to draw a line with less than 2 points.
Thanks - Maarten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141219/7016213a/attachment.html>

More information about the vtkusers mailing list