[vtkusers] vtkDistanceWidget not working

David Cole dlrdave at aol.com
Mon Sep 8 11:56:48 EDT 2014


Hold the dWidget variable beyond the scope of whatever function it is 
in....

i.e. -- when the widget goes away, it does not show up anymore. You 
need to hold the reference alive by maintaining a smart pointer to it 
at a "more outer" scope. Perhaps attaching it to whatever keeps your 
renderwindow alive makes sense...


HTH,
David C.



More information about the vtkusers mailing list