Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MusicSheetDrawer

Draw a GraphicalMusicSheet (through the .drawSheet method)

The drawing is implemented with a top-down approach, starting from a music sheet, going through pages, systems, staffs... ... and ending in notes, beams, accidentals and other symbols. It's worth to say, that this class just draws the symbols and graphical elements, using the positions that have been computed before. But in any case, some of these previous positioning algorithms need the sizes of the concrete symbols (NoteHeads, sharps, flats, keys...). Therefore, there are some static functions on the 'Bounding Boxes' section used to compute these symbol boxes at the beginning for the later use in positioning algorithms.

This class also includes the resizing and positioning of the symbols due to user interaction like zooming or panning.

Hierarchy

Index

Constructors

constructor

Properties

drawingParameters

drawingParameters: DrawingParameters = new DrawingParameters()

Protected graphicalMusicSheet

graphicalMusicSheet: GraphicalMusicSheet

midiPlaybackAvailable

midiPlaybackAvailable: boolean

Private phonicScoreMode

phonicScoreMode: PhonicScoreModes = PhonicScoreModes.Manual

Protected rules

splitScreenLineColor

splitScreenLineColor: number

Protected textMeasurer

textMeasurer: ITextMeasurer

Accessors

Mode

Protected leadSheet

  • get leadSheet(): boolean
  • set leadSheet(value: boolean): void

Methods

Protected activateSystemRendering

  • activateSystemRendering(systemId: number, absBoundingRect: RectangleF2D, systemBoundingBoxInPixels: RectangleF2D, createNewImage: boolean): boolean

Protected applyScreenTransformation

Protected applyScreenTransformationForRect

Protected applyScreenTransformations

calculatePixelDistance

  • calculatePixelDistance(unitDistance: number): number

Protected drawBottomLine

Private drawComment

Protected drawGroupBracket

Protected drawInstrumentBracket

drawLabel

drawLineAsHorizontalRectangle

  • drawLineAsHorizontalRectangle(line: GraphicalLine, layer: number): void

drawLineAsHorizontalRectangleWithOffset

drawLineAsVerticalRectangle

  • drawLineAsVerticalRectangle(line: GraphicalLine, layer: number): void

drawLineAsVerticalRectangleWithOffset

Private drawMarkedAreas

Protected drawMeasure

Protected drawMusicSystem

Protected drawMusicSystemComponents

Protected drawOctaveShift

Private drawPage

drawRectangle

Protected drawScrollIndicator

  • drawScrollIndicator(): void

Protected drawSelectionEndSymbol

Protected drawSelectionStartSymbol

drawSheet

Protected drawSkyLine

Protected drawSplitScreenLine

  • drawSplitScreenLine(): void

Protected drawStaffLine

Private drawStaffLineSymbols

  • drawStaffLineSymbols(staffLine: StaffLine): void

Protected drawStaffLines

Protected drawSymbol

Protected drawSystemLineObject

  • drawSystemLineObject(systemLine: SystemLine): void

Protected getSystemAbsBoundingRect

Protected getSytemBoundingBoxInPixels

Protected isVisible

Protected renderLabel

  • renderLabel(graphicalLabel: GraphicalLabel, layer: number, bitmapWidth: number, bitmapHeight: number, heightInPixel: number, screenPosition: PointF2D): void

Protected renderRectangle

  • renderRectangle(rectangle: RectangleF2D, layer: number, styleId: number): void

Protected renderSystemToScreen

Generated using TypeDoc