Package org.jmol.util
Class MolWriter
- java.lang.Object
-
- org.jmol.util.MolWriter
-
public class MolWriter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MolWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddMolFile(int iModel, javajs.util.SB mol, javajs.util.BS bsAtoms, javajs.util.BS bsBonds, boolean asV3000, boolean asJSON, boolean noAromatic, javajs.util.Quat q)private java.lang.StringgetAtomParity(Atom a)private java.lang.StringgetAtomPropertyAsString(Atom a, int tok)private voidgetAtomRecordMOL(int iModel, ModelSet ms, javajs.util.SB mol, int n, Atom a, javajs.util.Quat q, javajs.util.P3 pTemp, boolean asV3000, boolean asJSON, javajs.util.SB atomValues, int tokValue, boolean asSDF)private voidgetBondRecordMOL(javajs.util.SB mol, int n, Bond b, int[] atomMap, boolean asV3000, boolean asJSON, boolean noAromatic)private voidoutput80CharWrap(javajs.util.SB mol, java.lang.String data, int maxN)private voidoutputLines(javajs.util.SB mol, java.lang.String data, int maxN)MolWritersetViewer(Viewer vwr)
-
-
-
Field Detail
-
vwr
private Viewer vwr
-
ptTemp
private javajs.util.P3 ptTemp
-
vNorm
private javajs.util.T3 vNorm
-
vTemp
private javajs.util.T3 vTemp
-
connections
private int[] connections
-
-
Method Detail
-
addMolFile
public boolean addMolFile(int iModel, javajs.util.SB mol, javajs.util.BS bsAtoms, javajs.util.BS bsBonds, boolean asV3000, boolean asJSON, boolean noAromatic, javajs.util.Quat q)
-
getAtomRecordMOL
private void getAtomRecordMOL(int iModel, ModelSet ms, javajs.util.SB mol, int n, Atom a, javajs.util.Quat q, javajs.util.P3 pTemp, boolean asV3000, boolean asJSON, javajs.util.SB atomValues, int tokValue, boolean asSDF)
-
getAtomParity
private java.lang.String getAtomParity(Atom a)
-
getAtomPropertyAsString
private java.lang.String getAtomPropertyAsString(Atom a, int tok)
-
getBondRecordMOL
private void getBondRecordMOL(javajs.util.SB mol, int n, Bond b, int[] atomMap, boolean asV3000, boolean asJSON, boolean noAromatic)
-
output80CharWrap
private void output80CharWrap(javajs.util.SB mol, java.lang.String data, int maxN)- Parameters:
mol-data-maxN- 80 for multi-line wrap; something smaller for single line output
-
outputLines
private void outputLines(javajs.util.SB mol, java.lang.String data, int maxN)
-
-