예제 #1
0
void Graphic::parentXform (Transformer& t) {
    Transformer identity;
    Graphic* p = parent();

    if (p == nil) {
        *(&t) = *(&identity);
    } else {
        p->eqv_transformer(t);
    }
}
예제 #2
0
void Graphic::eqv_transformer (Transformer& total) {
    Graphic* p = parent();
    
    if (p == nil) {
        concatXform(nil, _t, &total);

    } else {
        p->eqv_transformer(total);
        concatXform(_t, &total, &total);
    }
}