[vtkusers] vtkRenderWindow progress event

Bill Lorensen bill.lorensen at gmail.com
Tue May 31 14:33:52 EDT 2011


The RenderWindow invokes: StartEvent, EndEvent, AbortCheckEvent and RenderEvent.


On Tue, May 31, 2011 at 2:17 PM, Sean Larkin
<sean.larkin at lickenbrocktech.com> wrote:
> I’m trying to use the ProgressEvt of the vtkRenderWindow to display the
> progress of the rendering operation in Activiz.NET.  When Is set the
> ProgressEvt to a function, that function never gets called.  For example,
> here’s some code I use:
>
>
>
>             vRendWin.ProgressEvt += new
> vtkObject.vtkObjectEventHandler(vRendWin_ProgressEvt); // this is my
> vtkRenderWindow
>
>             progressBar.Show(); // show my progress bar
>
>             progressBar.Message = "Rendering volume... Please wait.";
>
>             progressBar.Refresh();
>
>             vRendWin.Render(); // tell the render window to render
>
>             vRendWin.WaitForCompletion();
>
>             progressBar.Hide();
>
>
>
>
>
>         // Here’s my progress event function
>
>         void vRendWin_ProgressEvt(vtkObject sender, vtkObjectEventArgs e)
>
>         {
>
>             throw new NotImplementedException(); // I have implemented
> anything yet
>
>         }
>
>
>
> Is ProgressEvt not supported for vtkRenderWindow or am I doing something
> wrong?  Or is this a bug?
>
>
>
> Thanks,
>
> Sean
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list