|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.struc.MoleculeGraph
chemaxon.struc.SelectionMolecule
public class SelectionMolecule
A selection object which can contain atoms and bonds without real parent relationship (the real parent of atoms and bonds is another MoleculeGraph ancestor).
| Field Summary |
|---|
| Fields inherited from interface chemaxon.struc.StereoConstants |
|---|
ANTI, 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_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 Summary | |
|---|---|
SelectionMolecule()
|
|
| Method Summary | |
|---|---|
void |
add(MolBond bond)
Adds a bond to the graph. |
protected void |
addAtom0(MolAtom atom)
Adds an atom. |
protected void |
addBond0(MolBond bond)
Adds a bond. |
protected void |
checkBondConsistency()
Empty implementation, bond consistency is not checked in case of selections. |
java.lang.Object |
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. |
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)
Sets the bond at the specified index. |
void |
swapAtoms(int i,
int j)
Swap two atoms. |
void |
transform(CTransform3D t)
Apply a transformation matrix to the atomic coordinates. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelectionMolecule()
| Method Detail |
|---|
protected boolean isRealAtomParent()
isRealAtomParent in class MoleculeGraph
public void setBond(int i,
MolBond bond)
setBond in class MoleculeGraphi - bond indexbond - the bond referencepublic void add(MolBond bond)
add in class MoleculeGraphbond - the bond object
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 reference
protected 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 MoleculeGraph
protected 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 graph
protected 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 graph
false if the bonds array contains all bond end
points, true if there is at least one external
bondpublic java.lang.Object 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 MoleculeGraph
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||