import SurfaceRepresentation from 'ngl/src/representation/surface-representation.js'
Constructor Summary
Public Constructor | ||
public |
constructor(surface: Surface | Volume, viewer: Viewer, params: SurfaceRepresentationParameters) Create Surface representation object |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
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 |
dispose() |
|
public |
|
|
public |
init() |
|
public |
prepare() |
|
public |
setParameters(params: SurfaceRepresentationParameters, what: Object, rebuild: Boolean): SurfaceRepresentation 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 |
dispose() |
|
public |
|
|
public |
|
|
public |
|
|
public |
init() |
|
public |
make() |
|
public |
setColor() |
|
public |
setParameters(params: RepresentationParameters, what: Object, rebuild: Boolean): Representation 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#constructorParams:
Name | Type | Attribute | Description |
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 smooth source
public surface source
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 prepare() source
public setParameters(params: SurfaceRepresentationParameters, what: Object, rebuild: Boolean): SurfaceRepresentation source
Set representation parameters
Override:
Representation#setParametersParams:
Name | Type | Attribute | Description |
params | SurfaceRepresentationParameters | surface parameter object |
|
what | Object |
|
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 |
|
whether or not to rebuild the representation |