|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.struc.CGraph
chemaxon.struc.MoleculeGraph
chemaxon.struc.SelectionMolecule
public class SelectionMolecule
A selection object derived from Molecule's ancestor.
| Field Summary |
|---|
| Fields inherited from class chemaxon.struc.CGraph |
|---|
btab, CACHE_REMOVE_ALL, CACHE_REMOVE_CACHEMEMORY, cacheMemory, cssr, ctab, edgeCount, edges, fragIds, grinv, grinvCC, grinvOptions, INITIAL_CAPACITY, nFrags, nGrinv, nodeCount, nodes, parentGraph, RMCLEANUP_ALL, RMCLEANUP_EDGES, RMCLEANUP_FIXCOMPONENT, RMCLEANUP_NONE, sssr, sssr2idx, sssrl2idx, superGraph |
| Fields inherited from interface chemaxon.struc.ReadableMolecule |
|---|
HS_S, HS_SP, HS_SP2, HS_SP3, HS_UNKNOWN |
| Fields inherited from interface chemaxon.struc.StereoConstants |
|---|
ATOMSTEREO_EITHER, ATOMSTEREO_MASK, ATOMSTEREO_NONE, ATOMSTEREO_SPECIFIC, CHIRALITY_MASK, CHIRALITY_R, CHIRALITY_S, CHIRALITYSUPPORT_ALL, CHIRALITYSUPPORT_NONE, CHIRALITYSUPPORT_SELECTED, CIS, CTUMASK, CTUNKNOWN, CTUNSPEC, DBS_ALL, DBS_MARKED, DBS_NONE, PARITY_EITHER, PARITY_EVEN, PARITY_MASK, PARITY_ODD, PARITY_UNSPEC, STGRP_ABS, STGRP_AND, STGRP_NONE, STGRP_OR, TRANS |
| Constructor Summary | |
|---|---|
SelectionMolecule()
|
|
| Method Summary | |
|---|---|
void |
add(CEdge edge)
Adds an edge to the graph. |
protected void |
addEdge0(CEdge edge)
Adds an edge. |
protected void |
addNode0(CNode node)
Adds a node. |
protected void |
checkEdgeConsistency()
Empty implementation, edge consistency is not checked in case of selections. |
boolean |
clean(int dim,
java.lang.String opts,
MProgressMonitor pmon)
Calculates atom coordinates. |
java.lang.Object |
clone()
Create a clone of the selection. |
void |
clonecopy(CGraph graph)
Copies the clones of nodes and edges of this graph to another one. |
protected boolean |
clonecopyCGraphWithoutSgroups(int[] iatoms,
CEdge[] cedges,
int nb,
CGraph g)
Copies the specified atoms and bonds of this graph to another one. |
protected void |
fuse0(CGraph g,
boolean check)
Adds those nodes and edges 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 |
isRealNodeParent()
Selection molecules are not real node parents. |
protected void |
regenCtabs()
Regenerates connection table and edge table. |
protected void |
regenFragIds()
Searches the disconnected fragments. |
void |
removeEdge(CEdge edge)
Removes an edge by reference. |
void |
removeEdge(int i)
Removes an edge from the graph. |
void |
removeNode(CNode node)
Removes a node and its edges. |
void |
removeNode(int i)
Removes a node and its edges from the graph. |
void |
setEdge(int i,
CEdge edge)
Sets the edge at the specified index. |
protected void |
setNode0(int i,
CNode node)
Sets the node at the specified index. |
void |
swapNodes(int i,
int j)
Swap two nodes. |
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 isRealNodeParent()
isRealNodeParent in class CGraph
public void setEdge(int i,
CEdge edge)
setEdge in class MoleculeGraphi - edge indexedge - the edge referencepublic void add(CEdge edge)
add in class CGraphedge - the edge object
public void swapNodes(int i,
int j)
i - index of the first nodej - index of the second nodepublic void removeNode(CNode node)
removeNode in class CGraphnode - the nodepublic void removeNode(int i)
removeNode in class CGraphi - the node indexpublic void removeEdge(CEdge edge)
removeEdge in class CGraphedge - the edgepublic void removeEdge(int i)
removeEdge in class CGraphi - the edge indexprotected void addNode0(CNode node)
addNode0 in class CGraphnode - the node reference
protected void setNode0(int i,
CNode node)
setNode0 in class MoleculeGraphi - node indexnode - new node referenceprotected void addEdge0(CEdge edge)
addEdge0 in class CGraphedge - the edge referenceprotected void regenCtabs()
regenCtabs in class CGraph
protected void fuse0(CGraph g,
boolean check)
fuse0 in class MoleculeGraphg - the graphcheck - true if a containment check should be performed to ensure that
only those nodes and edges 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(CGraph graph)
clonecopy in class MoleculeGraphgraph - the target graph
protected boolean clonecopyCGraphWithoutSgroups(int[] iatoms,
CEdge[] cedges,
int nb,
CGraph g)
clonecopyCGraphWithoutSgroups in class MoleculeGraphiatoms - array of atoms indices to copycedges - array of bonds to copy
or null to copy edges in cnodes onlynb - number of edgesg - the target graph
false if the nodes array contains all edge end
points, true if there is at least one external
bondpublic java.lang.Object clone()
clone in class MoleculeGraph
public boolean clean(int dim,
java.lang.String opts,
MProgressMonitor pmon)
clean in class MoleculeGraphdim - dimensionsopts - cleaning optionspmon - progress monitor or null
java.lang.SecurityException - cannot load module because
of a security problem (firewall)MoleculeGraph.clean(int, java.lang.String)protected final void regenFragIds()
regenFragIds in class CGraphprotected boolean isGrinvCCValid()
isGrinvCCValid in class CGraphfalseprotected void checkEdgeConsistency()
checkEdgeConsistency in class CGraph
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||