'Return the transform mapping this item\'s local coordinate system to the
view coordinate system.'

def viewTransform(self):

    tr = self.__transform
    p = self
    while True:
        p = p.parentItem()
        if (p is None):
            break
        tr = (p.transform() * tr)
    return Transform3D(tr)
