Skip to content

API / geotoolkit3d / data / seismic / DefaultSeismicLODCalculator / DefaultSeismicLODCalculator

Class: DefaultSeismicLODCalculator

seismic.DefaultSeismicLODCalculator.DefaultSeismicLODCalculator

Default Seismic LOD Calculator.

Hierarchy

Table of contents

Constructors
  • [new DefaultSeismicLODCalculator(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.seismic.defaultseismiclodcalculator.defaultseismiclodcalculator.md#new defaultseismiclodcalculator(options))
Methods

Contents

Constructors

new DefaultSeismicLODCalculator(options)

• new DefaultSeismicLODCalculator(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

AbstractSeismicLODCalculator.constructor

Methods

computeLod

▸ computeLod(context): void

Subclasses must implement their own LOD calculation logic and are responsible for applying the resulting LOD level.<br> This method will be called in Volume.beforeRender() if Volume.Options.enablelod is true.

Parameters

Name Type
contextLodContext

Returns

void

Overrides

AbstractSeismicLODCalculator.computeLod


dispose

▸ dispose(): void

Dispose.

Returns

void

Inherited from

AbstractSeismicLODCalculator.dispose


getClassName

▸ getClassName(): string

Returns

string

Inherited from

AbstractSeismicLODCalculator.getClassName


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

AbstractSeismicLODCalculator.hasEventListener


isDisposed

▸ isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

AbstractSeismicLODCalculator.isDisposed


isSilent

▸ isSilent(): boolean

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

Returns

boolean

Inherited from

AbstractSeismicLODCalculator.isSilent


notify

▸ notify<E&gt;(type, source, args?): DefaultSeismicLODCalculator

Notify listeners

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEevent types
sourceDefaultSeismicLODCalculatorof the event
Optional argsEventMap[E]arguments of the event

Returns

DefaultSeismicLODCalculator

this

Overrides

AbstractSeismicLODCalculator.notify


off

▸ off<E&gt;(type, callback): DefaultSeismicLODCalculator

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
typeEtype of the event
callback(eventType: E, sender: DefaultSeismicLODCalculator, args: EventMap[E]) => voidfunction to be called

Returns

DefaultSeismicLODCalculator

this

Overrides

AbstractSeismicLODCalculator.off


on

▸ on<E&gt;(type, callback): DefaultSeismicLODCalculator

Attach listener on event that will be called whenever the specified event is delivered to the target <p> If the callback function is already in the list of event listeners for this target, the function is not added a second time. </p> <p> 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. </p>

Type parameters

NameType
Eextends string

Parameters

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

Returns

DefaultSeismicLODCalculator

this

Overrides

AbstractSeismicLODCalculator.on


setOptions

▸ setOptions(options): void

Parameters

Name Type
optionsOptions

Returns

void


setSilent

▸ setSilent(bool): DefaultSeismicLODCalculator

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

DefaultSeismicLODCalculator

this

Inherited from

AbstractSeismicLODCalculator.setSilent


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AbstractSeismicLODCalculator.getClassName