API / geotoolkit / seismic / data / SeismicData / SeismicData
data.SeismicData.SeismicData
Defines an interface for seismic data source/source of traces.
It implements methods like getMetaData() which returns SeismicMetaData and
Select() function to select and load relevant seismic trace sections .
↳
SeismicData
Constructors
Methods
Methods
▸ dispose(): void
Dispose.
void
▸ getClassName(): string
string
▸ Abstract getMetaData(): SeismicMetaData
Returns seismic meta data information
▸ getTimeStamp(): number
Return the value to indicate if data was changed
number
▸ 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
EventDispatcher.hasEventListener
▸ invalidate(rect?): void
Invalidate data and notify that data is changed
| Name | Type | Description |
|---|---|---|
Optional rect | Rect | optional area of tracers and samples to invalidate. It is not supported now |
void
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ notify<E>(type, source, args?): SeismicData
Notify listeners
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | event types |
source | SeismicData | of the event |
Optional args | EventMap[E] | arguments of the event |
this
▸ off<E>(type?, callback?): SeismicData
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 |
|---|---|---|
Optional type | E | type of the event |
Optional callback | (eventType: E, sender: SeismicData, args: EventMap[E]) => void | function to be called |
this
▸ on<E>(type, callback): SeismicData
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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event or property |
callback | (eventType: E, sender: SeismicData, args: EventMap[E]) => void | to be called |
this
▸ Abstract select(query, callback, validationCallback?): void
Select seismic trace sections and call "callback" method then section is loaded.
| Name | Type | Description |
|---|---|---|
query | SelectQuery | a query in JSON format. Should contain parameters relevant to the trace, such as "from", "to", "headers", and "samples" |
callback | SelectCallback | callback to be called then section is loaded. This method has QueryResult as parameter |
Optional validationCallback | ValidationCallback | Callback function which is executed before data requested. |
void
▸ setSilent(bool): SeismicData
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ Protected updateTimeStamp(): void
Update time stamp
void
▸ Static getClassName(): string
string