Verovio
Source code documentation
vrv::BeamElementCoord Class Reference

Constructors, destructors, and other standard methods

int m_x
 
int m_yBeam
 
data_DURATION m_dur
 
int m_breaksec
 
int m_overlapMargin
 
bool m_centered
 
data_BEAMPLACE m_beamRelativePlace
 
char m_partialFlags [MAX_DURATION_PARTIALS]
 
data_BEAMPLACE m_partialFlagPlace
 
LayerElementm_element
 
Notem_closestNote
 
TabDurSymm_tabDurSym
 
Stemm_stem
 
 BeamElementCoord ()
 
virtual ~BeamElementCoord ()
 
data_STEMDIRECTION GetStemDir () const
 Return the encoded stem direction. More...
 
void SetDrawingStemDir (data_STEMDIRECTION stemDir, const Staff *staff, const Doc *doc, const BeamSegment *segment, const BeamDrawingInterface *interface)
 
void SetClosestNoteOrTabDurSym (data_STEMDIRECTION stemDir, bool outsideStaff)
 Set the note or closest note for chord or tabdursym for tablature beams placed outside the staff.
 
int CalculateStemLength (const Staff *staff, data_STEMDIRECTION stemDir, bool isHorizontal, data_DURATION preferredDur) const
 Helper for calculating the stem length for staff notation and tablature beams within the staff.
 
int CalculateStemLengthTab (const Staff *staff, data_STEMDIRECTION stemDir) const
 Helper for calculating the stem length for tablature beam placed outside the staff.
 
int CalculateStemModAdjustment (int stemLength, int directionBias) const
 Return stem length adjustment in half units, depending on the @stem.mode attribute.
 
StemmedDrawingInterfaceGetStemHolderInterface ()
 Helper to get the StemmedDrawingInterface associated with the m_element (if any) Return the Chord or Note interface if the element if of that type. More...
 
void UpdateStemLength (StemmedDrawingInterface *stemmedInterface, int y1, int y2, int stemAdjust, bool inMixedBeam)
 Update stem length based on the calculated coordinates and stemAdjust value.
 

Member Function Documentation

◆ GetStemDir()

data_STEMDIRECTION vrv::BeamElementCoord::GetStemDir ( ) const

Return the encoded stem direction.

Access the value in the Stem element if already set.

◆ GetStemHolderInterface()

StemmedDrawingInterface* vrv::BeamElementCoord::GetStemHolderInterface ( )

Helper to get the StemmedDrawingInterface associated with the m_element (if any) Return the Chord or Note interface if the element if of that type.

Return the TabDurSym interface if the element is TabDurGrp and has a TabDurSym descendant. Return NULL otherwise.


The documentation for this class was generated from the following file: