[vtkusers] How to programatically force a redraw after changing my vtkPlaneSource's centre?

Cuypers Wouter Wouter.Cuypers at ua.ac.be
Wed Jun 22 14:07:51 EDT 2005


Not sure what programming language you are using, I just call .repaint() on the vtkPanel in Java. I guess repaint usually ends up calling .Render() so you might try that.

________________________________

Van: vtkusers-bounces+wouter.cuypers=ua.ac.be at vtk.org namens Sean McBride
Verzonden: wo 6/22/2005 5:37
Aan: vtkusers at vtk.org
Onderwerp: [vtkusers] How to programatically force a redraw after changing my vtkPlaneSource's centre?



Hi all,

Easy newbie question. :)

I have a vtkPlaneSource and I want to move it in response to user
input.  vtkPlaneSource's SetCenter is perfect and indeed works.  The
only problem is that the change is not visible until i use the mouse to
(slightly) rotate my scene.  How do I programatically tell the vtk
system that it needs to redraw?  I have tried calling Update() on the
vtkPlaneSource and its associated vtkPolyDataMapper, but that does not help.

Thanks!

--
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050622/c362c00e/attachment.htm>


More information about the vtkusers mailing list