Example #1
0
        public override void Activate(IWorkingZoneFramesContainer framesContainer, Action <InteractiveEffect> setInteractiveEffect)
        {
            InteractiveEffect effect = new InteractiveEffect();

            // Usage of closures to capture internal state for the effect.
            // The Parameter object will be shared between the delegates, but scoped to this InteractiveEffect instance.
            Parameters p = new Parameters();

            effect.Draw       = (canvas, frames) => Draw(canvas, frames, p);
            effect.MouseWheel = (scroll) => MouseWheel(scroll, p);

            setInteractiveEffect(effect);
        }
Example #2
0
 public void SetInteractiveEffect(InteractiveEffect _effect)
 {
     view.SetInteractiveEffect(_effect);
 }