Last updated

API / geotoolkit / seismic / image / SeismicImage / SeismicImage

Class: SeismicImage

image.SeismicImage.SeismicImage

Defines seismic shape implementation as a rectangular shape to render data from seismic pipeline.
This shape can render seismic as a simple rectangular shape by using the SeismicPipeline. It can be added to any plot/group as a shape.
It will delegate rasterization to the pipeline itself so any configuration relative to the seismic rendering (Like Colormap,Interpolation, etc) should be done directly on the pipeline.
Seismic Map Image tutorial demonstrates the use of seismic image in the toolkit.

Hierarchy

Table of contents

Constructors
[new SeismicImage(options)](/solutions/geotoolkit/apis/classes/geotoolkit.seismic.image.seismicimage.seismicimage.md#new seismicimage(options))[new SeismicImage(pipeline, rect)](/solutions/geotoolkit/apis/classes/geotoolkit.seismic.image.seismicimage.seismicimage.md#new seismicimage(pipeline, rect))[new SeismicImage(pipeline, x1, y1, x2, y2)](/solutions/geotoolkit/apis/classes/geotoolkit.seismic.image.seismicimage.seismicimage.md#new seismicimage(pipeline, x1, y1, x2, y2))
Methods
addCssClassaddInvalidateHandlerapplyOpacity
applyResponsiveStylecheckCollisionclone
connectStylecopyConstructordisconnectStyle
disposedisposeBackgroundManagerenableEventPropagation
executefiltergetAnimationStyle
getBoundsgetCenterXgetCenterY
getClassNamegetClipStylegetCollectPerformanceInformation
getContentsTransformgetCssgetCssClass
getCssClassesgetCssTransformgetFillStyle
getHeightgetIdgetImageToBoundsTransform
getInvalidateMethodgetLayoutStylegetLineStyle
getLocalTransformgetMarginsStylegetModelArea
getModelLimitsgetNamegetOpacity
getOpacityBlendModegetOptionsgetParent
getPipelinegetPropertiesgetProperty
getPropertyKeysgetRenderingFiltergetResponsiveStyle
getRootgetScaleOptionsgetScaleScrollStrategy
getSceneTransformgetTaggetTimeToWaitChanges
getVisiblegetVisibleModelLimitsgetWidth
getWorldTransformgetXgetY
getZIndexhasCssClasshasEventListener
invalidateinvalidateLayoutinvalidateParent
isDisposedisEventPropagationEnabledisNotificationEnabled
isSelectableisSilentnotify
offononAllTilesRendered
onParentChangedonRectChangedonStartTilesLoading
onVisibilityChangedpostRenderingpreRendering
registerAnimationStyleremoveCssClassremoveInvalidateHandler
renderrenderAsyncrotate
scalesetAnimationStylesetBounds
setClipStylesetCollectPerformanceInformationsetCss
setCssClasssetCssTransformsetFillStyle
setIdsetLayoutStylesetLineStyle
setLocalTransformsetMarginsStylesetModelLimits
setNamesetNotificationsetOpacity
setOptionssetPipelinesetProperties
setPropertysetRectsetRenderingFilter
setResponsiveStylesetScaleOptionssetScaleScrollStrategy
setSelectablesetSilentsetTag
setTimeToWaitChangessetVisiblesetZIndex
sheartoStringtranslate
unregisterAnimationStyleupdateSceneTransformationupdateState
updateTimeStampenableSceneGraphNotificationfindParent
getClassNameintersectsBoundsisSceneGraphNotificationEnabled
Css Properties
Name Type Description
bottomnumberY coordinate of the bottom right corner (if 'height' not specified)
boundsRectBounds
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
clipstyle-geometry-boundsRectBounds
clipstyleGraphicsPathClipping style
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
errimgsrcstringSource for error image (it will be rendered if tile is not available)
fillstylestringStyle applied on fill
fillstyleFillStyleStyle applied on fill
fillstyle-colorstringColor in CSS form
fillstyle-evenoddmodebooleanEven-odd fill mode
fillstyle-fillpatternPatternPattern
fillstyle-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
fillstyle-fillpattern-patternnamestringName of this pattern for indexing
fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
fillstyle-foregroundstringForeground color
fillstyle-patternPatternPattern
heightnumberHeight (if 'bottom' not specified)
idstring | numberId of the node, its a unique identifier
leftnumberX coordinate of the top left corner
linestylestringStyle applied on outline
linestyleLineStyleStyle applied on outline
linestyle-colorstringColor in CSS form
linestyle-fillstringOptional fill style to be used to fill lines generated with this style
linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
linestyle-linecapCapStyleThe line cap style
linestyle-linedashoffsetnumberLine dash offset of dashed line
linestyle-linejoinJoinStyleThe line join style
linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
linestyle-scalablebooleanTrue if width should depend on transformation
linestyle-unitstringOptional unit for the width
linestyle-widthnumber | stringThe line thickness
loadertypeLoaderTypeType for tile loader
localtransformTransformationLocal transformation
localtransform-dxnumberX axis translation
localtransform-dynumberY axis translation
localtransform-xxnumberX scale
localtransform-xynumberXy skew
localtransform-yxnumberYx skew
localtransform-yynumberY scale
marginsnumber | stringIt has properties for specifying the margins for each side
maxnumreqnumberMaximum number of requests that can be sent at the same time
namestringName of the node. It is often used for debugging purposes or to simplify queries
opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
opacityblendmodeBlendModeNode opacity mode to blend it
pipelineSeismicPipelineRepresents seismic data
pipeline-clippingmodeClippingModeClipping mode
pipeline-colorsColorMapOptionsColors
pipeline-colors-alphanumberAlpha value
pipeline-colors-colormapstringColor map, predefined color map name, color map options or color map instance
pipeline-colors-colormapColorMapColor map, predefined color map name, color map options or color map instance
pipeline-colors-colormap-maxnumber
pipeline-colors-colormap-minnumber
pipeline-colors-colormap-namestringColor map name
pipeline-colors-colormap-negativefillstylestringPositive fill style
pipeline-colors-colormap-negativefillstyleFillStylePositive fill style
pipeline-colors-colormap-positivefillstylestringPositive fill style
pipeline-colors-colormap-positivefillstyleFillStylePositive fill style
pipeline-colors-colormap-scaleKnownScales
pipeline-colors-colormap-sizenumberColor map size
pipeline-colors-colormap-tracelinestylestringTrace line style
pipeline-colors-colormap-tracelinestyleLineStyleTrace line style
pipeline-colors-opacitynumberOpacity value
pipeline-colors-reversedbooleanReversed color map
pipeline-maximumtracesperpixelnumberDefine maximum traces per pixel, which can be displayed in the image
pipeline-namestringPipeline name
pipeline-normalizationNormalizationOptionsNormalization options
pipeline-normalization-biasnumberThe bias value defines the start of the VA fill Bias can be null (default - means that fill starts from trace location), in swing model space from -1 to 1, or in normalization limits model space, see biastype option
pipeline-normalization-biastypeBiasTypeBias type, default is BiasType.Relative
pipeline-normalization-limitsRangeNormalization limits (min,max), which is used for NormalizationType.Limits only
pipeline-normalization-limits-highnumberUpper range boundary
pipeline-normalization-limits-lownumberLower range boundary
pipeline-normalization-limits-maxnumber
pipeline-normalization-limits-minnumber
pipeline-normalization-scalenumberScale factor
pipeline-normalization-swingnumberThe location in trace spacing units where the normalized value of data samples are mapped. This location can be modified by specifying a normalization scale factor
pipeline-normalization-typeNormalizationTypeEnum of normalization types
pipeline-plotPlotOptionsPlot options
pipeline-plot-clippingfactornumberClipping factor for traces
pipeline-plot-decimationspacingnumberDecimation spacing is the minimum spacing between seismic traces on a seismic image. It is a measured in device units (pixels). Decimation spacing is an important factor when interpreting seismic images, as it affects the resolution of the image. The greater the decimation spacing, the lower the resolution of the image. A higher resolution image will allow for more detail in the interpretation, while a lower resolution image will be less detailed
pipeline-plot-densityclippingfactornumberClipping factor for density
pipeline-plot-densitydecimationbooleanDecimation for traces in density mode
pipeline-plot-sampledecimationDecimationTypeDefine samples decimation type
pipeline-plot-typePlotTypeOptionsPlot type
pipeline-plot-type-interpolateddensitybooleanInterpolated density
pipeline-plot-type-negativecolorfillbooleanNegative color fill
pipeline-plot-type-negativefillbooleanNegative fill
pipeline-plot-type-positivecolorfillbooleanPositive color fill
pipeline-plot-type-positivefillbooleanPositive fill
pipeline-plot-type-reversedbooleanReversed amplitude direction
pipeline-plot-type-simpledensitybooleanSimple density
pipeline-plot-type-wigglebooleanWiggle
pipeline-plot-wigglesantialiasingbooleanWiggles antialiasing flag
pipeline-rasterizationlimitstypeRasterizationLimitsTypeRasterization limits type
pipeline-renderingsideRenderingSideRendering side
pipeline-statisticsStatisticsStatistics information
pipeline-statistics-averagenumberAverage
pipeline-statistics-maxnumberMaximum
pipeline-statistics-minnumberMinimum
pipeline-statistics-rmsnumberRms
pipeline-traceoffsetnumberOriginal trace offset
pipeline-versionstringVersion
rightnumberX coordinate of the bottom right corner (if 'width' not specified)
scalescrollstrategyScaleScrollStrategyScale scroll strategy
scalescrollstrategy-enabledbooleanEnable flag
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
timeoutnumberTimeout of next request, if server isn't available
timetowaitchangesnumberTime (ms) to wait changes of position or scale of seismic image. If position and scale remain the same, seismic image will request new tiles
topnumberY coordinate of the top left corner
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
triesnumberTries of downloading image, if server isn't available
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
widthnumberWidth (if 'right' not specified)
z-indexnumberDefine node z-index

Contents

Constructors

new SeismicImage(options)

new SeismicImage(options?)

Creates image

Parameters

Name Type Description
Optional optionsOptionsoptions object

Overrides

TiledShape<IServerSideRenderingProvider.CustomData>.constructor


new SeismicImage(pipeline, rect)

new SeismicImage(pipeline?, rect?)

Creates image

Parameters

Name Type Description
Optional pipelineSeismicPipelinepipeline
Optional rectRectrectangle of model coordinates.

Overrides

TiledShape<IServerSideRenderingProvider.CustomData>.constructor


new SeismicImage(pipeline, x1, y1, x2, y2)

new SeismicImage(pipeline?, x1?, y1?, x2?, y2?)

Creates image

Parameters

Name Type Description
Optional pipelineSeismicPipeline | Optionspipeline or options object
Optional x1numbermodel coordinate in the parent object
Optional y1numbermodel coordinate in the parent object.
Optional x2numbermodel coordinate in the parent object.
Optional y2numbermodel coordinate in the parent object.

Overrides

TiledShape<IServerSideRenderingProvider.CustomData>.constructor

Methods

addCssClass

addCssClass(cssclass): SeismicImage

Adds new css class to node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

SeismicImage

this

Inherited from

TiledShape.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): SeismicImage

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

