import DistanceRepresentation from 'ngl/src/representation/distance-representation.js'
DistanceRepresentation
Extends:
Distance representation
Constructor Summary
Public Constructor | ||
public |
constructor(structure: Structure, viewer: Viewer, params: DistanceRepresentationParameters) Create Distance representation object |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Inherited Summary
From class Representation | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
Counter that keeps track of tasks related to the creation of the representation, including surface calculations. |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
private |
|
|
private |
|
|
public |
attach() |
|
public |
build() |
|
public |
clear() |
|
public |
create() |
|
public |
dispose() |
|
public |
|
|
public |
|
|
public |
|
|
public |
init() |
|
public |
make() |
|
public |
setColor() |
|
public |
setParameters(params: RepresentationParameters, what: Object, rebuild: Boolean): Representation Set the visibility of the representation |
|
public |
setVisibility(value: Boolean, noRenderRequest: Boolean): Representation Set the visibility of the representation |
|
public |
update() |
|
public |
|
From class StructureRepresentation | ||
public get |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
private |
|
|
private |
|
|
public |
attach() |
|
public |
clear() |
|
public |
create() |
|
public |
|
|
public |
dispose() |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
init() |
|
public |
setParameters(params: StructureRepresentationParameters, what: Object, rebuild: Boolean): StructureRepresentation Set representation parameters |
|
public |
setSelection(string: String, silent: Boolean): StructureRepresentation Set representation parameters |
|
public |
update() |
|
public |
|
From class MeasurementRepresentation | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
init() |
|
public |
|
|
public |
|
|
public |
update() |
|
public |
|
Public Constructors
public constructor(structure: Structure, viewer: Viewer, params: DistanceRepresentationParameters) source
Create Distance representation object
Params:
Name | Type | Attribute | Description |
structure | Structure | the structure to be represented |
|
viewer | Viewer | a viewer object |
|
params | DistanceRepresentationParameters | distance representation parameters |
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();
} );