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

LineRepresentation

Extends:

RepresentationStructureRepresentation → LineRepresentation

Line representation

Constructor Summary

Public Constructor
public

constructor(structure: Structure, viewer: Viewer, params: RepresentationParameters)

Create Line 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: RepresentationParameters) source

Create Line representation object

Override:

StructureRepresentation#constructor

Params:

NameTypeAttributeDescription
structure Structure

the structure to be represented

viewer Viewer

a viewer object

params RepresentationParameters

representation parameters, plus the properties listed below

params.bondSpacing Float

spacing for multiple bond rendering

params.flatShaded null

not available

params.side null

not available

params.wireframe null

not available

params.roughness null

not available

params.metalness null

not available

params.diffuse null

not available