NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import BallAndStickRepresentation from 'ngl/src/representation/ballandstick-representation.js'
public class | source

BallAndStickRepresentation

Extends:

RepresentationStructureRepresentation → BallAndStickRepresentation

Indirect Subclass:

HyperballRepresentation

Ball And Stick representation. Show atoms as spheres and bonds as cylinders.

Name: ball+stick

Example:

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

Constructor Summary

Public Constructor
public

Create Ball And Stick representation object

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
public

Method Summary

Public Methods
public
public
public
public
public
public

init()

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

Public Constructors

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

Create Ball And Stick representation object

Override:

StructureRepresentation#constructor

Params:

NameTypeAttributeDescription
structure Structure

the structure to be represented

viewer Viewer

a viewer object

params BallAndStickRepresentationParameters

ball and stick representation parameters

Public Members

public aspectRatio source

public bondScale source

public bondSpacing source

public cylinderOnly source

public lineBuffer source

public lineOnly source

public linewidth source

public multipleBond source

public parameters source

Override:

StructureRepresentation#parameters

public type source

Override:

StructureRepresentation#type

Public Methods

public createData() source

Override:

StructureRepresentation#createData

public getAtomData() source

public getAtomParams() source

Override:

StructureRepresentation#getAtomParams

public getBondData() source

public getBondParams() source

Override:

StructureRepresentation#getBondParams

public init() source

Override:

StructureRepresentation#init

public setParameters() source

Set representation parameters

Override:

StructureRepresentation#setParameters

public updateData() source

Override:

StructureRepresentation#updateData