[vtkusers] Slow rendering by vtkLabeledDataMapper... How to increase speed??

Rakesh Patil rakeshthp at in.com
Sat Feb 20 03:28:48 EST 2010


 Hello,I want to display the elevation values at each and every node in the grid. I found, the class vtkLabeledDataMapperthat suits to my task. I was able to get the labels with elevation values printed at each and every nodes. But i found that by doing so, the rendering becomes very slow.. If i scroll just a one unit, it takes around 45 seconds to display the zoomed data.What can i do to improve the speed of rendering..?? Or to get fast rendering..?? Here is my code,vtkIdFilter *ids = vtkIdFilter::New();ids>SetInput(unGrid);ids>PointIdsOn();ids>FieldDataOn();vtkLabeledDataMapper *lbm = vtkLabeledDataMapper::New();lbm>SetInputConnection( ids>GetOutputPort());lgm>SetLabelModeToLabelScalar();vtkActor2D *act = vtkActor2D::New();act>SetMapper(lbm);pRenderer>AddActor2D(act);Any thing to be changed or added to improve the speed ..??ThanksRegardsRakesh Patil 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100220/3690cee1/attachment.htm>


More information about the vtkusers mailing list