Package org.jmol.adapter.readers.cif
Class TopoCifParser.TLink
- java.lang.Object
-
- org.jmol.adapter.smarter.AtomSetObject
-
- org.jmol.adapter.smarter.Bond
-
- org.jmol.adapter.readers.cif.TopoCifParser.TLink
-
- Enclosing class:
- TopoCifParser
private class TopoCifParser.TLink extends Bond
A class to hold the TOPOL_LINK data item information and transform it as needed. A key field is the primitives array of TopoPrimitives. These structures allow us to create a set of "primitive" operation results that operate specifically on the links themselves. Rather than showing those links (as with the Jmol script commented at the end of this class), we choose to first create the standard Jmol atom set using, for example, load hcb.cif PACKED or load xxx.cif {1 1 1} or load xxx.cif {444 666 1}, etc. Then we match those atoms with link edges by unitizing the atom back to its unit cell 555 site and then comparing with the primitive associated with a given operator.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javajs.util.BSbsAtoms(package private) javajs.util.BSbsBonds(package private) floatcartesianDistance(package private) booleanfinalized(package private) java.lang.Stringid(package private) intidxprivate java.lang.Stringline(package private) TopoCifParser.TNode[]linkNodesprivate java.lang.Stringmf(package private) intmultiplicity(package private) TopoCifParser.TNetnet(package private) java.lang.StringnetID(package private) java.lang.StringnetLabel(package private) java.lang.String[]nodeIds(package private) java.lang.String[]nodeLabels(package private) int[]symops(package private) javajs.util.Lst<TopoCifParser.TAtom>tatoms(package private) inttopoOrder(package private) javajs.util.P3[]translations(package private) java.lang.Stringtype(package private) inttypeBondOrder(package private) floatvoronoiAngle-
Fields inherited from class org.jmol.adapter.smarter.Bond
atomIndex1, atomIndex2, colix, distance, order, radius, uniqueID
-
Fields inherited from class org.jmol.adapter.smarter.AtomSetObject
atomSetIndex
-
-
Constructor Summary
Constructors Constructor Description TLink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) TopoCifParser.TAtomaddAtom(TopoCifParser.TAtom atom)(package private) voidfinalizeLink()Take all actions prior to applying symmetry.private voidfinalizeLinkNode(int index)(package private) java.util.Map<java.lang.String,java.lang.Object>getLinkInfo()java.lang.StringgetMolecularFormula()private TopoCifParser.TNodegetNodeWithSym(java.lang.String nodeID, java.lang.String nodeLabel, int op, javajs.util.P3 trans)Find a node that already matches this id and symmetry(package private) java.lang.Stringinfo()(package private) booleansetLink(int[] t1, int[] t2, java.lang.String line)java.lang.StringtoString()
-
-
-
Field Detail
-
id
java.lang.String id
-
nodeIds
java.lang.String[] nodeIds
-
nodeLabels
java.lang.String[] nodeLabels
-
symops
int[] symops
-
translations
javajs.util.P3[] translations
-
netID
java.lang.String netID
-
netLabel
java.lang.String netLabel
-
type
java.lang.String type
-
multiplicity
int multiplicity
-
topoOrder
int topoOrder
-
voronoiAngle
float voronoiAngle
-
cartesianDistance
float cartesianDistance
-
idx
int idx
-
net
TopoCifParser.TNet net
-
linkNodes
TopoCifParser.TNode[] linkNodes
-
typeBondOrder
int typeBondOrder
-
tatoms
javajs.util.Lst<TopoCifParser.TAtom> tatoms
-
bsAtoms
javajs.util.BS bsAtoms
-
bsBonds
javajs.util.BS bsBonds
-
line
private java.lang.String line
-
finalized
boolean finalized
-
mf
private java.lang.String mf
-
-
Method Detail
-
setLink
boolean setLink(int[] t1, int[] t2, java.lang.String line)
-
addAtom
TopoCifParser.TAtom addAtom(TopoCifParser.TAtom atom)
-
finalizeLink
void finalizeLink() throws java.lang.ExceptionTake all actions prior to applying symmetry. Specifically, create any nodes and atoms- Throws:
java.lang.Exception
-
getMolecularFormula
public java.lang.String getMolecularFormula()
-
finalizeLinkNode
private void finalizeLinkNode(int index) throws java.lang.Exception- Parameters:
index- 0 or 1- Throws:
java.lang.Exception
-
getNodeWithSym
private TopoCifParser.TNode getNodeWithSym(java.lang.String nodeID, java.lang.String nodeLabel, int op, javajs.util.P3 trans)
Find a node that already matches this id and symmetry- Parameters:
nodeID-nodeLabel-op- a symmetry operation [9...N-1] or -1 to ignore op and transtrans- the translation, ignored if op < 0- Returns:
- found node or null
-
getLinkInfo
java.util.Map<java.lang.String,java.lang.Object> getLinkInfo()
-
info
java.lang.String info()
-
-