Last updated

API / geotoolkit / seismic / data / snap / SnapPicker / SnapPicker

Class: 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.

Table of contents

Constructors
Methods

Contents

Constructors

new SnapPicker()

new SnapPicker()

Methods

pickSample

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).

Parameters

Name Type Description
xnumberx coordinate for picking sample (in seismic model space)
ynumbery coordinate for picking sample (in seismic model space)
strategystring | SnapPickingStrategyused for picking
pipelineSeismicPipelineseismic pipeline
targetanyinstance of callback owner
callbackpickSampleCallbackThis function called when data is ready. It accepts trace number, trace header, sample index, sample value

Returns

void


pickTraceSampleIndex

Static pickTraceSampleIndex(traceIndex, sampleIndex, strategy, pipeline, target, callback): void

Pick sample at specified trace and sample index

Parameters

Name Type Description
traceIndexnumbertrace
sampleIndexnumberindex of the sample
strategySnapPickingStrategystrategy used for picking
pipelineSeismicPipelineseismic pipeline
targetanyinstance of callback owner
callbackpickSampleCallbackThis function is called when data is ready. It accepts trace number, trace header, sample index, sample value

Returns

void