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

SurfaceRepresentation

Extends:

Representation → SurfaceRepresentation

Surface representation

Constructor Summary

Public Constructor
public

Create Surface representation object

Member Summary

Public Members
public
public

box

public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
Private Members
private
private
private
private
private
private
private
private

Method Summary

Public Methods
public

attach()

public

create()

public
public
public

init()

public
public

Set representation parameters

public

update()

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

Public Constructors

public constructor(surface: Surface | Volume, viewer: Viewer, params: SurfaceRepresentationParameters) source

Create Surface representation object

Override:

Representation#constructor

Params:

NameTypeAttributeDescription
surface Surface | Volume

the surface or volume to be represented

viewer Viewer

a viewer object

params SurfaceRepresentationParameters

surface representation parameters

Public Members

public background source

public box source

public boxCenter source

public boxSize source

public colorVolume source

public contour source

public isolevel source

public isolevelType source

public negateIsolevel source

public opaqueBack source

public parameters source

Override:

Representation#parameters

public smooth source

public surface source

public type source

Override:

Representation#type

public useWorker source

public volume source

public wrap source

Private Members

private __box source

private __boxCenter source

private __boxSize source

private __contour source

private __isolevel source

private __smooth source

private __wrap source

private _position source

Public Methods

public attach() source

Override:

Representation#attach

public create() source

Override:

Representation#create

public dispose() source

Override:

Representation#dispose

public getColorParams() source

Override:

Representation#getColorParams

public init() source

Override:

Representation#init

public prepare() source

public setParameters(params: SurfaceRepresentationParameters, what: Object, rebuild: Boolean): SurfaceRepresentation source

Set representation parameters

Override:

Representation#setParameters

Params:

NameTypeAttributeDescription
params SurfaceRepresentationParameters

surface parameter 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:

SurfaceRepresentation

this object

public update() source

Override:

Representation#update