Class: ConnectorDrawUtils

Kekule.Render. ConnectorDrawUtils

new ConnectorDrawUtils()

Help methods to draw connector (usually a bond).
Source:

Methods

(static) getBondRender3DTypes(bond) → {Int}

Get suitable 3D render type of a bond.
Parameters:
Name Type Description
bond Kekule.Bond
Source:
Returns:
Type
Int

(static) getConnectorRender3DType(connector, renderMode) → {Int}

Get 3D render type of a connector. If connector is a bond, this function will return the same result as Kekule.Render.ConnectorDrawUtils.getBondRender3DTypes, otherwise a default type will be returned.
Parameters:
Name Type Description
connector Kekule.ChemStructureConnector
renderMode Int Value from Kekule.Render.Bond3DRenderMode.
Source:
Returns:
Type
Int

(static) getDefBondRenderType(bond) → {Int}

Get default render type of a bond.
Parameters:
Name Type Description
bond Kekule.Bond
Source:
Returns:
Type
Int

(static) getDefConnectorRenderType(connector) → {Int}

Get default render type of a connector.
Parameters:
Name Type Description
connector Kekule.ChemStructureConnector
Source:
Returns:
Type
Int

(static) getPossibleBondRenderTypes(bond) → {Array}

Get possible render type of a bond.
Parameters:
Name Type Description
bond Kekule.Bond
Source:
Returns:
A set of possible values from Kekule.Render.BondRenderType.
Type
Array

(static) getPossibleConnectorRenderTypes(connector) → {Array}

Get possible render type of a connector. If connector is a bond, this function will return the same result as Kekule.Render.ConnectorDrawUtils.getPossibleBondRenderType, otherwise a default set will be returned.
Parameters:
Name Type Description
connector Kekule.ChemStructureConnector
Source:
Returns:
A set of possible values from Kekule.Render.BondRenderType.
Type
Array