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

LabelRepresentation

Extends:

RepresentationStructureRepresentation → LabelRepresentation

Label representation

Constructor Summary

Public Constructor
public

Create Label 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: LabelRepresentationParameters) source

Create Label representation object

Override:

StructureRepresentation#constructor

Params:

NameTypeAttributeDescription
structure Structure

the structure to be represented

viewer Viewer

a viewer object

params LabelRepresentationParameters

label representation parameters