This is the base public class for creating new layouting engines for the score renderer.
Example #1
0
 public override void FinalizeGlyph(ScoreLayout layout)
 {
     if (!Container.Beat.IsRest)
     {
         NoteHeads.UpdateBeamingHelper(Container.X + X);
     }
 }
Example #2
0
        public override void FinalizeRenderer(ScoreLayout layout)
        {
            base.FinalizeRenderer(layout);
            // after all layouting and sizing place and size the effect glyphs
            IsEmpty = true;

            #if MULTIVOICE_SUPPORT
            foreach (var v in Bar.Voices)
            {
            Glyph prevGlyph = null;
            if (Index > 0)
            {
                // check if previous renderer had an effect on his last beat
                // and use this as merging element
                EffectBarRenderer prevRenderer = (EffectBarRenderer) Stave.BarRenderers[Index - 1];
                if (prevRenderer._lastBeat != null)
                {
                    prevGlyph = prevRenderer._effectGlyphs[v.Index][prevRenderer._lastBeat.Index];
                }
            }
            foreach (var beatIndex in _effectGlyphs[v.Index].Keys)
            {
                Glyph effect = _effectGlyphs[v.Index][beatIndex];

                AlignGlyph(_info.SizingMode, beatIndex, 0, prevGlyph);

                prevGlyph = effect;
                IsEmpty = false;
            }

            }
            #else
            EffectGlyph prevGlyph = null;
            if (Index > 0)
            {
                // check if previous renderer had an effect on his last beat
                // and use this as merging element
                EffectBarRenderer prevRenderer = (EffectBarRenderer)Stave.BarRenderers[Index - 1];
                if (prevRenderer._lastBeat != null && prevRenderer._effectGlyphs[0].ContainsKey(prevRenderer._lastBeat.Index))
                {
                    prevGlyph = prevRenderer._effectGlyphs[0][prevRenderer._lastBeat.Index];
                }
            }

            foreach (var key in _effectGlyphs[0].Keys)
            {
                int beatIndex = Std.ParseInt(key);
                EffectGlyph effect = _effectGlyphs[0][beatIndex];

                AlignGlyph(_info.SizingMode, beatIndex, 0, prevGlyph);

                prevGlyph = effect;
                IsEmpty = false;
            }
            #endif
        }
Example #3
0
        public override void FinalizeRenderer(ScoreLayout layout)
        {
            base.FinalizeRenderer(layout);
            // after all layouting and sizing place and size the effect glyphs
            IsEmpty = true;

            foreach (var voice in Bar.Voices)
            {
                foreach (var key in _effectGlyphs[voice.Index].Keys)
                {
                    AlignGlyph(_info.SizingMode, voice.Beats[key]);
                    IsEmpty = false;
                }
            }
        }
Example #4
0
 public void FinalizeGroup(ScoreLayout scoreLayout)
 {
     float currentY = 0;
     for (int i = 0, j = _allStaves.Count; i < j; i++)
     {
         _allStaves[i].X = AccoladeSpacing;
         _allStaves[i].Y = (currentY);
         _allStaves[i].FinalizeStave(scoreLayout);
         currentY += _allStaves[i].Height;
     }
 }
Example #5
0
 public override void FinalizeRenderer(ScoreLayout layout)
 {
     Std.Foreach(_voiceContainers.Values, c => c.FinalizeGlyph(layout));
 }
 public override void FinalizeRenderer(ScoreLayout layout)
 {
     base.FinalizeRenderer(layout);
     IsEmpty = _endings.Count == 0;
 }
Example #7
0
 public virtual void FinalizeRenderer(ScoreLayout layout)
 {
     IsFinalized = true;
 }
Example #8
0
 public void FinalizeGlyph(ScoreLayout layout)
 {
     PreNotes.FinalizeGlyph(layout);
     OnNotes.FinalizeGlyph(layout);
     PostNotes.FinalizeGlyph(layout);
 }
Example #9
0
 public virtual void FinalizeRenderer(ScoreLayout layout)
 {
 }
Example #10
0
 public void FinalizeGlyph(ScoreLayout layout)
 {
     for (int i = 0, j = BeatGlyphs.Count; i < j; i++)
     {
         BeatGlyphs[i].FinalizeGlyph(layout);
     }
 }
Example #11
0
        public virtual void FinalizeGlyph(ScoreLayout layout)
        {

        }