protected override void StartTouch(PTouch args) { if (Contains(args)) { SliderValueChanged?.Invoke(ValueFromPoint(args.Position)); } }
public void InitializeDrawing(PTouch touch) { _layerManager.SetDrawingAsTemporary(); GetFromKernel(); Shape.Initialize(touch); _layerManager.ClearTemporary(); DrawStep(); }
public void FinalizeDrawing(PTouch touch) { _layerManager.ClearTemporary(); _layerManager.SetDrawingAsFinal(); Shape.FinalizeShape(touch); DrawStep(); Clear(); }
protected override void MoveTouch(PTouch args) { _service.UpdateShape(args); }
protected override void ExitTouch(PTouch args) { _service.CancelDrawing(args); }
protected override void EndTouch(PTouch args) { _service.FinalizeDrawing(args); }
protected abstract void StartTouch(PTouch args);
protected abstract void MoveTouch(PTouch args);
public virtual void Initialize(PTouch initPoint) { BaseShape.AddStartPoint(initPoint.Position); Touches.Add(initPoint); }
protected abstract void EndTouch(PTouch args);
public void CancelDrawing(PTouch touch) { _layerManager.ClearTemporary(); Clear(); OnChange?.Invoke(); }
public void UpdateShape(PTouch touch) { Shape.Update(touch); _layerManager.ClearTemporary(); DrawStep(); }
public void Update(PTouch updatePoint) { BaseShape.AddUpdatePoint(updatePoint.Position); Touches.Add(updatePoint); }
protected override void StartTouch(PTouch args) { _service.InitializeDrawing(args); System.Diagnostics.Debug.WriteLine("CALLED"); }
protected abstract void CancelTouch(PTouch args);
protected override void MoveTouch(PTouch args) { throw new NotImplementedException(); }
protected abstract void ExitTouch(PTouch args);
private bool Contains(PTouch args) { var vec = PVector.Sub(args.Position, AbsoluteCenter); return(vec.Mag < maxRadius && vec.Mag < minRadius && ContainsRadius(PositionRadius(args.Position))); }
public virtual void FinalizeShape(PTouch finalPoint) { BaseShape.FinalPoint(finalPoint.Position); }