[vtkusers] How to detect rendering progress

Mohamed Ben Reguiga breguiga_mh at yahoo.fr
Sun Mar 2 09:23:54 EST 2008


Hello all,
in my project I'm creating volume from 2D medical images (CT).
the porblem that i want you help me to resolve is that after changing properties of the vtkVolume such as Interpolation, colorFunction , I have to render the iren ( or the windowRender) to apply changes and while rendering the user is waiting and don't know when it's finishing and if it's and endless loop, so is ther something whitch indicates me the progression of the rendering to make a progress updated or show it in a textActor?
thank you for your help.
this is a  part of my source code showin how I proceed :

rndr3D = vtkRenderer::New(); 
GetRenderWindow()->AddRenderer(rndr3D);
iren = vtkRenderWindowInteractor::New();
intrctrStl = CIntrctrStlTrckBll::New(); // ih=nheritence from vtkInteractorStyleTrackballCamera
  iren->SetInteractorStyle(intrctrStl);
  iren->SetRenderWindow(GetRenderWindow());
tfun = vtkPiecewiseFunction::New();
....
ctfun = vtkColorTransferFunction::New();
....
vlmPrprt = vtkVolumeProperty::New();
.....
cmpstFnctn = vtkVolumeRayCastCompositeFunction::New();
    
 vlmMppr = vtkVolumeRayCastMapper::New();
 vlmMppr->SetInput(reader);
 vlmMppr->SetVolumeRayCastFunction(cmpstFnctn);
 vlmMppr->SetBlendModeToMaximumIntensity();
vlm = vtkVolume::New();
vlm->SetMapper(vlmMppr);
vlm->SetProperty(vlmPrprt);

aCamera=vtkCamera::New();

rndr3D->AddVolume(vlm);
 rndr3D->SetActiveCamera(aCamera);
 rndr3D->ResetCamera();

//Rendering :
iren->Render();





      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080302/1cbb5bf9/attachment.htm>


More information about the vtkusers mailing list