<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px">Hi all,<br style="" class=""><br style="" class="">Is there a way to check whether a vtk pipeline has data to render? Many VTK algorithms display an error when they don't have input data. And these errors are harmless (don't crash the app), I would like to avoid them.<br style="" class=""><br style="" class="">I currently am doing this as follows:<br style="" class=""><br style="" class="">vtkMapper* mapper = actor->GetMapper();<br style="" class="">if( 0 < mapper->GetTotalNumberOfInputConnections() &&<br style="" class="">    0 < mapper->GetInputAlgortihm(0,0)->GetTotalNumberOfInputConnections() &&<br style="" class=""><div style="" class="">    0 <
 mapper->GetInputAlgortihm(0,0)->GetInputAlgortihm(0,0)->GetTotalNumberOfInputConnections() &&</div><div style="" class="">     .... )</div><div style="" class="">{</div><div style="" class="">    actor->VisibilityOn()<br></div><div style="" class="">}</div><div style="" class="">else</div><div style="" class="">{</div><div style="" class="">    actor->VisibilityOff();<br></div><div style="" class="">}</div><div style="" class=""><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">One can easily imagine I would like to have a more convenient if statement, because currently I need to know exactly how long the pipeline is. </div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica
 Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class=""><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">For those interested:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">This issue pops up, when when the rendering pipeline is created at the beginning a running the app, before the data is loaded Or when the data is unloaded in order to load new data.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class=""><br></div><div style="color: rgb(0, 0, 0);
 font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">Thank - Maarten<br></div></div></body></html>