Skip to content

resetCameraToDefault() default camera position updates when new data is loaded #468

@jcornall

Description

@jcornall

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions