Hi,<br><br>I&#39;m currently trying to plot the output of a vtkProbeFilter with the new chart API using a vtkDataObjectToTable filter and I&#39;m having difficulties getting a vtkTable that will be accepted by the plotter. I get errors like:<br>
<br>ERROR: In /home/marc/tmp/vtk/VTK/Filtering/vtkAlgorithm.cxx, line 460<br>vtkContextMapper2D (0xd0d630): Attempt to get an input array for an index that has not been specified<br><br>ERROR: In /home/marc/tmp/vtk/VTK/Charts/vtkPlotPoints.cxx, line 600<br>
vtkPlotLine (0xcf9ca0): No Y column is set (index 1).<br><br>ERROR: In /home/marc/tmp/vtk/VTK/Filtering/vtkAlgorithm.cxx, line 460<br>vtkContextMapper2D (0xd0d630): Attempt to get an input array for an index that has not been specified<br>
....<br><br>The code looks like this: <br>// Convert the polydata to a vtkTable using points data<br>mPath-&gt;toTable = vtkDataObjectToTable::New();<br>mPath-&gt;toTable-&gt;SetInputConnection(mProbeFilter-&gt;GetOutputPort());<br>
mPath-&gt;toTable-&gt;SetFieldType(vtkDataObjectToTable::POINT_DATA);<br>mPath-&gt;toTable-&gt;Update();<br><br>// Test<br>vtkTable *table = mPath-&gt;toTable-&gt;GetOutput();<br>qDebug() &lt;&lt; table-&gt;GetNumberOfColumns(); // returns 2<br>
qDebug() &lt;&lt; table-&gt;GetNumberOfRows();    // returns 6<br>qDebug() &lt;&lt; table-&gt;GetValue(0, 0).GetTypeAsString(); // returns: &quot;short&quot;<br>qDebug() &lt;&lt; table-&gt;GetValue(0, 1).GetTypeAsString(); // returns: &quot;char&quot; &lt;-- weird?!<br>
   <br>mPath-&gt;view = vtkContextView::New();<br>mPath-&gt;view-&gt;GetRenderer()-&gt;SetBackground(0.5, 0.5, 0.5);<br>   <br>mPath-&gt;chartxy = vtkChartXY::New();<br>mPath-&gt;view-&gt;GetScene()-&gt;AddItem(mPath-&gt;chartxy);<br>
vtkPlot* line = mPath-&gt;chartxy-&gt;AddPlot(vtkChart::LINE);<br>line-&gt;SetUseIndexForXSeries(true);<br>line-&gt;SetInput(mPath-&gt;toTable-&gt;GetOutput());<br>line-&gt;SetColor(0.0, 255, 0.0, 255);<br>line-&gt;SetWidth(1.0);<br>
<br>FYI: The old XYPlot actor was working correctly with the same probe filter input.<br><br>So my question is: What am I doing wrong here? Also, is there an example somewhere showing how to correctly use a vtkProbeFilter and the new charting API?<br>
<br>Regards,<br><br>Marc<br>