NGL@0.10.4 Home Manual Reference Source GalleryRepository
import BackboneRepresentation from 'ngl/src/representation/backbone-representation.js'
public class | source

BackboneRepresentation

Extends:

RepresentationStructureRepresentationBallAndStickRepresentation → BackboneRepresentation

Backbone representation. Show cylinders (or lines) connecting .CA (protein) or .C4'/.C3' (RNA/DNA) of polymers.

Name: backbone

Example:

stage.loadFile( "rcsb://1sfi" ).then( function( o ){
    o.addRepresentation( "backbone" );
    o.autoView();
} );

Constructor Summary

Public Constructor
public

Inherited Summary

From class Representation
public

tasks: *

Counter that keeps track of tasks related to the creation of the representation, including surface calculations.

public

viewer: *

public

Set the visibility of the representation

public

setVisibility(value: Boolean, noRenderRequest: Boolean): Representation

Set the visibility of the representation

From class StructureRepresentation
public
public
public

Set representation parameters

public

Set representation parameters

Public Constructors

public constructor(structure: Structure, viewer: Viewer, params: BallAndStickRepresentationParameters) source

Create Ball And Stick representation object

Override:

BallAndStickRepresentation#constructor

Params:

NameTypeAttributeDescription
structure Structure

the structure object

viewer Viewer

the viewer object

params BallAndStickRepresentationParameters

parameters object