Last updated

API / geotoolkit3d / scene / seismic / FenceMaterial / FenceMaterial

Class: FenceMaterial

seismic.FenceMaterial.FenceMaterial

A seismic fence material.

The seismic fence material is supposed ot be used in conjunction with FencePanel.
It is responsible for creating and managing the textures required to render a seismic crossection.

To do so, it will create a SeismicPipeline using the given SeismicReader.

The specificity of the FenceMaterial compared to the SliceMaterial is to take into account that the given Reader is made of sections.
This material will render only the section it's supposed to render. (see fenceindex).

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new FenceMaterial(options)

new FenceMaterial(options)

Parameters

Name Type
optionsOptions

Overrides

SliceMaterial.constructor

Methods

dispose

dispose(): void

Dispose method for SliceMaterial. Specifically for disposing of pipeline memory reference

Returns

void

Inherited from

SliceMaterial.dispose


disposeMaterials

disposeMaterials(): void

Dispose Materials

Returns

void

Inherited from

SliceMaterial.disposeMaterials


disposeNewMaterials

disposeNewMaterials(): void

Dispose the Materials used for the next tile render. For internal use only.

Returns

void

Inherited from

SliceMaterial.disposeNewMaterials


disposeOverlayDatas

disposeOverlayDatas(): void

Dispose Overlay Datas

Returns

void

Inherited from

SliceMaterial.disposeOverlayDatas


getClassName

getClassName(): string

Returns

string

Inherited from

SliceMaterial.getClassName


getOpacity

getOpacity(): number

Get the opacity

Returns

number

The opacity

Inherited from

SliceMaterial.getOpacity


getOptions

getOptions(): OptionsBaseOut

Get the SliceMaterial options

Returns

OptionsBaseOut

Inherited from

SliceMaterial.getOptions


getOverlay

getOverlay(): Group<Node>

Returns a group that can be used to render 2D shapes on top of the seismic slice.
The coordinate system of the group is in trace/samples.

Returns

Group<Node>

The overlay group

Inherited from

SliceMaterial.getOverlay


getPipeline

getPipeline(): SeismicPipeline

Get the internal pipeline

Returns

SeismicPipeline

The internal pipeline

Inherited from

SliceMaterial.getPipeline


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

SliceMaterial.hasEventListener


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

SliceMaterial.isDisposed


isSilent

isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

SliceMaterial.isSilent


notify

notify(type, source, args?): FenceMaterial

Notify listeners

Parameters

Name Type Description
typestringevent types
sourceanyof the event
Optional argsanyarguments of the event

Returns

FenceMaterial

this

Inherited from

SliceMaterial.notify


off

off<E>(type?, callback?): FenceMaterial

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: FenceMaterial, args: EventMap[E]) => voidfunction to be called

Returns

FenceMaterial

this

Inherited from

SliceMaterial.off


on

on<E>(type, callback): FenceMaterial

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: FenceMaterial, args: EventMap[E]) => voidto be called

Returns

FenceMaterial

this

Inherited from

SliceMaterial.on


resetTiles

resetTiles(): void

Resets the slice tiles, filling them by the loading color defined by the user. Usually used when updating the slice, such as moving the slice along its axis, thus requiring some time to fetch the new samples and redraw the seismic slice.

Returns

void

Inherited from

SliceMaterial.resetTiles


setLOD

setLOD(lod, minLod?, maxLod?): Promise<void>

Sets level of details if it is enabled

Deprecated

since 4.1, LOD is temporarily unavailable but will be back soon, with a different API.

Parameters

Name Type Description
lodnumberlevel of details. if level is less then current level the current is used
Optional minLodnumberminimum level of details
Optional maxLodnumbermaximum level of details

Returns

Promise<void>

a new generic promise

Inherited from

SliceMaterial.setLOD


setOpacity

setOpacity(value): void

Set opacity property of the slice.

Parameters

Name Type Description
valuenumberthe opacity value from 0 (transparent) to 1 (opaque).

Returns

void

Inherited from

SliceMaterial.setOpacity


setOptions

setOptions(options): FenceMaterial

Set the FenceMaterial options. The main difference with SliceMaterial, is that once the Fence pipeline is generated, it cannot change its data source.

Parameters

Name Type
optionsOptionsBase

Returns

FenceMaterial

Overrides

SliceMaterial.setOptions


setSilent

setSilent(bool): FenceMaterial

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

FenceMaterial

this

Inherited from

SliceMaterial.setSilent


updateLOD

updateLOD(lod): Promise<void>

Manually update this Slice level of detail. For internal use only.

Parameters

Name Type
lodnumber

Returns

Promise<void>

Inherited from

SliceMaterial.updateLOD


getClassName

Static getClassName(): string

Returns

string

Inherited from

SliceMaterial.getClassName