NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
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 get
public get
public set
public get
public get
public get
public set
public
public
public
public get

Residue count

public get
public get
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
public

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 get atomEnd source

public get atomOffset source

public set chainCount source

public get chainCount source

public get chainEnd source

public get chainOffset source

public set chainOffset source

public chainStore: ChainStore source

public index: Number source

public modelStore: ModelStore source

public get residueCount: Integer source

Residue count

public get residueEnd source

public get residueOffset source

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

public qualifiedName() source

public toObject() source