[vtkusers] multiple render windows using vtkImageViewer2

ankit.master at gmail.com ankit.master at gmail.com
Fri Mar 2 10:54:16 EST 2012


Hello, 

I stuck with a problem of rendering multiple windows for an application, My
application needs to pick mouse movements and display coordinate location
and pixel value. 

Based on some examples online, I was able to build an application that
renders a 2d image and recognizes mouse picks for me, but as soon as I
extend this to rendering multiple window my program breaks, I get unhandled
exception, access violation. 

Could you please help me fix this problem or suggest a way of rendering
multiple windows using vtkImageviewer2 class. 


    Following is my snippet any help is greatly appreciated .

    for (it = imageDataP.begin(); it < imageDataP.end(); it++)
    {
        vtkSmartPointer<vtkImageViewer2> imageViewer =
vtkSmartPointer<vtkImageViewer2>::New();    
                               

      some more code 


       m_interactors.push_back(renderWindowInteractor);
        renderWindowInteractor->Initialize();

   
    }
  
     m_interactors[1]->Start();  
     // I have 2 elements in my vector . m_interactors is a vector of  
renderwindowinteractor 


Thank you in advance
Sincerely, 
AVM

--
View this message in context: http://vtk.1045678.n5.nabble.com/multiple-render-windows-using-vtkImageViewer2-tp5531354p5531354.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list