[vtkusers] vtkRenderWindow progress event

Sean Larkin sean.larkin at lickenbrocktech.com
Tue May 31 15:16:54 EDT 2011


The documentation says that the RenderEvt is supported and Intellisense in
Visual Studio says that it does as well.  The problem is that when I set the
RenderEvt function as shown below, that the my progress function is never
entered when the code is run.  Why would this happen?

-----Original Message-----
From: Bill Lorensen [mailto:bill.lorensen at gmail.com] 
Sent: Tuesday, May 31, 2011 1:34 PM
To: Sean Larkin
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] vtkRenderWindow progress event

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