C# Class AlphaTab.Rendering.BarRendererBase

This is the base public class for creating blocks which can render bars.
Show file Open project: CoderLine/alphaTab

Public Methods

Method Description
ApplyLayoutingInfo ( ) : void
BarRendererBase ( Bar bar ) : System
BuildBoundingsLookup ( MasterBarBounds masterBarBounds, float cx, float cy ) : void
DoLayout ( ) : void
FinalizeRenderer ( ScoreLayout layout ) : void
GetBeatContainer ( Beat beat ) : BeatContainerGlyph
GetBeatX ( Beat beat, BeatXPosition requestedPosition = BeatXPosition.PreNotes ) : float
GetNoteX ( Note note, bool onEnd = true ) : float
GetNoteY ( Note note ) : float
GetOnNotesGlyphForBeat ( Beat beat ) : BeatGlyphBase
GetPreNotesGlyphForBeat ( Beat beat ) : BeatGlyphBase
Paint ( float cx, float cy, ICanvas canvas ) : void
RegisterLayoutingInfo ( BarLayoutingInfo info ) : void
RegisterOverflowBottom ( float bottomOverflow ) : void
RegisterOverflowTop ( float topOverflow ) : void
ScaleToWidth ( float width ) : void

Protected Methods

Method Description
AddBeatGlyph ( BeatContainerGlyph g ) : void
AddPostBeatGlyph ( Glyph g ) : void
AddPreBeatGlyph ( Glyph g ) : void
CreateBeatGlyphs ( ) : void
CreatePostBeatGlyphs ( ) : void
CreatePreBeatGlyphs ( ) : void
GetOrCreateVoiceContainer ( Voice voice ) : VoiceContainerGlyph
PaintBackground ( float cx, float cy, ICanvas canvas ) : void

Method Details

AddBeatGlyph() protected method

protected AddBeatGlyph ( BeatContainerGlyph g ) : void
g BeatContainerGlyph
return void

AddPostBeatGlyph() protected method

protected AddPostBeatGlyph ( Glyph g ) : void
g Glyph
return void

AddPreBeatGlyph() protected method

protected AddPreBeatGlyph ( Glyph g ) : void
g Glyph
return void

ApplyLayoutingInfo() public method

public ApplyLayoutingInfo ( ) : void
return void

BarRendererBase() public method

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

BuildBoundingsLookup() public method

public BuildBoundingsLookup ( MasterBarBounds masterBarBounds, float cx, float cy ) : void
masterBarBounds AlphaTab.Rendering.Utils.MasterBarBounds
cx float
cy float
return void

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

FinalizeRenderer() public method

public FinalizeRenderer ( ScoreLayout layout ) : void
layout AlphaTab.Rendering.Layout.ScoreLayout
return void

GetBeatContainer() public method

public GetBeatContainer ( Beat beat ) : BeatContainerGlyph
beat AlphaTab.Model.Beat
return BeatContainerGlyph

GetBeatX() public method

public GetBeatX ( Beat beat, BeatXPosition requestedPosition = BeatXPosition.PreNotes ) : float
beat AlphaTab.Model.Beat
requestedPosition BeatXPosition
return float

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

GetOnNotesGlyphForBeat() public method

public GetOnNotesGlyphForBeat ( Beat beat ) : BeatGlyphBase
beat AlphaTab.Model.Beat
return BeatGlyphBase

GetOrCreateVoiceContainer() protected method

protected GetOrCreateVoiceContainer ( Voice voice ) : VoiceContainerGlyph
voice AlphaTab.Model.Voice
return VoiceContainerGlyph

GetPreNotesGlyphForBeat() public method

public GetPreNotesGlyphForBeat ( Beat beat ) : BeatGlyphBase
beat AlphaTab.Model.Beat
return BeatGlyphBase

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

RegisterLayoutingInfo() public method

public RegisterLayoutingInfo ( BarLayoutingInfo info ) : void
info AlphaTab.Rendering.Staves.BarLayoutingInfo
return void

RegisterOverflowBottom() public method

public RegisterOverflowBottom ( float bottomOverflow ) : void
bottomOverflow float
return void

RegisterOverflowTop() public method

public RegisterOverflowTop ( float topOverflow ) : void
topOverflow float
return void

ScaleToWidth() public method

public ScaleToWidth ( float width ) : void
width float
return void