NGL@0.10.4 Home Manual Reference Source GalleryRepository
import ModelProxy from 'ngl/src/proxy/model-proxy.js'
public class | source

ModelProxy

Model proxy

Constructor Summary

Public Constructor
public

constructor(structure: Structure, index: Integer)

Member Summary

Public Members
public get

Atom count

public
public
public
public get

Residue count

public
public

Method Summary

Public Methods
public

Clone object

public

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

Atom iterator

public

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

Chain iterator

public

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

Polymer iterator

public

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

Residue iterator

Public Constructors

public constructor(structure: Structure, index: Integer) source

Params:

NameTypeAttributeDescription
structure Structure

the structure

index Integer

the index

Public Members

public get atomCount: Integer source

Atom count

public chainStore: ChainStore source

public index: Number source

public modelStore: ModelStore source

public get residueCount: Integer source

Residue count

public residueStore: ResidueStore source

public structure: Structure source

Public Methods

public clone(): ModelProxy source

Clone object

Return:

ModelProxy

cloned model

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

Atom iterator

Params:

NameTypeAttributeDescription
callback function(atom: AtomProxy)

the callback

selection Selection
  • optional

the selection

Return:

undefined

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

Chain iterator

Params:

NameTypeAttributeDescription
callback function(chain: ChainProxy)

the callback

selection Selection
  • optional

the selection

Return:

undefined

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

Polymer iterator

Params:

NameTypeAttributeDescription
callback function(polymer: Polymer)

the callback

selection Selection
  • optional

the selection

Return:

undefined

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

Residue iterator

Params:

NameTypeAttributeDescription
callback function(residue: ResidueProxy)

the callback

selection Selection
  • optional

the selection

Return:

undefined