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

SliceRepresentation

Extends:

Representation → SliceRepresentation

Slice representation

Constructor Summary

Public Constructor
public

Create Slice 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

Public Constructors

public constructor(surface: Volume, viewer: Viewer, params: SliceRepresentationParameters) source

Create Slice representation object

Params:

NameTypeAttributeDescription
surface Volume

the volume to be represented

viewer Viewer

a viewer object

params SliceRepresentationParameters

slice representation parameters