Exemplo n.º 1
0
        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
            });
        }
Exemplo n.º 2
0
 public abstract RadialLayoutSlot GetLayoutSlotAtPosition(RingModelBase model, RadialSegment segment);