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 |
Members
(readonly) atom1 :AtomImage
First atom connected to this bond
Type:
- AtomImage
(readonly) atom2 :AtomImage
Second atom connected to this bond
Type:
- AtomImage
color1 :int
First color of the bond
Type:
- int
color2 :int
Second color of the bond
Type:
- int
(readonly) key :String
A unique string key used to quickly reference the bond
Type:
- String
(readonly) length :float
Bond length in Angstroms
Type:
- float
(readonly) mesh :AtomMesh
Mesh corresponding to this bond image
Type:
- AtomMesh
(readonly) model :Model
Model this bond belongs to
Type:
- Model
opacity1 :float
First opacity of the bond
Type:
- float
opacity2 :float
Second opacity of the bond
Type:
- float
radius :float
Radius of the bond
Type:
- float
(readonly) renderer :Renderer
Renderer used by this bond
Type:
- Renderer
visible :bool
Whether the bond is visible
Type:
- bool