SeismicImage

this

Inherited from

TiledShape.addInvalidateHandler


applyOpacity

Protected applyOpacity(context): SeismicImage

This method is called to apply opacity if it is specified on the rendering context. The default implementation sets global alpha on the rendering context

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

SeismicImage

this

Inherited from

TiledShape.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

TiledShape.applyResponsiveStyle


checkCollision

checkCollision(context): boolean

Check collision

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if object is inside of rendering area

Inherited from

TiledShape.checkCollision


clone

clone(): SeismicImage

All subclasses should override copyConstructor or provide custom implementation for this method

Returns

SeismicImage

clone

Overrides

TiledShape.clone


connectStyle

connectStyle(style, type, callback): SeismicImage

Connects style.

This convenience method subscribes a listener to given style for the specified type.
And automatically un-subscribes listener if node is disposed to prevent memory leaks

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

SeismicImage

this

Inherited from

TiledShape.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): SeismicImage

Copy constructor

Parameters

Name Type Description
srcSeismicImageseismic image src
Optional deepCopyboolean

Returns

SeismicImage

Overrides

TiledShape.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): SeismicImage

Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

SeismicImage

this

Inherited from

TiledShape.disconnectStyle


dispose

dispose(): void

Disposes this node, once disposes a node should not be used anymore.
Clear all listeners, and disconnect styles to avoid memory leaks.
Also aggressively 'cleanup' this node by setting some of its members to null.

Returns

void

Overrides

TiledShape.dispose


disposeBackgroundManager

Protected disposeBackgroundManager(): SeismicImage

Returns

SeismicImage

Inherited from

TiledShape.disposeBackgroundManager


enableEventPropagation

enableEventPropagation(enable): SeismicImage

Enable event propagation from the node hierarchy from bottom to top

This option is similar to DOM Event bubbling, which allows to get any event from child node. By default it is disabled for better performance.

Example

import {Group} from '@int/geotoolkit/scene/Group';
import {Events as SceneEvents} from '@int/geotoolkit/scene/Node';
const parentGroup = new Group()
.setName('ParentGroup')
.enableEventPropagation(true);
const childGroup = new Group()
.setName('ChildGroup');

parentGroup.addChild(childGroup);
parentGroup.on(SceneEvents.Invalidate, (eventName, sender, args) => {
// Got notifications from all children of parent group
});
childGroup.invalidate();

Parameters

Name Type Description
enablebooleanenable

Returns

SeismicImage

this

Inherited from

TiledShape.enableEventPropagation


execute

execute(delegate): SeismicImage

Executes delegate and return the result. It allows us to keep all initialization calls in one place,
and we do not need to scroll up or down in IDE to find how and where it was initialized.

Example

// All setters (.setName() for example) returns reference to the this.
// In order to modify inner object like LineStyle or Pattern, to get this object (property) we should call getter to get object reference.
// Then modify it as shown below in Option 1 or you can use execute methods shown in Option 2.
import {Group} from '@int/geotoolkit/scene/Group';
import {Rect} from '@int/geotoolkit/util/Rect';
// Option 1
const group = new Group()
.setName('MyGroup')
.setBounds(new Rect(0, 0, 42, 16))
.enableClipping(true)
.setTag({'type': 'sometype'});

group.getLineStyle().setPattern('pattern');
return group;

// Options 2 ( using execute method )
return group
.execute(function () {
this.getLineStyle()
.setPattern("pattern");
});

Parameters

Name Type Description
delegate(this: SeismicImage) => voidFunction to execute

Returns

SeismicImage

The result if any or this

Inherited from

TiledShape.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: SeismicImage) => T

Returns

T

Inherited from

TiledShape.execute


filter

Protected filter(context): boolean

Filter node

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

flag filter flag ("true" to render node; "false" otherwise)

Inherited from

TiledShape.filter


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

TiledShape.getAnimationStyle


getBounds

getBounds(): Rect

Return bounds. Will also lock the bounds so they cannot be directly modified.

Returns

Rect

bounds

Inherited from

TiledShape.getBounds


getCenterX

getCenterX(): number

Returns the X coordinate of the center of the framing rectangle of this rectangular shape.

Returns

number

Inherited from

TiledShape.getCenterX


getCenterY

getCenterY(): number

Returns the Y coordinate of the center of the framing rectangle of this rectangular shape.

Returns

number

Inherited from

TiledShape.getCenterY


getClassName

getClassName(): string

Returns

string

Inherited from

TiledShape.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

TiledShape.getClipStyle


getCollectPerformanceInformation

getCollectPerformanceInformation(): boolean

Gets collect performance information mode enabled

Returns

boolean

true if collection performance information mode enabled

Inherited from

TiledShape.getCollectPerformanceInformation


getContentsTransform

getContentsTransform(): Transformation

Returns transformation

Returns

Transformation

Overrides

TiledShape.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

TiledShape.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

TiledShape.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

TiledShape.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

TiledShape.getCssTransform


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

TiledShape.getFillStyle


getHeight

getHeight(): number

Returns the height of the framing rectangle.

Returns

number

Inherited from

TiledShape.getHeight


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

TiledShape.getId


getImageToBoundsTransform

Protected getImageToBoundsTransform(): Transformation

Transformation of inner contents to bounds

Returns

Transformation

Inherited from

TiledShape.getImageToBoundsTransform


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

TiledShape.getInvalidateMethod


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

Return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

TiledShape.getLayoutStyle


getLineStyle

getLineStyle(): LineStyle

Return line style

Returns

LineStyle

lineStyle current line style

Inherited from

TiledShape.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

TiledShape.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

TiledShape.getMarginsStyle


getModelArea

getModelArea(): Rect

Gets image size of the tiled shape

Returns

Rect

Inherited from

TiledShape.getModelArea


getModelLimits

getModelLimits(): Rect

Returns model limits

Returns

Rect


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

TiledShape.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

TiledShape.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

TiledShape.getOpacityBlendMode


getOptions

getOptions(): Options<CustomData>

Gets options

Returns

Options<CustomData>

object with parameters

Inherited from

TiledShape.getOptions


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

TiledShape.getParent


getPipeline

getPipeline(): SeismicPipeline

Returns pipeline

Returns

SeismicPipeline


getProperties

getProperties(): OptionsOut

Returns properties

Returns

OptionsOut

properties

Overrides

TiledShape.getProperties


getProperty

getProperty(name): any

Gets dynamic property by name. These properties can be used as a property bags

Parameters

Name Type Description
namestringproperty name

Returns

any

Inherited from

TiledShape.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

TiledShape.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

TiledShape.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

TiledShape.getResponsiveStyle


getRoot

getRoot(): Node

Returns root node.
If node doesn't have parent then it returns itself.

Returns

Node

the root node

Inherited from

TiledShape.getRoot


getScaleOptions

getScaleOptions(): Required<ScaleOptions>

Returns scale options.

Returns

Required<ScaleOptions>

object


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

TiledShape.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

TiledShape.getSceneTransform


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

TiledShape.getTag


getTimeToWaitChanges

getTimeToWaitChanges(): number

Gets time to wait changes

Returns

number

time to wait changes


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

TiledShape.getVisible


getVisibleModelLimits

getVisibleModelLimits(): Rect

Returns model visible limits

Returns

Rect

Inherited from

TiledShape.getVisibleModelLimits


getWidth

getWidth(): number

Returns the width of the framing rectangle.

Returns

number

Inherited from

TiledShape.getWidth


getWorldTransform

getWorldTransform(): Transformation

Retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.

Returns

Transformation

transform the world transform.

Inherited from

TiledShape.getWorldTransform


getX

getX(): number

Returns the X coordinate of the left bottom corner of the framing rectangle.

Returns

number

Inherited from

TiledShape.getX


getY

getY(): number

Returns the Y coordinate of the left bottom corner of the framing rectangle.

Returns

number

Inherited from

TiledShape.getY


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

TiledShape.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

TiledShape.hasCssClass


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

TiledShape.hasEventListener


invalidate

invalidate(bounds?, force?): SeismicImage

Invalidate area of the shape. This method invalidates parent by default. invalidated from parent to root node.

Parameters

Name Type Description
Optional boundsRectbounds of the invalid rectangle in the inner node coordinates
Optional forcebooleantrue if parent should be invalidated immediately if null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed

Returns

SeismicImage

this

Inherited from

TiledShape.invalidate


invalidateLayout

invalidateLayout(): SeismicImage

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Returns

SeismicImage

this

Inherited from

TiledShape.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): SeismicImage

Invalidate bounds

Parameters

Name Type Description
Optional boundsRectif null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed
Optional forcebooleanflag indicating if the parent must be forcibly invalidated

Returns

SeismicImage

this

Inherited from

TiledShape.invalidateParent


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

TiledShape.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

TiledShape.isEventPropagationEnabled


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

TiledShape.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

TiledShape.isSelectable


isSilent

isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

TiledShape.isSilent


notify

notify<E>(type, source, args?): SeismicImage

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event
sourceTiledShape<CustomData>source who called the event
Optional argsEventMap[E]event arguments

Returns

SeismicImage

this

Inherited from

TiledShape.notify


off

off<E>(type?, callback?): SeismicImage

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.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: SeismicImage, args: EventMap[E]) => voidfunction to be called

Returns

SeismicImage

this

Inherited from

TiledShape.off


on

on<E>(type, callback): SeismicImage

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.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: SeismicImage, args: EventMap[E]) => voidto be called

Returns

SeismicImage

this

Inherited from

TiledShape.on


onAllTilesRendered

Protected onAllTilesRendered(): void

All requested tiles are rendered

Returns

void

Inherited from

TiledShape.onAllTilesRendered


onParentChanged

Protected onParentChanged(node): SeismicImage

This method is called when parent changes. Do not call it directly.

Parameters

Name Type Description
nodeNodenode to change parent

Returns

SeismicImage

this

Inherited from

TiledShape.onParentChanged


onRectChanged

Protected onRectChanged(newRect): SeismicImage

Parameters

Name Type
newRectRect

Returns

SeismicImage

Inherited from

TiledShape.onRectChanged


onStartTilesLoading

Protected onStartTilesLoading(): void

The first tile is started loading

Returns

void

Inherited from

TiledShape.onStartTilesLoading


onVisibilityChanged

Protected onVisibilityChanged(): void

This method is called if visibility is changed. Send event Events.VisibilityChanged

Returns

void

Inherited from

TiledShape.onVisibilityChanged


postRendering

Protected postRendering(context): void

To be called after rendering. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

TiledShape.postRendering


preRendering

Protected preRendering(context): void

Occurs before rendering this method sets clipping by default. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

TiledShape.preRendering


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

TiledShape.registerAnimationStyle


removeCssClass

removeCssClass(cssclass): SeismicImage

Removes css class from node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

SeismicImage

this

Inherited from

TiledShape.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): SeismicImage

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

SeismicImage

this

Inherited from

TiledShape.removeInvalidateHandler


render

render(context): void

Render method, overrides render method of the parent. Calculates tiles required for the invalidated area (all the calculations are made in device coordinates), renders existing ones, or requests non existing ones

Parameters

Name Type Description
contextRenderingContexta rendering context

Returns

void

Inherited from

TiledShape.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode. Default implementation creates call method "render" inside

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function

Returns

void

Inherited from

TiledShape.renderAsync


rotate

rotate(theta, x, y): SeismicImage

Rotate bounds around a given coordinate

Parameters

Name Type Description
thetanumberangle to rotate node, in radians
xnumberx coordinate to rotate around
ynumbery coordinate to rotate around

Returns

SeismicImage

this

Inherited from

TiledShape.rotate


scale

scale(xx, yy): SeismicImage

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

SeismicImage

this

Inherited from

TiledShape.scale


setAnimationStyle

setAnimationStyle(animationStyle): SeismicImage

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

SeismicImage

Inherited from

TiledShape.setAnimationStyle


setBounds

setBounds(rect): SeismicImage

Sets the location and size of the framing rectangle of this rectangular shape to the specified values. This method is the same as setRect.

Parameters

Name Type Description
rectRectbounds rect

Returns

SeismicImage

this

Inherited from

TiledShape.setBounds

setBounds(x1, y1?, x2?, y2?): SeismicImage

Sets the location and size of the framing rectangle of this rectangular shape to the specified values. This method is the same as setRect.

Parameters

Name Type Description
x1numberx coordinate of the top left corner
Optional y1numbery coordinate of the top left corner
Optional x2numberx coordinate of the bottom right corner
Optional y2numbery coordinate of the bottom right corner

Returns

SeismicImage

this

Inherited from

TiledShape.setBounds


setClipStyle

setClipStyle(style): SeismicImage

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

SeismicImage

this

Inherited from

TiledShape.setClipStyle


setCollectPerformanceInformation

setCollectPerformanceInformation(collectPerformanceInfoEnabled): SeismicImage

Sets collect performance information mode enabled

Parameters

Name Type Description
collectPerformanceInfoEnabledbooleantrue for collection performance information mode enabled

Returns

SeismicImage

this

Inherited from

TiledShape.setCollectPerformanceInformation


setCss

setCss(style, merge?): SeismicImage

Sets CSS style. This style will be applied for all inserted elements

Parameters

Name Type Description
styleTypeCSS style to be applied to inserted elements
Optional mergebooleanmerge flag

Returns

SeismicImage

this

Inherited from

TiledShape.setCss


setCssClass

setCssClass(name): SeismicImage

Sets css class name of the node to be used to apply CSS style

Parameters

Name Type Description
namestringcss class name of the node

Returns

SeismicImage

this

Inherited from

TiledShape.setCssClass


setCssTransform

setCssTransform(transform): SeismicImage

Set CSS transformation

Parameters

Name Type Description
transformstring | Transformationtransformation css transformation instruction or Transformation instance

Returns

SeismicImage

this

Inherited from

TiledShape.setCssTransform


setFillStyle

setFillStyle(fillStyle, merge?): SeismicImage

Sets fill style

Parameters

Name Type Description
fillStyleTypea new fill style
Optional mergebooleantrue if you want to merge fillStyle with existing attribute, false by default

Returns

SeismicImage

this

Inherited from

TiledShape.setFillStyle


setId

setId(id): SeismicImage

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

SeismicImage

this

Inherited from

TiledShape.setId


setLayoutStyle

setLayoutStyle(layoutStyle, merge?): SeismicImage

Specify desired layout style

Parameters

Name Type Description
layoutStyleLayoutStyle<string | number> | Options<string | number>desired layout style or layout style params
Optional mergebooleantrue if you want to merge layoutStyle with existing attribute, false by default

Returns

SeismicImage

Inherited from

TiledShape.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): SeismicImage

Sets line style

Parameters

Name Type Description
lineStyleTypeline style or options
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

SeismicImage

this

Inherited from

TiledShape.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): SeismicImage

Sets local transformation to be used to transform from local to parent coordinate

Parameters

Name Type Description
localTransformTransformationlocal transformation for this node
Optional forcebooleanboolean flag to force update event if transformations are equal, false by default

Returns

SeismicImage

this

Inherited from

TiledShape.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): SeismicImage

Sets margins style

Parameters

Name Type Description
marginsType<string | number>margins style
Optional mergebooleantrue if you want to merge marginsStyle with existing attribute, false by default

Returns

SeismicImage

this

Inherited from

TiledShape.setMarginsStyle


setModelLimits

setModelLimits(limits): SeismicImage

Sets model limits

Parameters

Name Type Description
limitsRectlimits of the pipeline

Returns

SeismicImage


setName

setName(name): SeismicImage

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

SeismicImage

this

Inherited from

TiledShape.setName


setNotification

setNotification(notify, force?): SeismicImage

set notification state

Parameters

Name Type Description
notifybooleanflag set to invalidate parent or not
Optional forcebooleantrue if parent should be invalidated immediately

Returns

SeismicImage

this

Inherited from

TiledShape.setNotification


setOpacity

setOpacity(opacity, blendMode?): SeismicImage

Sets node opacity

Parameters

Name Type Description
opacitynumbernode opacity from 0 to 1
Optional blendModeBlendModeopacity blend mode. If it is normal, opacity will be replaced.

Returns

SeismicImage

this

Inherited from

TiledShape.setOpacity


setOptions

setOptions(options): SeismicImage

Sets options

Parameters

Name Type Description
optionsOptions<CustomData>object with parameters

Returns

SeismicImage

this

Inherited from

TiledShape.setOptions


setPipeline

setPipeline(pipeline): SeismicImage

Sets pipeline

Parameters

Name Type Description
pipelineSeismicPipeline | Optionsthe Seismic Pipeline

Returns

SeismicImage

this


setProperties

setProperties(properties?): SeismicImage

Sets properties

Parameters

Name Type Description
Optional propertiesOptionsproperties

Returns

SeismicImage

this

Overrides

TiledShape.setProperties


setProperty

setProperty(name, value): SeismicImage

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

SeismicImage

this

Inherited from

TiledShape.setProperty


setRect

setRect(rect): SeismicImage

Sets the location and size of the framing rectangle of this rectangular shape to the specified values.

Parameters

Name Type Description
rectRectrect

Returns

SeismicImage

Inherited from

TiledShape.setRect

setRect(params): SeismicImage

Sets the location and size of the framing rectangle of this rectangular shape to the specified values.

Parameters

Name Type Description
paramsOptionsrect params

Returns

SeismicImage

Inherited from

TiledShape.setRect

