MENU: MOLs

Delete Mol Object:

When the cursor is dragged over this item, a pop-up menu appears and the user is able to choose which MOL object is to be deleted. The MOL objects that appear after the deleted object are shuffled up one. i.e. if you have 3 objects and delete the second one, the third object now becomes the second object and there is no longer a third object. All of the menus are updated to show the change. To conserve as much memory as possible, I create a scratch area of RAM, write the objects to that area, and reallocate exactly as much memory is needed after the deletion. Therefore, the memory usage is maximized ( I also use Handles instead of fixed pointers during the moves). **Note, in this latest version, the pen pattern and colors are still associated with a particular Mol object even though the # designation has changed. e.g. Mol object #3 is red. I delete Mol object #2. Mol object #3 becomes Mol object #2. However, this object is still red and not the color of the previous Mol object #2. **Note, in the last version, if the Mol object was empty, you could not delete it (a C problem). I programmed around this problem, and you can now delete empty Mol objects.


Clip Mol Object w/ At. model:

This is a rather odd routine to fix a bug in O (version 5.9). O, a program for the larger graphics machines, does not properly clip the electron density in the plot files. This fixes that. Read in the O plot file and append the PDB file while reading it in and follow dialog box instructions.