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

Member Summary

Public Members
public
public

Method Summary

Public Methods
public
public
public

init()

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

init()

public

make()

public
public

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

init()

public

Set representation parameters

public

Set representation parameters

public

update()

public
From class BallAndStickRepresentation
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public

init()

public
public

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

Public Members

public parameters source

Override:

BallAndStickRepresentation#parameters

Public Methods

public getAtomData() source

Override:

BallAndStickRepresentation#getAtomData

public getBondData() source

Override:

BallAndStickRepresentation#getBondData

public init() source

Override:

BallAndStickRepresentation#init