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

BaseRepresentation

Base representation. Show cylinders for RNA/DNA ladders.

Name: base

Example:

stage.loadFile( "rcsb://1d66" ).then( function( o ){
    o.addRepresentation( "cartoon", { sele: "nucleic" } );
    o.addRepresentation( "base", { color: "resname" } );
    o.autoView( "nucleic" );
} );

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