Package org.jmol.adapter.readers.cif
Class TopoCifParser
- java.lang.Object
-
- org.jmol.adapter.readers.cif.TopoCifParser
-
- All Implemented Interfaces:
CifReader.Parser
public class TopoCifParser extends Object implements CifReader.Parser
See https://www.iucr.org/resources/cif/dictionaries/cif_topology
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classTopoCifParser.TopoLinkA class to hold the _topol block information and transform it as needed.private classTopoCifParser.TopoPrimitiveA class to hold the result of a "primitive" operation on a given link with a given operator.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TopoCifParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfinalizeReader()voidfinalizeSymmetry(boolean haveSymmetry)Create a list of cartesians and then set the bonds.(package private) static booleanisEqualD(javajs.util.T3 p1, javajs.util.T3 p2, double d, double err)voidprocessBlock(String key)private intsetBonds(int index, Atom[] atoms, javajs.util.P3[] carts, TopoCifParser.TopoLink link, SymmetryInterface sym, int nOps, javajs.util.BS bsConnected)Find all bonds associated with this link by matching unitized atom positions to unitized "primitive" operations on the link.TopoCifParsersetReader(CifReader reader)filter "TOPOS_TYPES=hb" will only load hydrogen bonds; options include v, vw, and hb
-
-
-
Field Detail
-
topolFields
private static final String[] topolFields
-
topol_link_node_label_1
private static final byte topol_link_node_label_1
- See Also:
- Constant Field Values
-
topol_link_node_label_2
private static final byte topol_link_node_label_2
- See Also:
- Constant Field Values
-
topol_link_distance
private static final byte topol_link_distance
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_symop_1
private static final byte topol_link_site_symmetry_symop_1
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_translation_1_x
private static final byte topol_link_site_symmetry_translation_1_x
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_translation_1_y
private static final byte topol_link_site_symmetry_translation_1_y
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_translation_1_z
private static final byte topol_link_site_symmetry_translation_1_z
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_symop_2
private static final byte topol_link_site_symmetry_symop_2
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_translation_2_x
private static final byte topol_link_site_symmetry_translation_2_x
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_translation_2_y
private static final byte topol_link_site_symmetry_translation_2_y
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_translation_2_z
private static final byte topol_link_site_symmetry_translation_2_z
- See Also:
- Constant Field Values
-
topol_link_type
private static final byte topol_link_type
- See Also:
- Constant Field Values
-
topol_link_multiplicity
private static final byte topol_link_multiplicity
- See Also:
- Constant Field Values
-
topol_link_voronoi_solidangle
private static final byte topol_link_voronoi_solidangle
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_translation_1
private static final byte topol_link_site_symmetry_translation_1
- See Also:
- Constant Field Values
-
topol_link_site_symmetry_translation_2
private static final byte topol_link_site_symmetry_translation_2
- See Also:
- Constant Field Values
-
reader
CifReader reader
-
cifParser
javajs.api.GenericCifDataParser cifParser
-
types
private String types
-
links
private javajs.util.Lst<TopoCifParser.TopoLink> links
-
bondlist
String bondlist
-
-
Method Detail
-
setReader
public TopoCifParser setReader(CifReader reader)
filter "TOPOS_TYPES=hb" will only load hydrogen bonds; options include v, vw, and hb- Specified by:
setReaderin interfaceCifReader.Parser
-
finalizeReader
public boolean finalizeReader() throws Exception- Specified by:
finalizeReaderin interfaceCifReader.Parser- Throws:
Exception
-
isEqualD
static boolean isEqualD(javajs.util.T3 p1, javajs.util.T3 p2, double d, double err)
-
finalizeSymmetry
public void finalizeSymmetry(boolean haveSymmetry) throws ExceptionCreate a list of cartesians and then set the bonds.- Specified by:
finalizeSymmetryin interfaceCifReader.Parser- Throws:
Exception
-
setBonds
private int setBonds(int index, Atom[] atoms, javajs.util.P3[] carts, TopoCifParser.TopoLink link, SymmetryInterface sym, int nOps, javajs.util.BS bsConnected)Find all bonds associated with this link by matching unitized atom positions to unitized "primitive" operations on the link. The basic idea: 1. We comparing all atom positions from site 1 with all atom positions from site 2. 2.- Parameters:
index-atoms-carts-link-sym-nOps-bsConnected-
-
processBlock
public void processBlock(String key) throws Exception
- Specified by:
processBlockin interfaceCifReader.Parser- Throws:
Exception
-
-