[vtkusers] vtkRenderWindow progress event

Bill Lorensen bill.lorensen at gmail.com
Tue May 31 16:20:30 EDT 2011


Sorry, I did not notice that Activiz was being used.

I can't help there. Is there an Activiz mailing list? Or maybe you
should put Activiz somewhere in the e-mail Subject.


On Tue, May 31, 2011 at 3:26 PM, Sean Larkin
<sean.larkin at lickenbrocktech.com> wrote:
> I tested the StartEvent and it works fine.  When I call the Render() method
> the start function that I set is entered as expected.  I then checked to
> make sure that my RenderEvt was being registered and it was.  For some
> reason the ProgressEvt is never fired, thus my function is never called.
> Could this have something to do with using Activiz.NET?
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
> Of Sean Larkin
> Sent: Tuesday, May 31, 2011 2:17 PM
> To: vtkusers at vtk.org
> Subject: Re: [vtkusers] vtkRenderWindow progress event
>
>
> 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
>>
>>
>
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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