ITK, VTK, Qt mixed programming, read the two-dimen
4.0
Based on the Qt interface, using ITK to read two-dimensional images, displayed on qvtkwidget with VTK, ITK is read ImageFileReader, ImageToVTKImageFilter treats ITK into VTK data, and then use vtkImageviewer to display images; Dynamic method to get the mouse using a vtkEventQtSlotConnect class that implements from Qt event to convert VTK events and slot slotUpdatefixedCoords (vtkObject*) extract the coordinate information.
Connections_fixed->Connect(m_fixedWidget->GetRenderWindow()->GetInteractor(),
vtkCommand::MouseMoveEvent,this,SLOT(slotUpdatefixedCoords( vtkObject* )) );