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

Method UpdateControlPanel

source/visualization/OpenGL/src/G4OpenGLXmViewer.cc:783–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781
782
783void G4OpenGLXmViewer::UpdateControlPanel () {
784
785 // set new values
786
787 if (fprotation_slider) {
788 fprotation_slider->SetInitialValue(fRot_sens);
789 fprotation_slider->SetMaxValue(rot_sens_limit);
790 fprotation_slider->SetMinValue(0);
791 }
792 if (fppanning_slider) {
793 fppanning_slider->SetInitialValue(fPan_sens);
794 fppanning_slider->SetMaxValue(pan_sens_limit);
795 fppanning_slider->SetMinValue(0);
796 }
797 if (fpzoom_slider) {
798 fpzoom_slider->SetInitialValue(fVP.GetZoomFactor());
799 fpzoom_slider->SetMinValue(zoom_low);
800 fpzoom_slider->SetMaxValue(zoom_high);
801 }
802 if (fpdolly_slider) {
803 fpdolly_slider->SetInitialValue(fVP.GetDolly());
804 fpdolly_slider->SetMinValue(dolly_low);
805 fpdolly_slider->SetMaxValue(dolly_high);
806 }
807
808 if (fpwobble_slider) {
809 fpwobble_slider->SetInitialValue(fVP.GetDolly());
810 }
811
812 if (fppan_set) {
813 fppan_set->SetValue(pan_sens_limit);
814 }
815
816 if (fprot_set) {
817 fprot_set->SetValue(rot_sens_limit);
818 }
819
820 if (fpzoom_upper) {
821 fpzoom_upper->SetValue(zoom_high);
822 }
823
824 if (fpzoom_lower) {
825 fpzoom_lower->SetValue(zoom_low);
826 }
827 if (fpdolly_upper) {
828 fpdolly_upper->SetValue(dolly_high);
829 }
830
831 if (fpdolly_lower) {
832 fpdolly_lower->SetValue(dolly_low);
833 }
834
835
836}
837
838
839G4OpenGLXmViewer::~G4OpenGLXmViewer ()

Callers 1

actions_callbackMethod · 0.80

Calls 4

SetInitialValueMethod · 0.80
SetMaxValueMethod · 0.80
SetMinValueMethod · 0.80
SetValueMethod · 0.45

Tested by

no test coverage detected