|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openscience.cdk.ChemObject
org.openscience.cdk.AtomContainer
org.openscience.cdk.Crystal
public class Crystal
Class representing a molecular crystal. The crystal is described with molecules in fractional coordinates and three cell axes: a,b and c.
The crystal is designed to store only the asymmetric atoms. Though this is not enforced, it is assumed by all methods.
| Constructor Summary | |
|---|---|
Crystal()
Constructs a new crystal with zero length cell axis. |
|
Crystal(IAtomContainer container)
Constructs a new crystal with zero length cell axis and adds the atoms in the AtomContainer as cell content. |
|
| Method Summary | |
|---|---|
Object |
clone()
Makes a clone of this crystal. |
javax.vecmath.Vector3d |
getA()
Gets the A unit cell axes in Cartesian coordinates as a three element double array. |
javax.vecmath.Vector3d |
getB()
Gets the B unit cell axes in Cartesian coordinates as a three element double array. |
javax.vecmath.Vector3d |
getC()
Gets the C unit cell axes in Cartesian coordinates as a three element double array. |
String |
getSpaceGroup()
Gets the space group of this crystal. |
Integer |
getZ()
Gets the number of asymmetric parts in the unit cell. |
void |
setA(javax.vecmath.Vector3d newAxis)
Sets the A unit cell axes in Cartesian coordinates in a Euclidean space. |
void |
setB(javax.vecmath.Vector3d newAxis)
Sets the B unit cell axes in Cartesian coordinates. |
void |
setC(javax.vecmath.Vector3d newAxis)
Sets the C unit cell axes in Cartesian coordinates. |
void |
setSpaceGroup(String group)
Sets the space group of this crystal. |
void |
setZ(Integer value)
Sets the number of asymmetric parts in the unit cell. |
String |
toString()
Returns a String representation of this crystal. |
| Methods inherited from class org.openscience.cdk.ChemObject |
|---|
addListener, compare, getBuilder, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openscience.cdk.interfaces.ICrystal |
|---|
add, addAtom |
| Methods inherited from interface org.openscience.cdk.interfaces.IChemObject |
|---|
addListener, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty |
| Methods inherited from interface org.openscience.cdk.interfaces.ICDKObject |
|---|
getBuilder |
| Methods inherited from interface org.openscience.cdk.interfaces.IChemObjectListener |
|---|
stateChanged |
| Constructor Detail |
|---|
public Crystal()
public Crystal(IAtomContainer container)
container - the AtomContainer providing the atoms and bonds| Method Detail |
|---|
public void setA(javax.vecmath.Vector3d newAxis)
setA in interface ICrystalnewAxis - the new A axisgetA()public javax.vecmath.Vector3d getA()
getA in interface ICrystalsetA(javax.vecmath.Vector3d)public void setB(javax.vecmath.Vector3d newAxis)
setB in interface ICrystalnewAxis - the new B axisgetB()public javax.vecmath.Vector3d getB()
getB in interface ICrystalsetB(javax.vecmath.Vector3d)public void setC(javax.vecmath.Vector3d newAxis)
setC in interface ICrystalnewAxis - the new C axisgetC()public javax.vecmath.Vector3d getC()
getC in interface ICrystalsetC(javax.vecmath.Vector3d)public String getSpaceGroup()
getSpaceGroup in interface ICrystalsetSpaceGroup(java.lang.String)public void setSpaceGroup(String group)
setSpaceGroup in interface ICrystalgroup - the space group of this crystal structuregetSpaceGroup()public Integer getZ()
getZ in interface ICrystalsetZ(java.lang.Integer)public void setZ(Integer value)
setZ in interface ICrystalvalue - the number of asymmetric parts in the unit cellgetZ()
public Object clone()
throws CloneNotSupportedException
clone in interface IChemObjectclone in class AtomContainerCloneNotSupportedException - if the IChemObject cannot be clonedChemObject.shallowCopy()public String toString()
toString in interface IChemObjecttoString in class AtomContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||