Example #1
0
void GRSingleRest::OnDraw( VGDevice & hdc ) const
{
    traceMethod("OnDraw");
    if (mType == P0) return;		// don't know how to draw it !

    GRRest::OnDrawSymbol( hdc, mType );
    DrawSubElements( hdc );		// - Draw elements (dots...)

    // Draw articulations (fermata...)
    const GRNEList * articulations = getArticulations();
    if( articulations ) {
        for( GRNEList::const_iterator ptr = articulations->begin(); ptr != articulations->end(); ++ptr )
        {
            GRNotationElement * el = *ptr;
            el->OnDraw(hdc);
        }
    }

    if (gBoundingBoxesMap & kEventsBB)
        DrawBoundingBox( hdc, kEventBBColor);
}
Example #2
0
//------------------------------------------------------------------------
void musicxmlfactory::addarticulation (Sxmlelement elt, Sxmlelement articulation)
{
	Sxmlelement articulations = getArticulations (elt);
	articulations->push (articulation);
}