NGL@0.10.4 Home Manual Reference Source GalleryRepository
import Representation from 'ngl/src/representation/representation.js'
public interface | source

Representation

Representation object

Member Summary

Public Members
public

tasks: *

Counter that keeps track of tasks related to the creation of the representation, including surface calculations.

public

viewer: *

Method Summary

Public Methods
public

Set the visibility of the representation

public

setVisibility(value: Boolean, noRenderRequest: Boolean): Representation

Set the visibility of the representation

Public Members

public tasks: * source

Counter that keeps track of tasks related to the creation of the representation, including surface calculations.

public viewer: * source

Public Methods

public setParameters(params: RepresentationParameters, what: Object, rebuild: Boolean): Representation source

Set the visibility of the representation

Params:

NameTypeAttributeDescription
params RepresentationParameters

parameters object

what Object
  • optional

buffer data attributes to be updated, note that this needs to be implemented in the derived classes. Generally it allows more fine-grained control over updating than forcing a rebuild.

what.position Boolean

update position data

what.color Boolean

update color data

rebuild Boolean
  • optional

whether or not to rebuild the representation

Return:

Representation

this object

public setVisibility(value: Boolean, noRenderRequest: Boolean): Representation source

Set the visibility of the representation

Params:

NameTypeAttributeDescription
value Boolean

visibility flag

noRenderRequest Boolean
  • optional

whether or not to request a re-render from the viewer

Return:

Representation

this object