Logo Search packages:      
Sourcecode: inkscape version File versions

NR::Matrix sp_canvas_item_i2w_affine ( SPCanvasItem const *  item  ) 

Returns the product of all transformation matrices from the root item down to the item.

Definition at line 536 of file sp-canvas.cpp.

References NR::identity(), SPCanvasItem::parent, and SPCanvasItem::xform.

    g_assert (SP_IS_CANVAS_ITEM (item)); // should we get this?

    NR::Matrix affine = NR::identity();

    while (item) {
        affine *= item->xform;
        item = item->parent;
    return affine;

Generated by  Doxygen 1.6.0   Back to index