void transparencyAnatomyCommand_SmoothBlendApplied(float alpha, float duration, EasingFunction easingFunction)
 {
     if (trackingTransparency)
     {
         transparencyInterface.timedBlend(alpha, duration, easingFunction);
     }
     else
     {
         transparencyInterface.timedBlend(0.0f, duration, easingFunction);
     }
 }
Ejemplo n.º 2
0
        public void timedApply(float time, List <TransparencyInterface> unvisitedInterfaces, EasingFunction easingFunction)
        {
            TransparencyInterface obj = TransparencyController.getTransparencyObject(transparencyObject);

            if (obj != null)
            {
                obj.timedBlend(alphaValue, time, easingFunction);
                unvisitedInterfaces.Remove(obj);
            }
        }
 public void smoothBlend(float alpha, float duration, EasingFunction easingFunction)
 {
     if (alpha != transparencyInterface.CurrentAlpha)
     {
         transparencyInterface.timedBlend(alpha, duration, easingFunction);
         if (SmoothBlendApplied != null)
         {
             SmoothBlendApplied.Invoke(alpha, duration, easingFunction);
         }
         fireNumericValueChanged(alpha);
     }
 }