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

vtkdicomer vtkdicom at 163.com
Tue Nov 9 06:21:40 EST 2004


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