- }
- else
- {
- SVTK_ViewWindow* aViewWindow =
- dynamic_cast<SVTK_ViewWindow*>(theViewWindow);
- if ( aViewWindow ) {
- // Get the selected point coordinates
- double aCoords[3];
- SVTK_RenderWindowInteractor* anInteractor = aViewWindow->GetInteractor();
- if ( anInteractor )
- {
- //TODO: Use a WorldPicker to get current coords
- //anInteractorStyle->ComputeDisplayToWorld( theEvent->x(), theEvent->y(), 0, aCoords );
- aCoords[0] = theEvent->x();
- aCoords[1] = theEvent->y();
- // Show the coordinates in the status bar
- SUIT_Desktop* aDesktop = getApp()->desktop();
- if ( aDesktop && aDesktop->statusBar() ) {
- QString aX = HYDROGUI_Tool::GetCoordinateString( aCoords[0] );
- QString anY = HYDROGUI_Tool::GetCoordinateString( aCoords[1] );
- aDesktop->statusBar()->showMessage( tr("COORDINATES_INFO").arg( aX ).arg( anY ) );
- }
- }
- }