API / geotoolkit3d / data / seismic / DefaultSeismicLODCalculator / DefaultSeismicLODCalculator
seismic.DefaultSeismicLODCalculator.DefaultSeismicLODCalculator
Default Seismic LOD Calculator.
↳
DefaultSeismicLODCalculator
Constructors
- [new DefaultSeismicLODCalculator(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.seismic.defaultseismiclodcalculator.defaultseismiclodcalculator.md#new defaultseismiclodcalculator(options))
Methods
Constructors
• new DefaultSeismicLODCalculator(options?)
| Name | Type |
|---|---|
Optional options | Options |
AbstractSeismicLODCalculator.constructor
Methods
▸ 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.
| Name | Type |
|---|---|
context | LodContext |
void
AbstractSeismicLODCalculator.computeLod
▸ dispose(): void
Dispose.
void
AbstractSeismicLODCalculator.dispose
▸ getClassName(): string
string
AbstractSeismicLODCalculator.getClassName
▸ hasEventListener(type, callback?): boolean
Check if a list of event listeners for this type contains this listener
| Name | Type | Description |
|---|---|---|
type | string | type of event or property |
Optional callback | Function | to be called, if null, check if any callback is registered |
boolean
AbstractSeismicLODCalculator.hasEventListener
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
AbstractSeismicLODCalculator.isDisposed
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
AbstractSeismicLODCalculator.isSilent
▸ notify<E>(type, source, args?): DefaultSeismicLODCalculator
Notify listeners
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | event types |
source | DefaultSeismicLODCalculator | of the event |
Optional args | EventMap[E] | arguments of the event |
this
AbstractSeismicLODCalculator.notify
▸ off<E>(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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of the event |
callback | (eventType: E, sender: DefaultSeismicLODCalculator, args: EventMap[E]) => void | function to be called |
this
AbstractSeismicLODCalculator.off
▸ on<E>(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>
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event or property |
callback | (eventType: E, sender: DefaultSeismicLODCalculator, args: EventMap[E]) => void | to be called |
this
AbstractSeismicLODCalculator.on
▸ setOptions(options): void
| Name | Type |
|---|---|
options | Options |
void
▸ setSilent(bool): DefaultSeismicLODCalculator
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
AbstractSeismicLODCalculator.setSilent
▸ Static getClassName(): string
string