[vtkusers] Re fresh vtkPanel

Jeff Baumes jeff.baumes at kitware.com
Mon Jan 18 12:52:24 EST 2010


On Mon, Jan 18, 2010 at 12:41 PM, thao <thao10 at gmail.com> wrote:
>
> Hello all,
>
> My application consists of a vtkPanel in a JFrame.  I have a button for the
> user to reset the camera.  When this button is pressed the vtkPanel should
> refresh.  But it looks like it is only refreshing when I minimize the whole
> JFrame window and then maximize it again.
>
> Does anyone have a suggestion on how to properly refresh a vtkPanel in a
> JFrame?
>

Are you calling just ResetCamera()? You also need to call Render() to
make the view re-render. Could you send the code that is executed when
the button is pressed?

Jeff



More information about the vtkusers mailing list