<div dir="ltr">Hi Andrea,<div><br></div><div>A generic way of doing this is to write a callback for vtkRenderer's StartEvent.  Then every time the renderer is preparing to render the scene, it will call your callback, and your callback can set the position of the 2D actors.  The vtkCoordinate class provides a convenient way of converting from 3D to 2D coordinates.</div><div><br></div><div>Other than callbacks, I don't think there's any way to do it.  The VTK label actors can be used to automatically position text at 3D locations, but there don't seem to be any classes for placing an arbitrary 2D actor at a 3D location.<br><br>  David<br><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 9:09 AM Andrea Gavana <<a href="mailto:andrea.gavana@gmail.com">andrea.gavana@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hello everyone,</div><div dir="auto"><br></div><div dir="auto">    I’ve been googling around without much success until now, so I am turning to this kind mailing list for suggestions.</div><div dir="auto"><br></div><div dir="auto">I have a 3D scene with multiple unstructured grids and some STL actors at defined positions (in 3D). I would like to be able to “attach” a progress bar to each of these STL actors - as my scene in rendered in a time dependent way, with the user able to go back and forth in time, it would make a nice touch for what I’m showing.</div><div dir="auto"><br></div><div dir="auto">Now, it seems to me vtkProgressBarWidget is a 2D animal, so I’m unclear how I can place it below the STL actor and anche it there even if the user zooms/pans the 3D window.</div><div dir="auto"><br></div><div dir="auto">Maybe what I’m trying to accomplish is simply not possible, but I’m open to all suggestions you may have.</div><div dir="auto"><br></div><div dir="auto">Thank you in advance.</div><div dir="auto"><br></div><div dir="auto">Andrea.</div>
</blockquote></div></div></div>