From: Michael T H. <mic...@us...> - 2004-01-10 23:13:08
|
Update of /cvsroot/jmol/Jmol/src/org/openscience/jmol/viewer/datamodel In directory sc8-pr-cvs1:/tmp/cvs-serv9172/src/org/openscience/jmol/viewer/datamodel Modified Files: Atom.java Log Message: added charge field to Atom + ModelAdapter support Index: Atom.java =================================================================== RCS file: /cvsroot/jmol/Jmol/src/org/openscience/jmol/viewer/datamodel/Atom.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- Atom.java 10 Jan 2004 15:05:49 -0000 1.17 +++ Atom.java 10 Jan 2004 23:13:05 -0000 1.18 @@ -44,6 +44,7 @@ short x, y, z; short diameter; public byte atomicNumber; + byte atomicCharge; byte styleAtom; short marAtom; short colixAtom; @@ -58,6 +59,7 @@ this.atomIndex = atomIndex; this.clientAtom = clientAtom; this.atomicNumber = (byte) viewer.getAtomicNumber(clientAtom); + this.atomicCharge = (byte) viewer.getAtomicCharge(clientAtom); this.colixAtom = viewer.getColixAtom(this); setStyleMarAtom(viewer.getStyleAtom(), viewer.getMarAtom()); this.point3f = new Point3f(viewer.getAtomX(clientAtom), |