public class SelectionMolecule extends MoleculeGraph
hasSelfReferringPropertyMoleculeGraph.ValenceCheckStateAROM_AMBIGUOUS, AROM_BASIC, AROM_GENERAL, AROM_LOOSE, AROM_SUBSTRUCTURE, atomCount, AUTO_UNGROUP, bondCount, btab, CACHE_REMOVE_ALL, CACHE_REMOVE_AROMATAMODULE, CACHE_REMOVE_CACHEMEMORY, CACHE_REMOVE_GRINVMODULE, CACHE_REMOVE_PARITYMODULE, CACHE_REMOVE_SSSRMODULE, CACHE_REMOVE_TABS, cacheMemory, ctab, DEAROM_GENERAL, DEAROM_HUCKELCHECK, DEAROM_HUCKELCHECK_EX, DIM_MASK, FRAG_BASIC, FRAG_KEEPING_MULTICENTERS, FRAG_KEEPING_SGROUPS, FRAG_TYPE_COUNT, gearch, GRINV_DONT_STORE, GRINV_NOHYDROGEN, GRINV_OLDSTEREO, GRINV_STEREO, GRINV_USEMAPS, GRINV_VALUE_OPTIONS, grinvCC, INITIAL_CAPACITY, INVALID_LINKNODE_MESSAGE, MIN_RING_SIZE_FOR_TRANS_DB, OMIT_POSTCLEAN, orix, oriy, oriz, parentGraph, propertyContainer, RMCLEANUP_ALL, RMCLEANUP_EDGES, RMCLEANUP_FIXCOMPONENT, RMCLEANUP_MOBJECT, RMCLEANUP_NONE, RMCLEANUP_PARENTDOC, RMCLEANUP_STEREO, superGraph, theAtoms, theBonds, useOnlyFirstAtomInStereoCalculation, VALENCE_CHECK, VALENCE_CHECK_AMBIGUOUSANTI, ATOMSTEREO_EITHER, ATOMSTEREO_MASK, ATOMSTEREO_NONE, ATOMSTEREO_SPECIFIC, CHIRALITY_M, CHIRALITY_MASK, CHIRALITY_P, CHIRALITY_r, CHIRALITY_R, CHIRALITY_s, CHIRALITY_S, CHIRALITYSUPPORT_ALL, CHIRALITYSUPPORT_ALL_POSSIBLE, CHIRALITYSUPPORT_NONE, CHIRALITYSUPPORT_SELECTED, CIS, CTUMASK, CTUNKNOWN, CTUNSPEC, DBS_ALL, DBS_MARKED, DBS_NONE, ENDO, EXO, PARITY_ALLENE, PARITY_EITHER, PARITY_EVEN, PARITY_MASK, PARITY_ODD, PARITY_TETRAHEDRAL, PARITY_UNSPEC, STGRP_ABS, STGRP_AND, STGRP_NONE, STGRP_OR, SYN, TRANS| Constructor and Description |
|---|
SelectionMolecule() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MolAtom atom)
Adds an atom to the molecule.
|
void |
add(MolAtom atom,
boolean addBonds)
Adds an atom to the molecule.
|
void |
add(MolBond bond)
Adds a bond to the graph.
|
void |
add(MolBond bond,
boolean checkParallel)
Add a bond to the molecule.
|
protected void |
addAtom0(MolAtom atom)
Adds an atom.
|
protected void |
addAtomWithBonds(MolAtom atom)
Adds an atom to the molecule.
|
protected int |
addAtomWithoutChangingIt(MolAtom atom)
Adds an atom without setting its parentGraph and index fields.
|
protected void |
addBond0(MolBond bond)
Adds a bond.
|
protected void |
checkBondConsistency()
Empty implementation, bond consistency is not checked in case of
selections.
|
SelectionMolecule |
clone()
Create a clone of this SelectionMolecule.
|
void |
clonecopy(MoleculeGraph graph)
Copies the clones of atoms and bonds of this graph to another one.
|
protected boolean |
clonecopyMoleculeGraphWithoutSgroups(int[] iatoms,
MolBond[] cbonds,
int nb,
MoleculeGraph g)
Copies the specified atoms and bonds of this graph to another one.
|
protected chemaxon.struc.gearch.MoleculeGraphGearch |
createGearch() |
protected void |
fuse0(MoleculeGraph g,
boolean check)
Adds those atoms and bonds of a graph to this one that are not already
elements.
|
Integer[] |
getLigands(Integer atom) |
protected boolean |
isGrinvCCValid()
Tests whether the graph invariant change count is valid.
|
protected boolean |
isRealAtomParent()
Selection molecules are not real atom parents.
|
protected void |
regenCtabs()
Regenerates connection table and bond table.
|
void |
removeAtom(int i)
Removes an atom and its bonds from the graph.
|
void |
removeAtom(MolAtom atom)
Removes an atom and its bonds.
|
void |
removeBond(int i)
Removes a bond from the graph.
|
void |
removeBond(MolBond bond)
Removes a bond by reference.
|
protected void |
setAtom0(int i,
MolAtom atom)
Sets the atom at the specified index.
|
void |
setBond(int i,
MolBond bond)
Deprecated.
as of Marvin 6.2. Use
removeBond(MolBond) for bond
removal and add(MolBond) for adding a new bond to
the molecule. |
void |
swapAtoms(int i,
int j)
Swap two atoms.
|
void |
transform(CTransform3D t)
Apply a transformation matrix to the atomic coordinates.
|
addAtomsAndBondsTo, addAtomToFragment, addBondWithoutChangingIt, addExplicitHydrogens, addExplicitHydrogens, addExplicitLonePairs, addSimpleAtomWithoutChangingIt, adjustMultiChiralFlag, aromatize, aromatize, aromatize, aromatize, arrangeComponents, bondlength, calcCenter, calcCenter, calcDehydrogenizedGrinv, calcHeight, calcHybridization, calcOutRect, calcOutRect, calcOutRectCenter, calcOutRectCenter, calcWidth, canBeCT, canBeCT, canBeCT, checkConsistency, clean, clean, clear, clearCachedInfo, clearForImport, cloneAtoms, clonecopy, clonelesscopy, connectOriginalBondsToNewAtom, contains, contains, contains, createBHtab, createCHtab, createDehydrogenizedReadOnlyGraph, createSmolecule, dearomatize, dearomatize, findAtom, findAtomClone, findBasicFrags, findBond, findComponentIds, findComponentIds, findFrag, findFrag, findFragById, findFrags, findFrags, findInArray, fixSelfReferringProperty, fuse, fuse, getAromaticAndAliphaticRings, getAtom, getAtomArray, getAtomCount, getAtomCount, getAtomicNumber, getAtomIterator, getAtomReferenceList, getBond, getBondArray, getBondCount, getBondIterator, getBonds, getBondTable, getBtab, getCharge, getChirality, getCSSR, getCtab, getDesiredLength, getDesiredLength, getDim, getDocument, getDocumentForChild, getEnclosingCube, getExactMass, getExplicitHcount, getExplicitLonePairCount, getEZStereo, getFlags, getForefather, getFormalCharge, getFormula, getFragCount, getFragCount, getFragIds, getFreeAttachmentPoints, getGraphUnion, getGrinv, getGrinv, getGrinv, getGrinv, getGrinvCC, getGrinvOptions, getImplicitHcount, getImplicitHCount, getLigand, getLigandAtno, getLigandBondType, getLigandCount, getLocalParity, getLocation, getLock, getLonePairCount, getMass, getMaxRgroupAttachmentPointOrder, getName, getParent, getParentDocument, getParity, getParityType, getPoints, getPossibleAttachmentPoints, getRadicalCount, getSmallestRingSizeForIdx, getSSSR, getSSSRBonds, getSSSRBondsAsBitSet, getSSSRBondSet, getSSSRBondSetInLong, getSSSRIdxesForAtoms, getStereo2, getStereo2, getStereo2, getStereo2, getStereo2, getStereo2, getStereo2, getSubGraphCount, getSubGraphs, getSubGraphs, getTotalCharge, getValenceCheckOptions, getValenceCheckState, getValenceProperty, getVisibleCoords, hasAtomSet, hasBondSet, hasExplicitLonePairs, hasExtraLabelSet, hasImplicitH, hasSelfReferringProperty, hasValenceError, hydrogenize, implicitizeHydrogens, implicitizeHydrogens, implicitizeHydrogens, implicitizeHydrogens0, incGrinvCC, incGrinvCC, incGrinvCCOnly, indexOf, indexOf, insertAtom, insertBond, insertBondInOrder, insertNullAtoms, insertNullBonds, isAbsStereo, isAcceptedSpecialLigand, isAtom, isAtomInRing, isBond, isBondParallelWith, isEmpty, isLargeMolecule, isMolecule, isMultiChiral, isolate, isolate, isOnlyFirstAtomInStereoCalculation, isQuery, isRing, isRingBond, isSelfReference, isSimilarTo, isSymmetric, isValenceCheckEnabled, isValidLinkNode, makeItSimilar, mergeAtoms, mergeFrags, moveTo, newInstance, pack, partialClean, partialClean, partialClean, properties, qpropCheck, regenBonds, regenGearch, removeAll, removeAllBonds, removeAtom, removeAtom, removeBond, removeBond, removeExplicitLonePairs, removeIsolatedAtoms, removeIsolatedBonds, replaceAtom, replaceBond, resetCtab, resetGrinvInParents, restoreCache, revalidateCoordDependentProps, saveCache, setAbsStereo, setAtom, setAtomSetSeqs, setBondSetSeqs, setChirality, setChirality, setDim, setFlags, setFlags, setGrinvCC, setGrinvOptions, setLinkNodeDefaultOuters, setLocalParity, setLocalParity, setLocation, setParity, setParity, setParity, setSupergraph, setValenceCheckEnabled, setValenceCheckOptions, setValenceCheckState, smol, sortBondsAccordingTo, stereoClean, sumConservedQuantities, toString, transform, updateDim, useOnlyFirstAtomInStereoCalculation, valenceCheck, valenceCheckprotected boolean isRealAtomParent()
isRealAtomParent in class MoleculeGraph@Deprecated public void setBond(int i, MolBond bond)
removeBond(MolBond) for bond
removal and add(MolBond) for adding a new bond to
the molecule.setBond in class MoleculeGraphi - bond indexbond - the bond referencepublic void add(MolBond bond)
add in class MoleculeGraphbond - the bond objectpublic void add(MolBond bond, boolean checkParallel)
add in class MoleculeGraphbond - the bond objectcheckParallel - public void add(MolAtom atom)
add in class MoleculeGraphatom - the atom objectpublic void add(MolAtom atom, boolean addBonds)
atom - addBonds - protected void addAtomWithBonds(MolAtom atom)
atom - public void swapAtoms(int i,
int j)
i - index of the first atomj - index of the second atompublic void removeAtom(MolAtom atom)
removeAtom in class MoleculeGraphatom - the atompublic void removeAtom(int i)
removeAtom in class MoleculeGraphi - the atom indexpublic void removeBond(MolBond bond)
removeBond in class MoleculeGraphbond - the bondpublic void removeBond(int i)
removeBond in class MoleculeGraphi - the bond indexprotected void addAtom0(MolAtom atom)
addAtom0 in class MoleculeGraphatom - the atom referenceprotected void setAtom0(int i,
MolAtom atom)
setAtom0 in class MoleculeGraphi - atom indexatom - new atom referenceprotected void addBond0(MolBond bond)
addBond0 in class MoleculeGraphbond - the bond referenceprotected void regenCtabs()
regenCtabs in class MoleculeGraphprotected void fuse0(MoleculeGraph g, boolean check)
fuse0 in class MoleculeGraphg - the graphcheck - true if a containment check should be performed to ensure that
only those atoms and bonds are added that are not already elements -
false if the graph is known to be disjoint from this graph and
this check can be safely skippedpublic void transform(CTransform3D t)
transform in interface MTransformabletransform in class MoleculeGrapht - the transformation matrixpublic void clonecopy(MoleculeGraph graph)
clonecopy in class MoleculeGraphgraph - the target graphprotected boolean clonecopyMoleculeGraphWithoutSgroups(int[] iatoms,
MolBond[] cbonds,
int nb,
MoleculeGraph g)
clonecopyMoleculeGraphWithoutSgroups in class MoleculeGraphiatoms - array of atoms indices to copycbonds - array of bonds to copy
or null to copy bonds in cbonds onlynb - number of bondsg - the target graphfalse if the bonds array contains all bond end
points, true if there is at least one external
bondpublic SelectionMolecule clone()
clone in class MoleculeGraphprotected boolean isGrinvCCValid()
isGrinvCCValid in class MoleculeGraphfalseprotected void checkBondConsistency()
checkBondConsistency in class MoleculeGraphprotected chemaxon.struc.gearch.MoleculeGraphGearch createGearch()
createGearch in class MoleculeGraphprotected final int addAtomWithoutChangingIt(MolAtom atom)
addAtomWithoutChangingIt in class MoleculeGraphatom - the atom reference