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

Member Summary

Public Members
public
public
public
public
public
public
public
public

Method Summary

Public Methods
public
public
public

init()

public
public
Private Methods
private

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: 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.linewidth Integer

width of lines

params.lines Boolean

render bonds as lines

params.crosses String

render atoms as crosses: "off", "all" or "lone" (default)

params.crossSize Float

size of cross

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

Public Members

public bondSpacing source

public crossSize source

public crosses source

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

Private Methods

private _crossData() source