-
appendLinkedConnector(connector)
-
Link a connector to this node.
Parameters:
- Inherited From:
- Source:
-
clearStructureFlags()
-
Clear all flags of structure object that should be changed when structure is changed.
Descendants may override this method.
- Inherited From:
- Source:
-
compareStructure(targetObj, options) → {Int}
-
Explicit set compare method to chem structure and compare to targetObj.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Int
-
equalStructure(targetObj, options) → {Bool}
-
Check if this object and targetObj has equivalent chem structure.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Bool
-
getAbsBaseCoord(coordMode, allowCoordBorrow) → {Hash}
-
Get absolute center coord of object.
Parameters:
Name |
Type |
Description |
coordMode |
Int
|
|
allowCoordBorrow |
Bool
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
Hash
-
getBaseCoord(coordMode, allowCoordBorrow) → {Hash}
-
Get center coord of object.
Parameters:
Name |
Type |
Description |
coordMode |
Int
|
|
allowCoordBorrow |
Bool
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
Hash
-
getBelongedRingMinSize() → {Int}
-
Returns the min size of all belonged rings.
- Inherited From:
- Source:
Returns:
Min ring node count. If the object is not belonged to any ring, null will be returned.
-
Type
-
Int
-
getBelongedSssrRings() → {Array}
-
Returns SSSR ring that this object belonged.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
-
Get connector between this object and another object.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.ChemStructureConnector
-
getContainerBox(coordMode, allowCoordBorrow) → {Hash}
-
Calculate the box to contain the object.
Descendants may override this method.
Parameters:
Name |
Type |
Description |
coordMode |
Int
|
Determine to calculate 2D or 3D box. Value from Kekule.CoordMode. |
allowCoordBorrow |
Bool
|
|
- Inherited From:
- Source:
Returns:
Box information. {x1, y1, z1, x2, y2, z2} (in 2D mode z1 and z2 will not be set).
-
Type
-
Hash
-
getContainerBox2D(allowCoordBorrow) → {Hash}
-
Calculate the 2D box to contain the object.
Parameters:
Name |
Type |
Description |
allowCoordBorrow |
Bool
|
|
- Inherited From:
- Source:
Returns:
Box information. {x1, y1, z1, x2, y2, z2} (in 2D mode z1 and z2 will not be set).
-
Type
-
Hash
-
getContainerBox3D(allowCoordBorrow) → {Hash}
-
Calculate the 3D box to contain the object.
Parameters:
Name |
Type |
Description |
allowCoordBorrow |
Bool
|
|
- Inherited From:
- Source:
Returns:
Box information. {x1, y1, z1, x2, y2, z2} (in 2D mode z1 and z2 will not be set).
-
Type
-
Hash
-
getCoordDeterminateObjects() → {Array}
-
If this object determinate other object's coord, this method should returns them.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
-
Returns self or child object that can directly linked to a connector.
For atom or other simple chem objetc, this function should just returns self,
for structure fragment, this function need to returns an anchor node.
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.ChemStructureObject
-
-
Get linked connector object at index.
Parameters:
Name |
Type |
Description |
index |
Int
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.ChemStructureConnector
-
getLinkedConnectorCount() → {Int}
-
Return count of linkedConnectors.
- Inherited From:
- Source:
Returns:
-
Type
-
Int
-
getLinkedHydrogenAtoms() → {Array}
-
Returns linked hydrogen atoms.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
getLinkedNonHydrogenConnectors() → {Array}
-
Returns connectors that connected to a non hydrogen node.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
getLinkedNonHydrogenObjs() → {Array}
-
Returns linked objects except hydrogen atoms.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
getLinkedObjsOnConnector() → {Array}
-
Returns other objects connected to this one through connector.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
-
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.StructureFragment
-
-
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.StructureFragment
-
indexOfLinkedConnector(connector) → {Int}
-
Returns index of connector connected to node.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Int
-
isCoordDependent() → {Bool}
-
Whether the coord of chem object is calculated from other object (like connector).
- Inherited From:
- Source:
Returns:
-
Type
-
Bool
-
move(delta, coordMode) → {Hash}
-
Move node by delta.
Parameters:
Name |
Type |
Description |
delta |
Hash
|
|
coordMode |
Int
|
|
- Inherited From:
- Source:
Returns:
New coord after moving.
-
Type
-
Hash
-
move2D(delta) → {Hash}
-
Move node 2D coord by delta.
Parameters:
Name |
Type |
Description |
delta |
Hash
|
|
- Inherited From:
- Source:
Returns:
New coord after moving.
-
Type
-
Hash
-
move3D(delta) → {Hash}
-
Move node 3D coord by delta.
Parameters:
Name |
Type |
Description |
delta |
Hash
|
|
- Inherited From:
- Source:
Returns:
New coord after moving.
-
Type
-
Hash
-
removeLinkedConnector(connector)
-
Remove a connector in linkedContainer.
Parameters:
- Inherited From:
- Source:
-
removeLinkedConnectorAt(index)
-
Remove connector at index of linkedConnectors.
Parameters:
Name |
Type |
Description |
index |
Int
|
|
- Inherited From:
- Source:
-
removeThisFromLinkedConnector()
-
Remove this node from all linked connectors.
Ths method should be called before a object is removed from a structure.
- Inherited From:
- Source: