MCPcopy Create free account
hub / github.com/Geant4/geant4 / rotateScene

Method rotateScene

source/visualization/OpenGL/src/G4OpenGLViewer.cc:1082–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080
1081
1082void G4OpenGLViewer::rotateScene(G4double dx, G4double dy)
1083{
1084 if (fVP.GetRotationStyle() == G4ViewParameters::freeRotation) {
1085 rotateSceneInViewDirection(dx,dy);
1086 } else {
1087 if( dx != 0) {
1088 rotateSceneThetaPhi(dx,0);
1089 }
1090 if( dy != 0) {
1091 rotateSceneThetaPhi(0,dy);
1092 }
1093 }
1094}
1095
1096
1097void G4OpenGLViewer::rotateSceneToggle(G4double dx, G4double dy)

Callers 2

rotate_in_thetaMethod · 0.80
rotate_in_phiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected