[vtkusers] vtkRenderWindow progress event

Sean Larkin sean.larkin at lickenbrocktech.com
Tue May 31 14:17:09 EDT 2011


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110531/3ce60247/attachment.htm>


More information about the vtkusers mailing list