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

Add shortcut buttons for controlling model view #40

Merged
merged 14 commits into from
Jul 7, 2021

Conversation

cajfisher
Copy link
Contributor

Add buttons for aligning and rotating model, as well as selecting all atoms.
The user can specify the angle to be rotated with the spin button. The rotation button images still need some improvement but hopefully are intelligible enough at present.
Also changed the grouping of buttons slightly to be more "intuitive" (?).
These new alignment buttons render the Model:Viewing buttons redundant, but the latter can be kept for the time being (although the menu buttons are quicker to use).
Also added shortcut key combination for "unhiding" all atoms, as well as notice of number of hidden atoms in model viewer.
Also fixed several spelling mistakes in comments.

Add buttons for aligning and rotating model, as well as selecting all atoms.
The user can specify the angle to be rotated with spin button. The rotation button images still need some improvement but hopefully are intelligible enough.
Also changed the grouping of buttons slightly to be more "intuitive" (?).
The new alignment buttons render the Model:Viewing buttons redundant, but the latter can be kept for the time being (although the menu buttons are easier to use).
Also added shortcut key combination for "unhiding" all atoms, as well as notice of number of hidden atoms in model viewer. 
Also fixed several spelling mistakes in comments.
@ovhpa
Copy link
Collaborator

ovhpa commented Jul 1, 2021

Oops, it seems that I forgot that pull request.

number of hidden atoms in model viewer

There is a little graphic bug where the "Selected X" text appear over the frame number, whenever a selection is made on a multiple frame model.
for example, from the src subdirectory:

../bin/gdis ../models/vasprun.xml

then select a few / all atoms.

Everything else seems OK.

@cajfisher
Copy link
Contributor Author

cajfisher commented Jul 1, 2021 via email

@cajfisher
Copy link
Contributor Author

cajfisher commented Jul 2, 2021 via email

Info text for number of selected and hidden atoms moved to lower left-hand corner of canvas.
@cajfisher
Copy link
Contributor Author

Info text for "selected" and "hidden" atoms moved to lower left-hand corner of canvas

@ovhpa
Copy link
Collaborator

ovhpa commented Jul 5, 2021

Hello
I see that the "selected" text was moved to the lower left corner, and the energy was combined with the "normal" mode text.
Unfortunately this leads to a graphic bug and now the energy value and "normal" text can sometimes overlap.
in src directory, try

../bin/gdis ../models/graphite.scf.qeout ../models/octane.got ../models/1_C2H4_HOOH_Tifer.arc ../models/aloh4-.car ../models/carbonate.car ../models/full.car ../models/gibb.car ../models/la_rdefe_clus.car ../models/water.car

and enable energy toggle in display, here is what I get for the problematic models (see the lower-right corner):
pr_40

This also happen for USPEX display:
pr_40_2

you can also try

../bin/gdis ../models/*

To see how the other models behave.

Best,

Adds option to show shell charges from render dialogue, in addition to core charges and total atom charges.
Toggles for total atom charges, core charges and shell charges brought together in render dialogue.
Also rearrange info display positions so that energy is right-hand top corner, selected and hidden is lower left-hand corner and animation slices are centred above model.
Toggles for displaying total atom charges, core charges and shell charges grouped together.
Adds display of shell charges as well as total atom charges and core charges.
Energy values moved to upper right-hand corner and movie slice numbers moved to centre above model.
@cajfisher
Copy link
Contributor Author

cajfisher commented Jul 6, 2021 via email

@ovhpa ovhpa merged commit 7d78944 into arohl:master Jul 7, 2021
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.

2 participants