Пример #1
0
void GRGrace::OnDraw( VGDevice & hdc) const
{
	if(!mDraw)
		return;
	if( mAssociated->size() == 1 ) // why 1 ?
		DrawSubElements( hdc );
}
Пример #2
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);
}