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

Representation

Representation object

Constructor Summary

Public Constructor
public

Member Summary

Public Members
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 Members
private
private

Method Summary

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

Public Constructors

public constructor() source

Public Members

public [name] source

public clipCenter source

public clipNear source

public clipRadius source

public colorDomain source

public colorMode source

public colorReverse source

public colorScale source

public colorScheme source

public colorValue source

public depthWrite source

public diffuse source

public disableImpostor source

public disablePicking source

public disposed source

public flatShaded source

public lazy source

public lazyProps source

public matrix source

public metalness source

public opacity source

public openEnded source

public parameters source

public quality source

public radialSegments source

public roughness source

public side source

public sphereDetail source

public tasks: Counter source

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

public type source

public viewer: Viewer source

public visible source

public wireframe source

Private Members

private bufferList: Array source

private queue: Queue source

Public Methods

public attach() source

public build() source

public clear() source

public create() source

public dispose() source

public getBufferParams() source

public getColorParams() source

public getParameters() source

public init() source

public make() source

public setColor() source

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

public update() source

public updateParameters() source