BondImage

lib/model.js~ BondImage

An 'image' of a single bond in the model. This represents the connection between two specific AtomImages

Constructor

# new BondImage(model, im1, im2)

Parameters:
Name Type Description
model Model

The model from which the image is from

im1 AtomImage

AtomImage from which the bond starts

im2 AtomImage

AtomImage to which the bond ends

Source:

Members

# (readonly) atom1 :AtomImage

First atom connected to this bond

Type:
  • AtomImage
Source:

# (readonly) atom2 :AtomImage

Second atom connected to this bond

Type:
  • AtomImage
Source:

# color1 :int

First color of the bond

Type:
  • int
Source:

# color2 :int

Second color of the bond

Type:
  • int
Source:

# (readonly) key :String

A unique string key used to quickly reference the bond

Type:
  • String
Source:

# (readonly) length :float

Bond length in Angstroms

Type:
  • float
Source:

# (readonly) mesh :AtomMesh

Mesh corresponding to this bond image

Type:
  • AtomMesh
Source:

# (readonly) model :Model

Model this bond belongs to

Type:
  • Model
Source:

# opacity1 :float

First opacity of the bond

Type:
  • float
Source:

# opacity2 :float

Second opacity of the bond

Type:
  • float
Source:

# radius :float

Radius of the bond

Type:
  • float
Source:

# (readonly) renderer :Renderer

Renderer used by this bond

Type:
  • Renderer
Source:

# visible :bool

Whether the bond is visible

Type:
  • bool
Source: