예제 #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;
}