Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
"Live" redrawing in the VTK surface plot windows
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tyler  
View profile  
 More options Mar 9 2010, 10:51 am
From: Tyler <tyleroderk...@gmail.com>
Date: Tue, 9 Mar 2010 07:51:43 -0800 (PST)
Local: Tues, Mar 9 2010 10:51 am
Subject: "Live" redrawing in the VTK surface plot windows
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]

-Tyler

[0] http://www.linuxjournal.com/magazine/new-projects-fresh-labs-14
[1] http://www.vtk.org/doc/nightly/html/classvtkRenderWindow.html
[2] http://code.google.com/p/discrete-geometry-viewer/source/browse/dgv/s...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shakes  
View profile  
 More options Mar 11 2010, 10:08 pm
From: Shakes <shake...@gmail.com>
Date: Thu, 11 Mar 2010 19:08:24 -0800 (PST)
Local: Thurs, Mar 11 2010 10:08 pm
Subject: Re: "Live" redrawing in the VTK surface plot windows
Hi Tyler,

Thanks. Glad u found DGV useful.

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shakes  
View profile  
 More options Mar 11 2010, 10:21 pm
From: Shakes <shake...@gmail.com>
Date: Thu, 11 Mar 2010 19:21:17 -0800 (PST)
Local: Thurs, Mar 11 2010 10:21 pm
Subject: Re: "Live" redrawing in the VTK surface plot windows
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tyler  
View profile  
 More options Mar 11 2010, 11:43 pm
From: Tyler <tyleroderk...@gmail.com>
Date: Thu, 11 Mar 2010 20:43:40 -0800 (PST)
Local: Thurs, Mar 11 2010 11:43 pm
Subject: Re: "Live" redrawing in the VTK surface plot windows
On Mar 11, 10:21 pm, Shakes <shake...@gmail.com> wrote:

> void vtkRenderWindowInteractor::SetDesiredUpdateRate (double)

Shakes,

As a workaround in the meantime I hacked up a script to take
sequential screen shots of DGV. You can find my results here:
http://unsyncopated.com/blog/index.php/2010/03/09/adding-a-dimension-...

Take care,

-Tyler


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shakes  
View profile  
 More options Mar 12 2010, 1:31 am
From: Shakes <shake...@gmail.com>
Date: Thu, 11 Mar 2010 22:31:07 -0800 (PST)
Local: Fri, Mar 12 2010 1:31 am
Subject: Re: "Live" redrawing in the VTK surface plot windows
Hi Tyler,

That looks great! ;)

If you wanted a movie, VTK can do it for u. I have plans to allow
taking of movies in DGV, but they are a bit further down in the
timeline.

To use VTK to do it, u set the angle of the camera programatically,
use

void    FlyTo  (vtkRenderer *ren, double x, double y, double z)
void    FlyTo (vtkRenderer *ren, double *x)
void    FlyToImage (vtkRenderer *ren, double x, double y)
void    FlyToImage (vtkRenderer *ren, double *x)
virtual void    SetNumberOfFlyFrames (int)
virtual int     GetNumberOfFlyFrames ()

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »