Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a Resetview Option Feature #1668

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vinayakjeet
Copy link

#1666

Overview

This pull request introduces a "Reset View" option to Avogadro, enabling users to easily revert the view to its default state. This includes resetting the camera angles, the origin of the coordinate system, and the zoom level.

Changes

  • GLWidget: Added resetViewSettings() to reset camera and view-related settings.
  • MultiViewWidget: Implemented resetAllViews() to propagate the reset across all embedded view widgets.

Purpose

The addition of this feature enhances usability by providing a straightforward way to reset views, especially useful when switching between molecules or configurations. This mirrors the behavior seen when switching between molecules in the Molecules pane, where the view resets to a default state.

closes #1666

Signed-off-by: Vinayakjeet Singh Karki <[email protected]>
Signed-off-by: Vinayakjeet Singh Karki <[email protected]>
@vinayakjeet
Copy link
Author

@ghutchis @matterhorn103
Please note, that this PR includes changes from PR #1659. Please review and merge PR #1659 first to simplify the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a reset view option
1 participant