C# Class AlphaTab.Rendering.ScoreBarRenderer

This BarRenderer renders a bar using standard music notation.
Inheritance: BarRendererBase
Afficher le fichier Open project: CoderLine/alphaTab

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
CreateBeatGlyphs ( ) : void
CreatePostBeatGlyphs ( ) : void
CreatePreBeatGlyphs ( ) : void
PaintBackground ( float cx, float cy, ICanvas canvas ) : void

Private Methods

Méthode 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 méthode

protected CreateBeatGlyphs ( ) : void
Résultat void

CreatePostBeatGlyphs() protected méthode

protected CreatePostBeatGlyphs ( ) : void
Résultat void

CreatePreBeatGlyphs() protected méthode

protected CreatePreBeatGlyphs ( ) : void
Résultat void

DoLayout() public méthode

public DoLayout ( ) : void
Résultat void

GetBeatDirection() public méthode

public GetBeatDirection ( Beat beat ) : BeamDirection
beat AlphaTab.Model.Beat
Résultat BeamDirection

GetNoteLine() public méthode

public GetNoteLine ( Note n ) : int
n AlphaTab.Model.Note
Résultat int

GetNoteX() public méthode

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

GetNoteY() public méthode

public GetNoteY ( Note note ) : float
note AlphaTab.Model.Note
Résultat float

GetScoreY() public méthode

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
Résultat float

Paint() public méthode

public Paint ( float cx, float cy, ICanvas canvas ) : void
cx float
cy float
canvas ICanvas
Résultat void

PaintBackground() protected méthode

protected PaintBackground ( float cx, float cy, ICanvas canvas ) : void
cx float
cy float
canvas ICanvas
Résultat void

ScoreBarRenderer() public méthode

public ScoreBarRenderer ( Bar bar ) : System
bar AlphaTab.Model.Bar
Résultat System