public override RadialLayoutSlot GetLayoutSlotAtPosition(RingModelBase model, RadialSegment segment) { if (segment.TargetItem.Index >= 8) { return(RadialLayoutSlot.Invalid); } return(new RadialLayoutSlot { InnerRadius = model.InnerRadius, OuterRadius = model.OuterRadius, StartAngle = (this.StartAngle + this.SegmentAngleLength * segment.TargetItem.Index) % 360, SweepAngle = this.SegmentAngleLength }); }
public abstract RadialLayoutSlot GetLayoutSlotAtPosition(RingModelBase model, RadialSegment segment);