Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DistanceRepresentation

Distance representation

Hierarchy

Index

Constructors

constructor

  • Create Distance representation object

    example

    stage.loadFile( "rcsb://1crn" ).then( function( o ){ o.addRepresentation( "cartoon" ); // either give selections (uses first selected atom) ... var atomPair = [ [ "1.CA", "4.CA" ], [ "7.CA", "13.CA" ] ]; // or atom indices var atomPair = [ [ 8, 28 ], [ 173, 121 ] ]; o.addRepresentation( "distance", { atomPair: atomPair } ); stage.autoView(); } );

    Parameters

    • structure: any

      the structure to be represented

    • viewer: any

      a viewer object

    • params: any

      distance representation parameters

    Returns DistanceRepresentation

Accessors

defaultScale

  • get defaultScale(): object

Methods

attach

  • attach(callback: any): void

build

  • build(updateWhat: any): void

clear

  • clear(): void

create

  • create(): void

createData

  • createData(sview: any): undefined | object

dispose

  • dispose(): void

getAssembly

  • getAssembly(): any

getAtomParams

  • getAtomParams(what: any, params: any): any

getAtomRadius

  • getAtomRadius(): number

getBondData

  • getBondData(sview: any, what: any, params: any): any

getBondParams

  • getBondParams(what: any, params: any): any

getBufferParams

  • getBufferParams(p: any): any

getColorParams

  • getColorParams(): any

getDistanceData

  • getDistanceData(sview: any, atomPair: any): object

getLabelBufferParams

  • getLabelBufferParams(params: any): any

getParameters

  • getParameters(): object & object

getQuality

  • getQuality(): "high" | "medium" | "low"

getRadiusParams

  • getRadiusParams(): object

init

  • init(params: any): void

make

  • make(updateWhat: any, callback: any): void

setColor

  • setColor(value: any, p: any): this

setParameters

  • setParameters(params: any): this

setRadius

  • setRadius(value: any, p: any): this

setSelection

setVisibility

  • setVisibility(value: any, noRenderRequest: any): this

update

  • update(what: any): void

updateData

  • updateData(what: any, data: any): void

updateParameters

  • updateParameters(bufferParams?: object, what: any): void

Generated using TypeDoc