Package chemaxon.marvin.alignment
Class AlignmentMolecule
java.lang.Object
chemaxon.marvin.alignment.AlignmentMolecule
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidstatic AlignmentMoleculecreate(byte[] bytes) Deprecated, for removal: This API element is subject to removal in a future version.static AlignmentMoleculecreate(byte[] bytes, AlignmentProperties.DegreeOfFreedomType df) Deserializes an AlignmentMolecule from a byte array.intdouble[][]Gets back a clone of the unmodified input structure.intgetMolID()intintchemaxon.marvin.alignment.VisualizableFor internal use only.doublevoidinitVariables(boolean enableTranslateAndRotate) booleandoublevoidsetAssigned(int i, boolean b) voidsetEnableTranslateAndRotate(boolean enableTranslateAndRotate) voidsetMolID(int molID) byte[]toData()Deprecated.useShapeData.toData()instead.toString()
-
Field Details
-
nodes
public chemaxon.marvin.alignment.NodeSum nodes -
molID
protected int molID
-
-
Method Details
-
setMolID
public void setMolID(int molID) -
initVariables
public void initVariables(boolean enableTranslateAndRotate) -
getVisualizable
public chemaxon.marvin.alignment.Visualizable getVisualizable()For internal use only. -
getRotBondCount
public int getRotBondCount() -
create
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static AlignmentMolecule create(byte[] bytes) Deprecated, for removal: This API element is subject to removal in a future version.Deserializes an AlignmentMolecule from a byte array.- Parameters:
bytes- ShapeData object in a serialized form created byShapeData.toData()method.- Returns:
- the AlignmentMolecule created with
AlignmentMoleculeFactory.create(chemaxon.marvin.alignment.ShapeData, chemaxon.marvin.alignment.AlignmentProperties.DegreeOfFreedomType)withAlignmentProperties.DegreeOfFreedomType.TRANSLATE_ROTATE_FLEXIBLE
-
create
Deserializes an AlignmentMolecule from a byte array.- Parameters:
bytes- ShapeData object in a serialized form created byShapeData.toData()method.- Returns:
- the AlignmentMolecule created with
AlignmentMoleculeFactory.create(chemaxon.marvin.alignment.ShapeData, chemaxon.marvin.alignment.AlignmentProperties.DegreeOfFreedomType)
-
cloneMolecule
-
toData
Deprecated.useShapeData.toData()instead.Serializes the current object to a byte array- Returns:
- the serialized array
-
getVolume
public double getVolume()- Returns:
- the volume of the molecule in A^3
-
getAtomCount
public int getAtomCount() -
crdSafeRefresh
public void crdSafeRefresh() -
crdMolRefresh
public void crdMolRefresh() -
getMolID
public int getMolID() -
getNodeCount
public int getNodeCount() -
getMolCrd
public double[][] getMolCrd() -
getMoleculeOrig
Gets back a clone of the unmodified input structure.- Returns:
- clone of the unmodified input structure
-
setAssigned
public void setAssigned(int i, boolean b) -
clearAssigned
public void clearAssigned() -
toString
-
isEnableTranslateAndRotate
public boolean isEnableTranslateAndRotate() -
setEnableTranslateAndRotate
- Throws:
AlignmentException
-
showSelectedNodes
-
ownOverlap
-
create(byte[], DegreeOfFreedomType)withAlignmentProperties.DegreeOfFreedomType.TRANSLATE_ROTATE_FLEXIBLE.