/// <summary> /// The systems contain Metrics info, but their top staffline is at 0. /// The systems are moved to their correct vertical positions on the page here. /// If pageNumber is set to 0, all the systems in pageSystems will be printed /// in a single .svg file, whose page height has been changed accordingly. /// </summary> /// <param name="Systems"></param> public SvgPage(SvgScore containerScore, PageFormat pageFormat, int pageNumber, TextInfo infoTextInfo, List <SvgSystem> pageSystems, bool lastPage) { _score = containerScore; _pageFormat = pageFormat; _pageNumber = pageNumber; _infoTextInfo = infoTextInfo; Systems = pageSystems; MoveSystemsVertically(pageFormat, pageSystems, (pageNumber == 1 || pageNumber == 0), lastPage); }
/// <summary> /// The systems contain Metrics info, but their top staffline is at 0. /// The systems are moved to their correct vertical positions on the page here. /// If pageNumber is set to 0, all the systems in pageSystems will be printed /// in a single .svg file, whose page height has been changed accordingly. /// </summary> /// <param name="Systems"></param> public SvgPage(SvgScore containerScore, PageFormat pageFormat, int pageNumber, TextInfo infoTextInfo, List<SvgSystem> pageSystems, bool lastPage) { _score = containerScore; _pageFormat = pageFormat; _pageNumber = pageNumber; _infoTextInfo = infoTextInfo; Systems = pageSystems; if(pageNumber == 0) { pageFormat.BottomVBPX = GetNewBottomVBPX(pageSystems); pageFormat.BottomMarginPos = (int) (pageFormat.BottomVBPX - pageFormat.DefaultDistanceBetweenSystems); } MoveSystemsVertically(pageFormat, pageSystems, (pageNumber == 1 || pageNumber == 0), lastPage); }
/// <summary> /// The systems contain Metrics info, but their top staffline is at 0. /// The systems are moved to their correct vertical positions on the page here. /// If pageNumber is set to 0, all the systems in pageSystems will be printed /// in a single .svg file, whose page height has been changed accordingly. /// </summary> /// <param name="Systems"></param> public SvgPage(SvgScore containerScore, PageFormat pageFormat, int pageNumber, TextInfo infoTextInfo, List <SvgSystem> pageSystems, bool lastPage) { _score = containerScore; _pageFormat = pageFormat; _pageNumber = pageNumber; _infoTextInfo = infoTextInfo; Systems = pageSystems; if (pageNumber == 0) { pageFormat.BottomVBPX = GetNewBottomVBPX(pageSystems); pageFormat.BottomMarginPos = (int)(pageFormat.BottomVBPX - pageFormat.DefaultDistanceBetweenSystems); } MoveSystemsVertically(pageFormat, pageSystems, (pageNumber == 1 || pageNumber == 0), lastPage); }
/// <summary> /// Moritz defaults: tempo=30, InstrNotation=long, left indent=0, right indent = 0; /// </summary> /// <param name="score"></param> public SvgSystem(SvgScore score) { Score = score; }