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

CartoonRepresentation

Extends:

RepresentationStructureRepresentation → CartoonRepresentation

Cartoon representation. Show a thick ribbon that smoothly connecting backbone atoms in polymers.

Name: cartoon

Example:

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

Constructor Summary

Public Constructor
public

Create Cartoon representation object

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: StructureRepresentationParameters) source

Create Cartoon representation object

Override:

StructureRepresentation#constructor

Params:

NameTypeAttributeDescription
structure Structure

the structure to be represented

viewer Viewer

a viewer object

params StructureRepresentationParameters

representation parameters