I read about GDV in the December 2009 issue of Linux Journal [0]. I just downloaded it and am having some fun with the surface plots. Nice job! Thanks especially for releasing the binary package which ran just fine on my Ubuntu Karmic machine.
I have a VTK question... is there any way to make the VTK window perform "live" previews? I'd like it to redraw the entire surface plot as I click-and-drag rather than simply showing the axes in white as I'm dragging.
I didn't see any VTKRendererWindow properties that appear to control this behavior [1]. If I had, I would have modified them in refreshPlot() [2]
I have investigated the your question. Normally, in order to force immediate rendering, u can call the Render() member of the window. This could be either the RenderWindow or Renderer class, can't remember which.
However, to rerender after/during interaction is tricky. I could not find the necessary solution. Following <http://www.vtk.org/pipermail/vtkusers/2005-June/ 080418.html> and its reply, is not an option as VTK has changed since that post. I couldn't find that (SetNeedsDisplay) member.
Looks like u should ask on the vtkusers list, they are very helpful.... as long as the solution is not readily been discussed and available on the net.
HTH Cheers Shakes
On Mar 10, 2:51 am, Tyler <tyleroderk...@gmail.com> wrote:
> I read about GDV in the December 2009 issue of Linux Journal [0]. I > just downloaded it and am having some fun with the surface plots. Nice > job! Thanks especially for releasing the binary package which ran just > fine on my Ubuntu Karmic machine.
> I have a VTK question... is there any way to make the VTK window > perform "live" previews? I'd like it to redraw the entire surface plot > as I click-and-drag rather than simply showing the axes in white as > I'm dragging.
> I didn't see any VTKRendererWindow properties that appear to control > this behavior [1]. If I had, I would have modified them in > refreshPlot() [2]
Upon a second look... looks like u need to adjust parameters in the vtkRenderWindowInteractor class. More specifically, void vtkRenderWindowInteractor::SetDesiredUpdateRate (double) <http://www.vtk.org/doc/release/5.4/html/ a01491.html#1a7b9baf6714b5587f0ce99a03979586>
Hopefully setting that member will do the trick.
Cheers Shakes
On Mar 12, 2:08 pm, Shakes <shake...@gmail.com> wrote:
> I have investigated the your question. Normally, in order to force > immediate rendering, u can call the Render() member of the window. > This could be either the RenderWindow or Renderer class, can't > remember which.
> However, to rerender after/during interaction is tricky. I could not > find the necessary solution. > Following <http://www.vtk.org/pipermail/vtkusers/2005-June/ > 080418.html> and its reply, is not an option as VTK has changed since > that post. I couldn't find that (SetNeedsDisplay) member.
> Looks like u should ask on the vtkusers list, they are very > helpful.... as long as the solution is not readily been discussed and > available on the net.
> HTH > Cheers > Shakes
> On Mar 10, 2:51 am, Tyler <tyleroderk...@gmail.com> wrote:
> > Hi Shekhar,
> > I read about GDV in the December 2009 issue of Linux Journal [0]. I > > just downloaded it and am having some fun with the surface plots. Nice > > job! Thanks especially for releasing the binary package which ran just > > fine on my Ubuntu Karmic machine.
> > I have a VTK question... is there any way to make the VTK window > > perform "live" previews? I'd like it to redraw the entire surface plot > > as I click-and-drag rather than simply showing the axes in white as > > I'm dragging.
> > I didn't see any VTKRendererWindow properties that appear to control > > this behavior [1]. If I had, I would have modified them in > > refreshPlot() [2]
members from RenderWindowInteractor. You can also set the camera directly.
Then use the WindowToImageFilter, then write a frame (of this filter) into an AVI using AVIWriter. See <http://www.vtk.org/pipermail/ vtkusers/2007-May/091223.html> for more details. Here u can use Off- screen rendering if your machine is not powerful enough to get the necessary frame rate.
I would be very interested in any solution u find.
Cheers Shakes
On Mar 12, 3:43 pm, Tyler <tyleroderk...@gmail.com> wrote: