addDisplacementMarker

open fun addDisplacementMarker(callback: MarkerCallback): T

Add a displacement marker at the current displacement to run a callback at that displacement.

Return

The builder

Parameters

callback

The callback to run


open fun addDisplacementMarker(displacementInches: Double, callback: MarkerCallback): T
open fun addDisplacementMarker(displacementInches: DisplacementProducer, callback: MarkerCallback): T

Add a displacement marker at a given displacement to run a callback at that displacement.

Return

The builder

Parameters

displacementInches

The displacement to run the callback (inches)

callback

The callback to run


open fun addDisplacementMarker(displacement: Double, inUnit: Distance, callback: MarkerCallback): T
open fun addDisplacementMarker(displacement: DisplacementProducer, inUnit: Distance, callback: MarkerCallback): T

Add a displacement marker at a given displacement to run a callback at that displacement.

Return

The builder

Parameters

displacement

The displacement to run the callback

inUnit

The unit of the displacement (will be converted to inches)

callback

The callback to run


open fun addDisplacementMarker(scale: Double, offsetInches: Double, callback: MarkerCallback): T

Add a displacement marker at a given displacement to run a callback at that displacement.

Return

The builder

Parameters

scale

A multiplicative scale to apply to the displacement

offsetInches

The offset to add to the displacement (inches)

callback

The callback to run


open fun addDisplacementMarker(scale: Double, offset: Double, inUnit: Distance, callback: MarkerCallback): T

Add a displacement marker at a given displacement to run a callback at that displacement.

Return

The builder

Parameters

scale

A multiplicative scale to apply to the displacement

offset

The offset to add to the displacement

inUnit

The unit of the offset (will be converted to inches)

callback

The callback to run