Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions