<p class="MsoNormal">Hi everyone. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am attempting to set up a Pointer tracking app to
interactively manipulate some vtk actors in a single scene – ie vtkRenderWindow.
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Basically, I now have a simple OpenGL app where, in the
Win32 message loop after translate & dispatch, I go and get the position of
my tracked pointer and render the scene, unless I press the ESC key where I quit
the app. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">This way basically I have 3D objects continuously rendered and
the tracked tool is continuously interrogated and its corresponding 3D object
is updated in the scene. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">However, in terms of VTK I am unsure how to implement this,
since a vtkRenderWindowInteractor will be observing/executing on mouse, key
& other events. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Then I explored on using a vtkWidget (ie vtkLineWidget2)
where I could do a callback function, but 1) its only binded to
RenderWindowInteractor events and mouse events. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Finally, looking at the vtkCommand IDs I could not find
something that I could observe if its not connected either to an interactor or
filter after calling update. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Can anyone recommend a reasonable approach to implement this?
I first thought of creating my own msg loop that would also listen to
vtkCommand IDs – but this seems to be what happens in vtkWin32RenderWindowInteractor::Start()</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any help, suggestion or reference is appreciated </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Sergio </p>