'Return *obj* mapped from local coordinates to device coordinates (pixels).
If there is no device mapping available, return None.'

def mapToDevice(self, obj):

    vt = self.deviceTransform()
    if (vt is None):
        return None
    return vt.map(obj)
