C# Class AlphaTab.Rendering.ScoreBarRenderer

This BarRenderer renders a bar using standard music notation.
Inheritance: BarRendererBase
ファイルを表示 Open project: CoderLine/alphaTab

Public Methods

Method Description
DoLayout ( ) : void
GetBeatDirection ( Beat beat ) : BeamDirection
GetNoteLine ( Note n ) : int
GetNoteX ( Note note, bool onEnd = true ) : float
GetNoteY ( Note note ) : float
GetScoreY ( int steps, float correction ) : float

Gets the relative y position of the given steps relative to first line.

Paint ( float cx, float cy, ICanvas canvas ) : void
ScoreBarRenderer ( Bar bar ) : System

Protected Methods

Method Description
CreateBeatGlyphs ( ) : void
CreatePostBeatGlyphs ( ) : void
CreatePreBeatGlyphs ( ) : void
PaintBackground ( float cx, float cy, ICanvas canvas ) : void

Private Methods

Method Description
CalculateBeamY ( BeamingHelper h, float x ) : float
CreateKeySignatureGlyphs ( ) : void
CreateStartSpacing ( ) : void
CreateTimeSignatureGlyphs ( ) : void
CreateVoiceGlyphs ( Voice v ) : void
FingerToString ( Beat beat, Fingers finger, bool leftHand ) : string
GetBarStemSize ( System.Duration duration ) : float
GetFooterStemSize ( System.Duration duration ) : float
GetStemSize ( BeamingHelper helper ) : float
IsFullBarJoin ( Beat a, Beat b, int barIndex ) : bool
PaintBar ( float cx, float cy, ICanvas canvas, BeamingHelper h ) : void
PaintBeamHelper ( float cx, float cy, ICanvas canvas, BeamingHelper h ) : void
PaintBeams ( float cx, float cy, ICanvas canvas ) : void
PaintFingering ( ICanvas canvas, Beat beat, float beatLineX, BeamDirection direction, float topY ) : void
PaintFooter ( float cx, float cy, ICanvas canvas, BeamingHelper h ) : void
PaintSingleBar ( ICanvas canvas, float x1, float y1, float x2, float y2, float size ) : void
PaintTupletHelper ( float cx, float cy, ICanvas canvas, AlphaTab.Rendering.Utils.TupletHelper h ) : void
PaintTuplets ( float cx, float cy, ICanvas canvas ) : void

Method Details

CreateBeatGlyphs() protected method

protected CreateBeatGlyphs ( ) : void
return void

CreatePostBeatGlyphs() protected method

protected CreatePostBeatGlyphs ( ) : void
return void

CreatePreBeatGlyphs() protected method

protected CreatePreBeatGlyphs ( ) : void
return void

DoLayout() public method

public DoLayout ( ) : void
return void

GetBeatDirection() public method

public GetBeatDirection ( Beat beat ) : BeamDirection
beat AlphaTab.Model.Beat
return BeamDirection

GetNoteLine() public method

public GetNoteLine ( Note n ) : int
n AlphaTab.Model.Note
return int

GetNoteX() public method

public GetNoteX ( Note note, bool onEnd = true ) : float
note AlphaTab.Model.Note
onEnd bool
return float

GetNoteY() public method

public GetNoteY ( Note note ) : float
note AlphaTab.Model.Note
return float

GetScoreY() public method

Gets the relative y position of the given steps relative to first line.
public GetScoreY ( int steps, float correction ) : float
steps int the amount of steps while 2 steps are one line
correction float
return float

Paint() public method

public Paint ( float cx, float cy, ICanvas canvas ) : void
cx float
cy float
canvas ICanvas
return void

PaintBackground() protected method

protected PaintBackground ( float cx, float cy, ICanvas canvas ) : void
cx float
cy float
canvas ICanvas
return void

ScoreBarRenderer() public method

public ScoreBarRenderer ( Bar bar ) : System
bar AlphaTab.Model.Bar
return System