| | 1 | = Simple molecular graphics attributes for Feb 2015 Chimera 2 |
| | 2 | |
| | 3 | These are graphical molecular attributes that should be part of the C++ molecule classes or their base classes. |
| | 4 | |
| | 5 | "*" indicates something we may change in Chimera 2. |
| | 6 | |
| | 7 | == Atom == |
| | 8 | {{{ |
| | 9 | }}} |
| | 10 | |
| | 11 | == !BaseSphere (base class for Atom) == |
| | 12 | {{{ |
| | 13 | drawMode (Dot, Sphere, EndCap, Ball) |
| | 14 | }}} |
| | 15 | |
| | 16 | == Connectible (base class for !BaseSphere) == |
| | 17 | {{{ |
| | 18 | display (true/false) |
| | 19 | |
| | 20 | color |
| | 21 | }}} |
| | 22 | |
| | 23 | == Connection (base class for Bond/!PseudoBond) == |
| | 24 | {{{ |
| | 25 | display (true/false) |
| | 26 | |
| | 27 | drawMode (wire, stick, spring) |
| | 28 | radius |
| | 29 | |
| | 30 | color |
| | 31 | halfbond (color each half of bond to match near atom) |
| | 32 | }}} |
| | 33 | |
| | 34 | == Residue == |
| | 35 | {{{ |
| | 36 | ribbonDisplay (true/False) |
| | 37 | ribbonDrawMode (2D, edged, round, custom) |
| | 38 | ribbonColor |
| | 39 | ribbonXSection (for custom cross-sections) |
| | 40 | ribbonStyle (width and thickness scale factors, e.g. for worms) |
| | 41 | }}} |
| | 42 | |
| | 43 | |
| | 44 | == Chain == |
| | 45 | {{{ |
| | 46 | }}} |
| | 47 | |
| | 48 | == Molecule, also inherits from Model == |
| | 49 | {{{ |
| | 50 | ballScale (float, scale ball size in ball and stick) |
| | 51 | stickScale (float, scale factor for bond radius) |
| | 52 | |
| | 53 | ribbonType (bspline, cardinal) |
| | 54 | ribbonStiffness (float, interpolation parameter) |
| | 55 | ribbonSmoothing (strand | coil mask, to smooth specific secondary structures) |
| | 56 | ribbonInsideColor (for inside/outside dual coloring) |
| | 57 | ribbonHidesMainChain (true/false) |
| | 58 | residueLabelPositionMode (centroid, backbone, primary-atom) |
| | 59 | }}} |
| | 60 | |
| | 61 | == Model == |
| | 62 | {{{ |
| | 63 | display (true/false) |
| | 64 | |
| | 65 | color |
| | 66 | }}} |
| | 67 | |
| | 68 | == !PseudoBondGroup (global bond settings like Molecule) == |
| | 69 | {{{ |
| | 70 | stickScale (float, scale factor for bond radius) |
| | 71 | }}} |
| | 72 | |
| | 73 | == Changes == |
| | 74 | |
| | 75 | 7. Should color objects be immutable? Chimera 1 allows redefining a color and having all graphics objects using that color automatically update. Complex code. |
| | 76 | |
| | 77 | 8. How to handle different materials in addition to colors? |
| | 78 | |
| | 79 | 9. Keep color hierarchy (model->atom, model->ribbon)? What about surface colors? |