API / geotoolkit / seismic / data / snap / SnapPicker / SnapPicker
snap.SnapPicker.SnapPicker
This class provides utility function to retrieve a seismic sample from a pipeline at a given coordinate. It will snap to the closest sample center.
Constructors
Methods
▸ Static pickSample(x, y, strategy, pipeline, target, callback): void
Pick sample at specified coordinate
If pipeline is set to be used server-side rendering then this method tries to call pickSample of [IServerSideRenderingProvider](../classes/geotoolkit.seismic.data-3.iserversiderenderingprovider.iserversiderenderingprovider.md).
| Name | Type | Description |
|---|---|---|
x | number | x coordinate for picking sample (in seismic model space) |
y | number | y coordinate for picking sample (in seismic model space) |
strategy | string | SnapPickingStrategy | used for picking |
pipeline | SeismicPipeline | seismic pipeline |
target | any | instance of callback owner |
callback | pickSampleCallback | This function called when data is ready. It accepts trace number, trace header, sample index, sample value |
void
▸ Static pickTraceSampleIndex(traceIndex, sampleIndex, strategy, pipeline, target, callback): void
Pick sample at specified trace and sample index
| Name | Type | Description |
|---|---|---|
traceIndex | number | trace |
sampleIndex | number | index of the sample |
strategy | SnapPickingStrategy | strategy used for picking |
pipeline | SeismicPipeline | seismic pipeline |
target | any | instance of callback owner |
callback | pickSampleCallback | This function is called when data is ready. It accepts trace number, trace header, sample index, sample value |
void