|
def resetCameraToDefault(self): |
|
''' resets to the default camera settings for the current |
|
loaded 3D image''' |
|
if hasattr(self, 'default_camera_data'): |
|
self.adjustCamera(resetcamera=True) |
|
CameraData.CopyDataToCamera(self.default_camera_data, self.getCamera()) |
When new 3D image data is loaded in CILViewer, the default camera position is updated to the current position. If the camera has been moved prior to loading the new data, the existing position is used as the new default.
Ideally, the default camera position should persist (i.e. normal to the center of the slice in the XY plane) when new data is loaded.
CILViewer/Wrappers/Python/ccpi/viewer/CILViewer.py
Lines 654 to 659 in 65c5949
When new 3D image data is loaded in CILViewer, the default camera position is updated to the current position. If the camera has been moved prior to loading the new data, the existing position is used as the new default.
Ideally, the default camera position should persist (i.e. normal to the center of the slice in the XY plane) when new data is loaded.