[vtkusers] Update VTK Poly data in vtkRenderWindow

Gishara Indeewarie gish.777 at gmail.com
Tue Feb 14 22:01:19 EST 2012


Hi David,

Option is selected using radio buttons.
eg: When user selects temperature option data should be changed to display
temperature values.
(only the scalar values are changed. Not the x, y, z values of the points)
But when I call  renderWindow->Render()   it creates a new window. I want
to update data in the same window.

Thanks.

On Tue, Feb 14, 2012 at 6:10 PM, David Doria <daviddoria at gmail.com> wrote:

> On Tue, Feb 14, 2012 at 7:03 AM, Gishara Indeewarie <gish.777 at gmail.com>
> wrote:
> >
> > Hi all,
> >
> > I have a vtk poly data rendered in an vtk render window. I want to update
> > the data in the window every time I select an option.
> > I did this by deleting the interactor window every time I update data.
> > Is there any other sophisticated method to achieve this?
> >
> > Thanks.
>
> What do you mean by "select an option"? You should be able to do
> whatever you want to your polydata, then just call
> renderWindow->Render() and everything should refresh.
>
> David
>



-- 
Gish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120215/997b1f5e/attachment.htm>


More information about the vtkusers mailing list