Class Crystal

    • Constructor Detail

      • Crystal

        public Crystal()
        Constructs a new crystal with zero length cell axis.
      • Crystal

        public Crystal​(IAtomContainer container)
        Constructs a new crystal with zero length cell axis and adds the atoms in the AtomContainer as cell content.
        Parameters:
        container - the AtomContainer providing the atoms and bonds
    • Method Detail

      • setA

        public void setA​(javax.vecmath.Vector3d newAxis)
        Sets the A unit cell axes in Cartesian coordinates in a Euclidean space.
        Specified by:
        setA in interface ICrystal
        Parameters:
        newAxis - the new A axis
        See Also:
        getA()
      • getA

        public javax.vecmath.Vector3d getA()
        Gets the A unit cell axes in Cartesian coordinates as a three element double array.
        Specified by:
        getA in interface ICrystal
        Returns:
        a Vector3D representing the A axis
        See Also:
        setA(javax.vecmath.Vector3d)
      • setB

        public void setB​(javax.vecmath.Vector3d newAxis)
        Sets the B unit cell axes in Cartesian coordinates.
        Specified by:
        setB in interface ICrystal
        Parameters:
        newAxis - the new B axis
        See Also:
        getB()
      • getB

        public javax.vecmath.Vector3d getB()
        Gets the B unit cell axes in Cartesian coordinates as a three element double array.
        Specified by:
        getB in interface ICrystal
        Returns:
        a Vector3D representing the B axis
        See Also:
        setB(javax.vecmath.Vector3d)
      • setC

        public void setC​(javax.vecmath.Vector3d newAxis)
        Sets the C unit cell axes in Cartesian coordinates.
        Specified by:
        setC in interface ICrystal
        Parameters:
        newAxis - the new C axis
        See Also:
        getC()
      • getC

        public javax.vecmath.Vector3d getC()
        Gets the C unit cell axes in Cartesian coordinates as a three element double array.
        Specified by:
        getC in interface ICrystal
        Returns:
        a Vector3D representing the C axis
        See Also:
        setC(javax.vecmath.Vector3d)
      • setSpaceGroup

        public void setSpaceGroup​(String group)
        Sets the space group of this crystal.
        Specified by:
        setSpaceGroup in interface ICrystal
        Parameters:
        group - the space group of this crystal structure
        See Also:
        getSpaceGroup()
      • getZ

        public Integer getZ()
        Gets the number of asymmetric parts in the unit cell.
        Specified by:
        getZ in interface ICrystal
        Returns:
        the number of asymmetric parts in the unit cell
        See Also:
        setZ(java.lang.Integer)
      • setZ

        public void setZ​(Integer value)
        Sets the number of asymmetric parts in the unit cell.
        Specified by:
        setZ in interface ICrystal
        Parameters:
        value - the number of asymmetric parts in the unit cell
        See Also:
        getZ()