[vtkusers] how to use vtk to display a image in MFC

de Boer Ingo I.deBoer at polytec.de
Tue Nov 9 06:26:46 EST 2004


Hi,

please look at the samples at

http://www.vtk.org/Bug/bug.php?op=show&bugid=649&pos=0


greets
  Ingo

---
Dr.-Ing. Ingo H. de Boer

Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax  : ++49 7243 604 255
 

> hello, everyone
>      i have a problem . when i use vtk in my programme ,i 
> could display a 2D or 3D image with a win32 console application.
> the code is always like following statement:
> 
> 	vtkRenderer *ren1 = vtkRenderer::New();
> 	vtkRenderWindow *renWin = vtkRenderWindow::New(); 
> 	renWin->AddRenderer();
> 	vtkRenderWindowInteractor *iren = 
> vtkRenderWindowInteractor::New();  // an interactor
> 	iren->SetRenderWindow(renWin);
> 
>  	ren1->Delete();
> 	renWin->SetSize(512,512);
> 	renWin->Render(); // render an image (lights and 
> cameras are created automatically) 
> 	renWin->Delete();
> 	iren->Start(); 
> 
> 
> 
> 
>  but now , i have to use vtk to display images in MFC, where 
> i could get some image details etc. 
>           thanks a lot!   
>     
> 
>         vtkdicomer
>         vtkdicom at 163.com
>           2004-11-09
> 



More information about the vtkusers mailing list