<div>The "Selection Inspector" of ParaView can probably do what you want: <a href="http://paraview.org/OnlineHelpCurrent/SelectionInspector.html">http://paraview.org/OnlineHelpCurrent/SelectionInspector.html</a></div>
<div> </div>
<div>Nehme<br></div>
<div class="gmail_quote">On Sun, Aug 7, 2011 at 7:42 PM, ChiaWeng Boon <span dir="ltr"><<a href="mailto:chiaweng@gmail.com">chiaweng@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br><br>I would like to display the ID numbers of my bodies. They are saved<br>as a Point Data as follows from vtkUnstructuredGridWriter. Is there a<br>
way to display the IDs as texts using Paraview? I've been trying out<br>different Filters for hours but am unsuccessful.<br><br>vtkSmartPointer<vtkFloatArray> spheresId =<br>vtkSmartPointer<vtkFloatArray>::New();<br>
spheresId->SetNumberOfComponents(1);<br> spheresId->SetName("id");<br>vtkSmartPointer<vtkUnstructuredGrid> spheresUg =<br>vtkSmartPointer<vtkUnstructuredGrid>::New();<br><br>FOR EVERY BODY:<br>
spheresUg->SetPoints(spheresPos);<br>spheresUg->SetCells(VTK_VERTEX, spheresCells);<br>spheresId->InsertNextValue(b->getId());<br>spheresUg->GetPointData()->AddArray(spheresId);<br>END FOR<br><br>vtkSmartPointer<vtkXMLUnstructuredGridWriter> writer =<br>
vtkSmartPointer<vtkXMLUnstructuredGridWriter>::New();<br>string fn=fileName+"spheres."+lexical_cast<string>(scene->iter)+".vtu";<br>writer->SetFileName(fn.c_str());<br>writer->SetInput(spheresUg);<br>
writer->Write();<br><br><br>Yours faithfully,<br><br>Boon<br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>