@staticmethod
    def centerAllVolumes():
        lm = slicer.app.layoutManager()
        for sliceView in lm.sliceViewNames():
            lm.sliceWidget(sliceView).sliceLogic().FitSliceToAll()
Center all the volumes that are currently visible in the 2D Windows
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_Common/CIP/logic/SlicerUtil.py/SlicerUtil.centerAllVolumes