/// <summary> /// This function calculates the slider's zoom factor for the specified camera and uses /// it to adjust the slider shape transforms such as size for example. The zoom factor /// is automatically applied during each gizmo 'UpdateBegin' step, so the ONLY time when /// this function should be called is when more than one camera can render the slider. /// In that case, before calling 'Render, the client code should call this function to /// ensure that the slider is rendered correctly. The function has no effect if the look /// and feel settings' 'UseZoomFactor' property returns false. /// </summary> public void ApplyZoomFactor(Camera camera) { if (LookAndFeel.UseZoomFactor) { float zoomFactor = GetZoomFactor(camera); _controllers[(int)LookAndFeel.LineType].UpdateTransforms(zoomFactor); _cap3D.ApplyZoomFactor(camera); _cap3D.CapSlider3D(GetRealDirection(), GetRealEndPosition(zoomFactor)); } }