Reimplemented from OglGui::ButtonListener. Definition at line 55 of file ZoomControl.h. References mTargetIs2D, mTargetWindow, mZoomSlider, and OglGui::Slider::SetValue(). 00056 { 00057 OGLWND *target = mTargetWindow; 00058 if (userData == (void*)0) 00059 if (mTargetIs2D) 00060 viewSys.PanTagged(target, selectedTag, 1, 0.5f, 0.5f, 0); 00061 else 00062 view3DSys.PanTagged(target, selectedTag, 1, 0.5f, 0.5f, 0); 00063 if (userData==(void*)1) 00064 if (mTargetIs2D) 00065 viewSys.FitTagged(target, selectedTag, 1, 0); 00066 else 00067 view3DSys.FitTagged(target, selectedTag, 1, 0); 00068 if (userData == (void*)2){ 00069 if (mTargetIs2D){ 00070 viewSys.ZoomTagged(target, selectedTag, 1, 1.0f, 1.0f, 0); 00071 viewSys.PanTagged(target, selectedTag, 1, 0.5f, 0.5f, 0); 00072 } 00073 else { 00074 view3DSys.ZoomTagged(target, selectedTag, 1, 1.0f, 1.0f, 0); 00075 view3DSys.PanTagged(target, selectedTag, 1, 0.5f, 0.5f, 0); 00076 } 00077 mZoomSlider->SetValue(100); 00078 } 00079 }
Here is the call graph for this function:
|