Пример #1
0
int Accid::PreparePointersByLayer(FunctorParams *functorParams)
{
    Note *note = dynamic_cast<Note *>(this->GetFirstParent(NOTE, MAX_ACCID_DEPTH));
    if (!note) {
        return FUNCTOR_CONTINUE;
    }

    if (note->m_drawingAccid != NULL) {
        note->ResetDrawingAccid();
    }
    note->m_drawingAccid = this;

    return FUNCTOR_CONTINUE;
}
Пример #2
0
int Accid::PreparePointersByLayer( ArrayPtrVoid *params )
{
    // param 0: the current Note (not used)
    //Note **currentNote = static_cast<Note**>((*params).at(0));
    
    Note *note = dynamic_cast<Note*>( this->GetFirstParent( NOTE, MAX_ACCID_DEPTH ) );
    if ( !note ) {
        return FUNCTOR_CONTINUE;
    }
    
    if ( note->m_drawingAccid != NULL ) {
        note->ResetDrawingAccid();
    }
    note->m_drawingAccid = this;
    
    return FUNCTOR_CONTINUE;
}