helenginn / mabscape

abmapping
0 stars 0 forks source link

Antibody selection #6

Open funkefel opened 2 years ago

funkefel commented 2 years ago

When selecting an antibody, it is highlighted in light grey, which could be changed to the color of the selected antigen when showing competition etc. which is yellow. Furthermore, the name and the connections of a selected antibody could be displayed when selected, a second click on the same antigen would deselect in that case, to clean up the view again. If selecting an antibody from the explorer, the protein could rotate in such a way, that the antigen is displayed in the middle of the screen, currently it can be in the back of the protein and because of the very subtle selection color it is almost impossible to see which antigen was selected.

helenginn commented 2 years ago

I used to have one way of labelling antibodies by creating a QLabel and displaying the QLabel over an antibody, which got hidden on rotation of the view. Now I usually press "L" to label everything, which create "Text" objects, subclass of SlipObject in helen3d, which render text to an OpenGL object and display directly in the renderer.

I don't think I ever cleaned up the QLabel thing afterwards or put it all under the same system.

helenginn commented 2 years ago

These are all a few separate issues, but for the last one: this is a good linear algebra puzzle... (a) draw a vector from antibody to centre of antigen (b) construct a model mat4x4 matrix which looked along this vector (c) assign it to Experiment::_gl (I would need to make a SlipGL::setModel in helen3d to make this possible)

funkefel commented 2 years ago

7901ca8 Quality of life change: If an antigen is clicked, all its connections stay highlighted, even when moving the mouse somewhere else. Now it is possible to rotate the Protein and see where the connections go.

funkefel commented 2 years ago

aeebead As written, Quality of life change, selecting antibody from list will also highlight the connections.