setRect(x1, y1, x2, y2): SeismicImage

Sets the location and size of the framing rectangle of this rectangular shape to the specified values.

Parameters

Name Type Description
x1numberx coordinate of the top left corner
y1numbery coordinate of the top left corner
x2numberx coordinate of the bottom right corner
y2numbery coordinate of the bottom right corner

Returns

SeismicImage

Inherited from

TiledShape.setRect


setRenderingFilter

setRenderingFilter(filter): SeismicImage

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

SeismicImage

this

Inherited from

TiledShape.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): SeismicImage

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

SeismicImage

this

Inherited from

TiledShape.setResponsiveStyle


setScaleOptions

setScaleOptions(scaleOptions): SeismicImage

Sets scale options.

Parameters

Name Type Description
scaleOptionsScaleOptionsscale options

Returns

SeismicImage

this


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): SeismicImage

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

SeismicImage

this

Inherited from

TiledShape.setScaleScrollStrategy


setSelectable

setSelectable(selectable): SeismicImage

Allows to select node. If node is not selectable then child node is not selectable.

Parameters

Name Type Description
selectablebooleanflag to allow node selection

Returns

SeismicImage

this

Inherited from

TiledShape.setSelectable


setSilent

setSilent(bool): SeismicImage

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

SeismicImage

this

Inherited from

TiledShape.setSilent


setTag

setTag(tag): SeismicImage

Allows the user to associate any arbitrary object with the node.

Parameters

Name Type Description
taganyThe object to be associated with the node.

Returns

SeismicImage

this

Inherited from

TiledShape.setTag


setTimeToWaitChanges

setTimeToWaitChanges(timeToWaitChanges): SeismicImage

Sets time to wait changes

Parameters

Name Type Description
timeToWaitChangesnumbertime to wait changes

Returns

SeismicImage

this


setVisible

setVisible(value): SeismicImage

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

SeismicImage

this

Inherited from

TiledShape.setVisible


setZIndex

setZIndex(value): SeismicImage

Sets z-index for node (set null for default)

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

SeismicImage

this

Inherited from

TiledShape.setZIndex


shear

shear(shx, shy): SeismicImage

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

SeismicImage

this

Inherited from

TiledShape.shear


toString

toString(): string

Returns a string representation of this object (generally the classname)

Returns

string

A string representation

Inherited from

TiledShape.toString


translate

translate(tx, ty): SeismicImage

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

SeismicImage

this

Inherited from

TiledShape.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

TiledShape.unregisterAnimationStyle


updateSceneTransformation

updateSceneTransformation(): SeismicImage

Update scene transformation

Returns

SeismicImage

this

Inherited from

TiledShape.updateSceneTransformation


updateState

updateState(regions?, changes?): SeismicImage

Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph

Parameters

Name Type Description
Optional regionsRect[]optional array to return invalid rectangles in the parent coordinates
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

SeismicImage

this

Inherited from

TiledShape.updateState


updateTimeStamp

Protected updateTimeStamp(): SeismicImage

Update time stamp to indicate that Node or Children has been changed.

Returns

SeismicImage

this

Inherited from

TiledShape.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

TiledShape.enableSceneGraphNotification


findParent

Static findParent<T>(node, classType, filter?): InstanceType<T>

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any>

Parameters

Name Type Description
nodeNodenode to start search
classTypeTtype of the class to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

InstanceType<T>

Inherited from

TiledShape.findParent

Static findParent(node, classType, filter?): Node

Find root of the node with specified type

Parameters

Name Type Description
nodeNodenode to start search
classTypestringinterface name to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

Node

Inherited from

TiledShape.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

TiledShape.getClassName


intersectsBounds

Static intersectsBounds(bounds, localTransformation, parentInvalidArea, expand?): boolean

Check collision of the shape bounds with parent invalid area

Parameters

Name Type Description
boundsRectshape bounds
localTransformationTransformationlocal transformation of the bounds
parentInvalidAreaRectinvalid parent area
Optional expandDimensionoptional expand the bounds in model coordinate

Returns

boolean

true if bounds intersect the invalid area

Inherited from

TiledShape.intersectsBounds


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

TiledShape.isSceneGraphNotificationEnabled