diff --git a/Interaction/Style/Testing/Python/TestStyleTrackballCamera.py b/Interaction/Style/Testing/Python/TestStyleTrackballCamera.py index 2e42387be834038c82c88e94a7bcc029199caf73..3ce9e5019cfc62cf75a7ef87764eb75efd5bec06 100755 --- a/Interaction/Style/Testing/Python/TestStyleTrackballCamera.py +++ b/Interaction/Style/Testing/Python/TestStyleTrackballCamera.py @@ -45,10 +45,10 @@ class TestStyleTrackballCamera(vtkmodules.test.Testing.vtkTest): # Switch to Trackball+Actor mode - iRen.SetKeyEventInformation(0, 0, 't', 0, '0') + iRen.SetKeyEventInformation(0, 0, 't', 0, 't') iRen.InvokeEvent("CharEvent") - iRen.SetKeyEventInformation(0, 0, 'c', 0, '0') + iRen.SetKeyEventInformation(0, 0, 'c', 0, 'c') iRen.InvokeEvent("CharEvent") # Test style diff --git a/Interaction/Widgets/Testing/Cxx/ImagePlaneWidget.cxx b/Interaction/Widgets/Testing/Cxx/ImagePlaneWidget.cxx index 49e4cf3d550b567c65dd31962ace89ba358ef017..c81b134fad4afb5c5a2270c8327dac210123b1d3 100644 --- a/Interaction/Widgets/Testing/Cxx/ImagePlaneWidget.cxx +++ b/Interaction/Widgets/Testing/Cxx/ImagePlaneWidget.cxx @@ -492,9 +492,11 @@ int ImagePlaneWidget(int argc, char* argv[]) renWin->Render(); iren->SetEventPosition(175, 175); iren->SetKeyCode('r'); + iren->SetKeySym("r"); iren->InvokeEvent(vtkCommand::CharEvent, nullptr); iren->SetEventPosition(475, 175); iren->SetKeyCode('r'); + iren->SetKeySym("r"); iren->InvokeEvent(vtkCommand::CharEvent, nullptr); renWin->Render(); @@ -515,8 +517,10 @@ int ImagePlaneWidget(int argc, char* argv[]) // Test SetKeyPressActivationValue for one of the widgets // iren->SetKeyCode('z'); + iren->SetKeySym("z"); iren->InvokeEvent(vtkCommand::CharEvent, nullptr); iren->SetKeyCode('z'); + iren->SetKeySym("z"); iren->InvokeEvent(vtkCommand::CharEvent, nullptr); recorder->Play(); diff --git a/Interaction/Widgets/Testing/Cxx/TestOrthoPlanes.cxx b/Interaction/Widgets/Testing/Cxx/TestOrthoPlanes.cxx index 9f093c6096d7537d41ffca0657ae16d459e34a2d..69d3c07d7e14a8a875254dd9c098946f92ef0f3e 100644 --- a/Interaction/Widgets/Testing/Cxx/TestOrthoPlanes.cxx +++ b/Interaction/Widgets/Testing/Cxx/TestOrthoPlanes.cxx @@ -498,9 +498,11 @@ int TestOrthoPlanes(int argc, char* argv[]) renWin->Render(); iren->SetEventPosition(175, 175); iren->SetKeyCode('r'); + iren->SetKeySym("r"); iren->InvokeEvent(vtkCommand::CharEvent, nullptr); iren->SetEventPosition(475, 175); iren->SetKeyCode('r'); + iren->SetKeySym("r"); iren->InvokeEvent(vtkCommand::CharEvent, nullptr); renWin->Render(); @@ -527,8 +529,10 @@ int TestOrthoPlanes(int argc, char* argv[]) // Test SetKeyPressActivationValue for one of the widgets // iren->SetKeyCode('z'); + iren->SetKeySym("z"); iren->InvokeEvent(vtkCommand::CharEvent, nullptr); iren->SetKeyCode('z'); + iren->SetKeySym("z"); iren->InvokeEvent(vtkCommand::CharEvent, nullptr); recorder->Play(); diff --git a/Interaction/Widgets/Testing/Cxx/TestSplineWidget.cxx b/Interaction/Widgets/Testing/Cxx/TestSplineWidget.cxx index 6e1018a0da8c412cb4876b15501a58da342002b6..92b2ee9fc8e5aba5ce48c07f7e0d3d59a3f12702 100644 --- a/Interaction/Widgets/Testing/Cxx/TestSplineWidget.cxx +++ b/Interaction/Widgets/Testing/Cxx/TestSplineWidget.cxx @@ -320,16 +320,6 @@ int TestSplineWidget(int argc, char* argv[]) camera->SetPosition(560.949, 560.949, -167.853); ren1->ResetCameraClippingRange(); - // Position the actors - // renWin->Render(); - // iren->SetEventPosition(200,200); - // iren->SetKeyCode('r'); - // iren->InvokeEvent(vtkCommand::CharEvent,nullptr); - // ren1->ResetCameraClippingRange(); - // renWin->Render(); - // iren->SetKeyCode('t'); - // iren->InvokeEvent(vtkCommand::CharEvent,nullptr); - // Playback recorded events vtkSmartPointer<vtkInteractorEventRecorder> recorder = vtkSmartPointer<vtkInteractorEventRecorder>::New();