Fix to vtkVolumeTextureMapper3D progress events

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fix to vtkVolumeTextureMapper3D progress events

Matt Hilleman
Fix to vtkVolumeTextureMapper3D progress events

This is for VTK 5.0 and the CVS version

Uncomment all the code, in vtkVolumeTextureMapper3D.cxx, referring to:

VolumeMapperComputeGradientsStartEvent
VolumeMapperComputeGradientsProgressEvent
VolumeMapperComputeGradientsEndEvent

Around line 633 change it to the following:

if ( z%8 == 7 )
{
  double args[1];
  args[0] =
    static_cast<double>(z - z_start) /
    static_cast<double>(z_limit - z_start - 1);
  me->InvokeEvent( vtkCommand::VolumeMapperComputeGradientsProgressEvent, args );
}

        Have fun, Matt


Matt Hilleman
Vice President of Development
Ortho Computer Systems, Inc.
1107 Buckeye Ave.
Ames, IA 50010
515-233-1026
[hidden email]


_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers