NGL@0.10.4 Home Manual Reference Source GalleryRepository
import StructureView from 'ngl/src/structure/structure-view.js'
public class | source

StructureView

Extends:

Structure → StructureView

View on the structure, restricted to the selection

Constructor Summary

Public Constructor
public

constructor(structure: Structure, selection: Selection)

Method Summary

Public Methods
public

Not implemented

public

Updates atomSet, bondSet, atomSetCache, atomCount, bondCount, boundingBox, center.

Inherited Summary

From class Structure
public

atomMap: AtomMap

public

bondHash: BondHash

public
public
public
public
public
public

residueMap: ResidueMap

public

signals: {refreshed: Signal}

public

spatialHash: SpatialHash

public
public

validation: Validation

public

Gets the center of the (selected) structure atoms

public

Calls dispose() method of property objects.

public

eachAtom(callback: function(atom: AtomProxy), selection: Selection): undefined

Atom iterator

public

eachBond(callback: function(bond: BondProxy), selection: Selection): undefined

Bond iterator

public

eachChain(callback: function(chain: ChainProxy), selection: Selection): undefined

Chain iterator

public

eachEntity(callback: function(entity: Entity), type: EntityType): undefined

Entity iterator

public

eachModel(callback: function(model: ModelProxy), selection: Selection): undefined

Model iterator

public

eachPolymer(callback: function(polymer: Polymer), selection: Selection): undefined

Polymer iterator

public

eachResidue(callback: function(residue: ResidueProxy), selection: Selection): undefined

Residue iterator

public

eachResidueN(n: Integer, callback: function(residueList: ResidueProxy[])): undefined

Multi-residue iterator

public

Get set of atom around a set of atoms from a selection

public

getBoundingBox(selection: Selection, box: Box3): Vector3

Gets the bounding box of the (selected) structure atoms

public

Get number of unique chainnames

public

Gets the principal axes of the (selected) structure atoms

Public Constructors

public constructor(structure: Structure, selection: Selection) source

Override:

Structure#constructor

Params:

NameTypeAttributeDescription
structure Structure

the structure

selection Selection

the selection

Public Methods

public eachResidueN(): undefined source

Not implemented

Override:

Structure#eachResidueN

Return:

undefined

public refresh(): undefined source

Updates atomSet, bondSet, atomSetCache, atomCount, bondCount, boundingBox, center.

Return:

undefined

Emit:

Structure.signals.refreshed

when refreshed