API / geotoolkit / seismic / widgets / SeismicViewWidget / SeismicViewWidget
widgets.SeismicViewWidget.SeismicViewWidget
SeismicViewWidget is essentially a base widget specialized for seismic data display. Internally it uses classes like SeismicImage and SeismicPipeline from Seismic toolkit.
The SeismicViewWidget handles the synchronization of the model limits and display units while zooming and scrolling. The horizontal and vertical scroll bars will be displayed by default and its properties can be easily modified.
The scaling functionality from seismic image is utilized by calling get/setScaleOptions().
The widget utilizes the SeismicPipeline to manipulate the properties like Interpolation, Normalization etc.
It can display a colorbar and also change its location as needed. The widget has default tools like Crosshair but it also supports tools like:
- panning
- selection
- rubberzoom
- pinchzoom
Example
// following code shows how to create a seismic view widget using a pipeline. The {@link @int/geotoolkit/seismic/pipeline/SeismicPipeline~SeismicPipeline} is created earlier using a seismic reader.
import {SeismicViewWidget} from '@int/geotoolkit/seismic/widgets/SeismicViewWidget';
const widget = new SeismicViewWidget(
{
'pipeline': pipeline,
'layouttype': 'inside'
})
.setScaleOptions({
'tracescale': 10,
'samplescale': 50,
'deviceunit': 'in',
'sampleunit': 'ms'
});Example
// change default scrollbars
const widget = new SeismicViewWidget({
'pipeline': pipeline,
'scroll': {
'horizontal': {
'visible': true,
'cssclass': 'horizontal-scroll',
'type': 'geotoolkit.controls.tools.scroll.HorizontalScroll'
},
'vertical': {
'visible': true,
'cssclass': 'vertical-scroll',
'type': 'geotoolkit.controls.tools.scroll.VerticalScroll'
}
}});Example
//hide default axis ( headers)
widget.setTraceHeaderVisible('TraceNumber', false);
// or
widget.setOptions({
'axes': {
'headers': {
'fields': [
{
'name': 'TraceNumber',
'title': 'Trace Number',
'visible': false
}]
}
}
});Example
// How to capture visible limits changed if user scrolls or scale content
import {Events as NodeEvents} from '@int/geotoolkit/scene/Node';
seismicWidget.on(NodeEvents.VisibleLimitsChanged, (event, sender, args) => {
// args[‘visibleModelLimits’]
// args[‘visibleDeviceLimits’]
});↳
SeismicViewWidget
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
annotationssizes | AnnotationSize | JSON to hold (width or height) of the annotation |
annotationssizes-east | string | number | Preferred width of east annotation size |
annotationssizes-north | string | number | Preferred height of north annotation size |
annotationssizes-south | string | number | Preferred height of south annotation size |
annotationssizes-west | string | number | Preferred width of west annotation size |
autoseismiclimits | boolean | Sets model limits of the center group based on the pipeline limits. If limits sets to false |
axes | AxesOptions | Specify set of axes |
axes-headers | AxesHeadersOptions | Seismic headers axes options |
axes-headers-direction | Direction | |
axes-headers-location | AnnotationLocation | |
axes-headers-size | number | |
axes-samples | AxesSamplesOptions | Specify properties of vertical axis |
axes-samples-cssclass | string | Defines cssclass of samples axis |
axes-samples-instance | Axis | Defines instance of sample axis |
axes-samples-instance-autolabelrotation | boolean | Automatic label rotation |
axes-samples-instance-autolabelrotationangle | number | |
axes-samples-instance-baselinestyle | string | Base line style |
axes-samples-instance-baselinestyle | LineStyle | Base line style |
axes-samples-instance-baselinestyle-color | string | Color in CSS form |
axes-samples-instance-baselinestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
axes-samples-instance-baselinestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
axes-samples-instance-baselinestyle-fill-color | string | Color in CSS form |
axes-samples-instance-baselinestyle-fill-evenoddmode | boolean | Even-odd fill mode |
axes-samples-instance-baselinestyle-fill-fillpattern | Pattern | Pattern |
axes-samples-instance-baselinestyle-fill-fillpattern-containername | string | An 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 |
axes-samples-instance-baselinestyle-fill-fillpattern-patternname | string | Name of this pattern for indexing |
axes-samples-instance-baselinestyle-fill-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
axes-samples-instance-baselinestyle-fill-foreground | string | Foreground color |
axes-samples-instance-baselinestyle-fill-pattern | Pattern | Pattern |
axes-samples-instance-baselinestyle-linecap | CapStyle | The line cap style |
axes-samples-instance-baselinestyle-linedashoffset | number | Line dash offset of dashed line |
axes-samples-instance-baselinestyle-linejoin | JoinStyle | The line join style |
axes-samples-instance-baselinestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
axes-samples-instance-baselinestyle-scalable | boolean | True if width should depend on transformation |
axes-samples-instance-baselinestyle-unit | string | Optional unit for the width |
axes-samples-instance-baselinestyle-width | number | string | The line thickness |
axes-samples-instance-bounds | Rect | Axis bounds |
axes-samples-instance-bounds-height | number | Height |
axes-samples-instance-bounds-readonly | boolean | Readonly |
axes-samples-instance-bounds-width | number | Width |
axes-samples-instance-bounds-x | number | Left |
axes-samples-instance-bounds-y | number | Top |
axes-samples-instance-clipstyle | ClipStyle | Clipping style |
axes-samples-instance-clipstyle-evenodd | boolean | True if evenodd mode is on ('nonzero' mode otherwise) |
axes-samples-instance-clipstyle-geometry | GraphicsPath | Clipping geometry |
axes-samples-instance-clipstyle-geometry-bounds | Rect | Bounds |
axes-samples-instance-clipstyle | GraphicsPath | Clipping style |
axes-samples-instance-cssclass | string | The css class name of this node |
axes-samples-instance-csscursor | string | CSS cursor associated with node |
axes-samples-instance-cssstyle | string | CSS style to be applied to inserted elements |
axes-samples-instance-dimension | AxisMappingDimension | Axis dimension to setup axis limits |
axes-samples-instance-dimension-desiredmodelstep | number | Desired model step |
axes-samples-instance-dimension-logarithmic | boolean | True for logarithmic axis |
axes-samples-instance-dimension-max | number | Maximum value |
axes-samples-instance-dimension-min | number | Minimum value |
axes-samples-instance-dimension-minspan | number | Desired minimum distance between ticks in pixels |
axes-samples-instance-dimension-name | string | Name of the dimension |
axes-samples-instance-dimension-neatlimits | boolean | Enable or disable neat limits |
axes-samples-instance-dimension-orientation | Orientation | Axis orientation |
axes-samples-instance-dimension-origin | number | |
axes-samples-instance-dimension-preciselimits | boolean | Enable keeping the precise limits and calculate only step |
axes-samples-instance-dimension-spacing | number | Desired model spacing |
axes-samples-instance-fillstyle | string | Style applied on fill |
axes-samples-instance-fillstyle | FillStyle | Style applied on fill |
axes-samples-instance-hideoverlappedtext | boolean | Hide overlapped text flag |
axes-samples-instance-id | string | number | Id of the node, its a unique identifier |
axes-samples-instance-infinity | boolean | Infinity mode |
axes-samples-instance-labelmanualsettings | boolean | Enable / disable manual settings for labels like anchor |
axes-samples-instance-labeloffset | number | Offset the label offset |
axes-samples-instance-labelpadding | number | Label padding size in pixels |
axes-samples-instance-labelposition | LabelPosition | Label position |
axes-samples-instance-layoutstyle | LayoutStyle | Desired layout style |
axes-samples-instance-layoutstyle-constraint | SizeConstraint | Layout constrains |
axes-samples-instance-layoutstyle-flexgrow | number | Number specifying how much the item will grow relative to the rest of the items inside the same container |
axes-samples-instance-layoutstyle-flexshrink | number | Number specifying how much the item will shrink relative to the rest of the items inside the same container |
axes-samples-instance-layoutstyle-float | string | Float position |
axes-samples-instance-layoutstyle-position | string | Layout position |
axes-samples-instance-layoutstyle-size | number | string | Layout size |
axes-samples-instance-linestyle | string | Style applied on outline |
axes-samples-instance-linestyle | LineStyle | Style applied on outline |
axes-samples-instance-localtransform | Transformation | Local transformation |
axes-samples-instance-localtransform-dx | number | X axis translation |
axes-samples-instance-localtransform-dy | number | Y axis translation |
axes-samples-instance-localtransform-xx | number | X scale |
axes-samples-instance-localtransform-xy | number | Xy skew |
axes-samples-instance-localtransform-yx | number | Yx skew |
axes-samples-instance-localtransform-yy | number | Y scale |
axes-samples-instance-margins | number | string | It has properties for specifying the margins for each side |
axes-samples-instance-maximumlabelsize | number | Maximum label size (in device), text will be wrapped, if it is bigger than maximum label size |
axes-samples-instance-modellimits | Rect | Rectangle where to generate ticks |
axes-samples-instance-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
axes-samples-instance-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
axes-samples-instance-opacityblendmode | BlendMode | Node opacity mode to blend it |
axes-samples-instance-orientation | Orientation | Axis orientation |
axes-samples-instance-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
axes-samples-instance-scalescrollstrategy-enabled | boolean | Enable flag |
axes-samples-instance-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
axes-samples-instance-tag | any | Custom 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 |
axes-samples-instance-textstyle | string | Labels textstyle |
axes-samples-instance-textstyle | TextStyle | Labels textstyle |
axes-samples-instance-textstyle-alignment | AlignmentStyle | Alignment |
axes-samples-instance-textstyle-autosize | boolean | Auto font size on high definition display |
axes-samples-instance-textstyle-background | string | Background style |
axes-samples-instance-textstyle-background | FillStyle | Background style |
axes-samples-instance-textstyle-baseline | BaseLineStyle | Base line |
axes-samples-instance-textstyle-color | string | Color in CSS form |
axes-samples-instance-textstyle-fill | FillStyle | Text fill style |
axes-samples-instance-textstyle-font | string | Font see |
axes-samples-instance-textstyle-fonturl | string | The place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword |
axes-samples-instance-textstyle-lineheight | string | number | Line height |
axes-samples-instance-textstyle-multiline | boolean | Allow multi-line text |
axes-samples-instance-textstyle-outline | string | Outline style |
axes-samples-instance-textstyle-outline | LineStyle | Outline style |
axes-samples-instance-textstyle-overflowwrap | OverflowWrapStyle | Overflow wrap |
axes-samples-instance-textstyle-strikethrough | string | Strikethrough style |
axes-samples-instance-textstyle-strikethrough | LineStyle | Strikethrough style |
axes-samples-instance-textstyle-textoverflow | TextOverflowStyle | Text overflow |
axes-samples-instance-textstyle-underline | string | Underline style |
axes-samples-instance-textstyle-underline | LineStyle | Underline style |
axes-samples-instance-textstyle-underlineoffset | string | number | Underline offset distance |
axes-samples-instance-textstyle-whitespace | WhiteSpaceStyle | White space |
axes-samples-instance-textstyle-wordbreak | WordBreakStyle | Word break |
axes-samples-instance-tickgenerator | TickGenerator | TickGenerator to use in axis |
axes-samples-instance-tickgenerator-labelstyles | TextStyle | An object containing label style for specified grades |
axes-samples-instance-tickgenerator-tag | any | Tag user can specify info associated with current object |
axes-samples-instance-tickgenerator-tickstyles | LineStyle | An object containing tick styles for specified grades |
axes-samples-instance-tickposition | TickPosition | Tick position |
axes-samples-instance-title | Title | Axis title |
axes-samples-instance-title-alignment | AnchorType | Alignment |
axes-samples-instance-title-margin | number | string | Margin style |
axes-samples-instance-title-offset | Point | Offset |
axes-samples-instance-title-offset-x | number | X coordinate |
axes-samples-instance-title-offset-y | number | Y coordinate |
axes-samples-instance-title-offset | Dimension | Offset |
axes-samples-instance-title-offset-height | number | Height of dimension |
axes-samples-instance-title-offset-width | number | Width of dimension or properties |
axes-samples-instance-title-showellipsis | boolean | Enables/disables ellipsis in case if text is too long |
axes-samples-instance-title-text | string | Axis title text |
axes-samples-instance-title-textstyle | string | Text style |
axes-samples-instance-title-textstyle | TextStyle | Text style |
axes-samples-instance-title-visible | boolean | Visibility |
axes-samples-instance-transform | string | Additional CSS transformation applied to node or 'none' |
axes-samples-instance-transform | Transformation | Additional CSS transformation applied to node or 'none' |
axes-samples-instance-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
axes-samples-instance-visiblebaseline | boolean | Visibility of baseline |
axes-samples-instance-z-index | number | Define node z-index |
axes-samples-location | AnnotationLocation | Defines location of sample axis |
axes-samples-size | number | Defines size in pixels of samples axis |
axes-samples-ticks | Options | Objects which defines ticks options of the axis |
axes-samples-ticks-labelstyles | TextStyle | An object containing label style for specified grades |
axes-samples-ticks-tag | any | Tag user can specify info associated with current object |
axes-samples-ticks-tickstyles | LineStyle | An object containing tick styles for specified grades |
axes-samples-ticks | Options | Objects which defines ticks options of the axis |
axes-samples-ticks-adaptivetype | AdaptiveType | Type of adaptive algorithm |
axes-samples-ticks-hidelabelsonspantoosmall | boolean | Hide labels flag |
axes-samples-ticks-minlabelspan | number | Minimum distance between labels |
axes-samples-ticks-minorticksamount | number | Count of minor ticks |
axes-samples-ticks-minspan | number | Minimum distance between ticks |
axes-samples-ticks-minspangrade | string | Tick grade to be used for minimum distance between ticks |
axes-samples-ticks-modelorigin | number | Origin in model space for initial tick in the sequence |
axes-samples-ticks-precision | AdaptivePrecision | Precision for legacy algorithm |
axes-samples-ticks-spacing | number | Spacing see |
axes-samples-title | Title | Defines title options of sample axis |
axes-samples-visible | boolean | Defines visibility of sample axis |
freezeupdate | boolean | Freeze updating widget until new seismic data is loaded and rendered for visible area |
layouttype | string | Type of layout 'default' or 'inside' |
orientation | Orientation | Seismic trace orientation |
pipeline | SeismicPipeline | Seismic pipeline |
pipeline-clippingmode | ClippingMode | Clipping mode |
pipeline-colors | ColorMapOptions | Colors |
pipeline-colors-alpha | number | Alpha value |
pipeline-colors-colormap | string | Color map, predefined color map name, color map options or color map instance |
pipeline-colors-colormap | ColorMap | Color map, predefined color map name, color map options or color map instance |
pipeline-colors-colormap-max | number | |
pipeline-colors-colormap-min | number | |
pipeline-colors-colormap-name | string | Color map name |
pipeline-colors-colormap-negativefillstyle | string | Positive fill style |
pipeline-colors-colormap-negativefillstyle | FillStyle | Positive fill style |
pipeline-colors-colormap-positivefillstyle | string | Positive fill style |
pipeline-colors-colormap-positivefillstyle | FillStyle | Positive fill style |
pipeline-colors-colormap-scale | KnownScales | |
pipeline-colors-colormap-size | number | Color map size |
pipeline-colors-colormap-tracelinestyle | string | Trace line style |
pipeline-colors-colormap-tracelinestyle | LineStyle | Trace line style |
pipeline-colors-opacity | number | Opacity value |
pipeline-colors-reversed | boolean | Reversed color map |
pipeline-maximumtracesperpixel | number | Define maximum traces per pixel, which can be displayed in the image |
pipeline-name | string | Pipeline name |
pipeline-normalization | NormalizationOptions | Normalization options |
pipeline-normalization-bias | number | The 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-biastype | BiasType | Bias type, default is BiasType.Relative |
pipeline-normalization-limits | Range | Normalization limits (min,max), which is used for NormalizationType.Limits only |
pipeline-normalization-limits-high | number | Upper range boundary |
pipeline-normalization-limits-low | number | Lower range boundary |
pipeline-normalization-limits-max | number | |
pipeline-normalization-limits-min | number | |
pipeline-normalization-scale | number | Scale factor |
pipeline-normalization-swing | number | The 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-type | NormalizationType | Enum of normalization types |
pipeline-plot | PlotOptions | Plot options |
pipeline-plot-clippingfactor | number | Clipping factor for traces |
pipeline-plot-decimationspacing | number | Decimation 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-densityclippingfactor | number | Clipping factor for density |
pipeline-plot-densitydecimation | boolean | Decimation for traces in density mode |
pipeline-plot-sampledecimation | DecimationType | Define samples decimation type |
pipeline-plot-type | PlotTypeOptions | Plot type |
pipeline-plot-type-interpolateddensity | boolean | Interpolated density |
pipeline-plot-type-negativecolorfill | boolean | Negative color fill |
pipeline-plot-type-negativefill | boolean | Negative fill |
pipeline-plot-type-positivecolorfill | boolean | Positive color fill |
pipeline-plot-type-positivefill | boolean | Positive fill |
pipeline-plot-type-reversed | boolean | Reversed amplitude direction |
pipeline-plot-type-simpledensity | boolean | Simple density |
pipeline-plot-type-wiggle | boolean | Wiggle |
pipeline-plot-wigglesantialiasing | boolean | Wiggles antialiasing flag |
pipeline-rasterizationlimitstype | RasterizationLimitsType | Rasterization limits type |
pipeline-renderingside | RenderingSide | Rendering side |
pipeline-statistics | Statistics | Statistics information |
pipeline-statistics-average | number | Average |
pipeline-statistics-max | number | Maximum |
pipeline-statistics-min | number | Minimum |
pipeline-statistics-rms | number | Rms |
pipeline-traceoffset | number | Original trace offset |
pipeline-version | string | Version |
scale | ScaleOptions | Scale options |
scale-deviceunit | string | Physical device unit |
scale-samplescale | number | In sample unit per device unit if depth data (e.g feet per inch), or in device unit per sample unit (e.g inches per second) |
scale-sampleunit | string | Sample unit, sample unit from pipeline will be used if not specified |
scale-tracescale | number | In traces per device unit (e.g traces per inch) |
scroll | ScrollOptions | Specify scroll bar properties |
scroll-horizontal | HVOptions | Specify horizontal scroll bar properties |
scroll-horizontal-cssclass | string | Specify scroll bar cssclass name |
scroll-horizontal-options | Options | |
scroll-horizontal-options-cssclass | string | The css class name of this node |
scroll-horizontal-options-id | string | number | Id of the node, its a unique identifier |
scroll-horizontal-options-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
scroll-horizontal-options-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
scroll-horizontal-options-tag | any | Custom 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 |
scroll-horizontal-options-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
scroll-horizontal-options-z-index | number | Define node z-index |
scroll-horizontal-options | Options | |
scroll-horizontal-options-clipstyle | ClipStyle | Clipping style |
scroll-horizontal-options-clipstyle | GraphicsPath | Clipping style |
scroll-horizontal-options-csscursor | string | CSS cursor associated with node |
scroll-horizontal-options-cssstyle | string | CSS style to be applied to inserted elements |
scroll-horizontal-options-localtransform | Transformation | Local transformation |
scroll-horizontal-options-margins | number | string | It has properties for specifying the margins for each side |
scroll-horizontal-options-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
scroll-horizontal-options-opacityblendmode | BlendMode | Node opacity mode to blend it |
scroll-horizontal-options-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
scroll-horizontal-options-transform | string | Additional CSS transformation applied to node or 'none' |
scroll-horizontal-options-transform | Transformation | Additional CSS transformation applied to node or 'none' |
scroll-horizontal-options | Options | |
scroll-horizontal-options-clipping | boolean | Enable clipping, this does not consider the clipstyle, it is related to bounds-clipping |
scroll-horizontal-options-infinity | boolean | Mode to render outside the model limits |
scroll-horizontal-options | Options | |
scroll-horizontal-options-automodellimitsmode | boolean | Auto model limits mode |
scroll-horizontal-options-bounds | Rect | Define position of the group in the parent |
scroll-horizontal-options-contentorientation | Orientation | Content orientation |
scroll-horizontal-options-fillstyle | string | Fill style |
scroll-horizontal-options-fillstyle | FillStyle | Fill style |
scroll-horizontal-options-horizontalflip | boolean | Horizontal axis goes from right to left |
scroll-horizontal-options-layoutstyle | LayoutStyle | Layout style to be used for parent layout |
scroll-horizontal-options-linestyle | string | Line style |
scroll-horizontal-options-linestyle | LineStyle | Line style |
scroll-horizontal-options-modellimits | Rect | Define inner model coordinates of the group |
scroll-horizontal-options-padding | number | string | It has properties for specifying the padding for each side |
scroll-horizontal-options-pickingchildren | boolean | Enable picking children |
scroll-horizontal-options-verticalflip | boolean | Vertical axis goes from bottom to top |
scroll-horizontal-options-viewcache | boolean | View cache to cache child nodes |
scroll-horizontal-options | Options | |
scroll-horizontal-options-backgroundfillstyle | string | Background fill style |
scroll-horizontal-options-backgroundfillstyle | FillStyle | Background fill style |
scroll-horizontal-options-floating | boolean | Flag to set floating mode |
scroll-horizontal-options-size | number | Desired size |
scroll-horizontal-options-transparency | number | Alpha |
scroll-horizontal-options | Options | |
scroll-horizontal-options-arrowlinestyle | string | Arrow line style |
scroll-horizontal-options-arrowlinestyle | LineStyle | Arrow line style |
scroll-horizontal-options-borderlinestyle | string | Border line style |
scroll-horizontal-options-borderlinestyle | LineStyle | Border line style |
scroll-horizontal-options-caretfillstyle | string | Caret fill style |
scroll-horizontal-options-caretfillstyle | FillStyle | Caret fill style |
scroll-horizontal-options-caretlinestyle | string | Caret line style |
scroll-horizontal-options-caretlinestyle | LineStyle | Caret line style |
scroll-horizontal-options-changecursor | boolean | Change cursor on move or resize, true by default |
scroll-horizontal-options-fillstyle | string | Fill style |
scroll-horizontal-options-fillstyle | FillStyle | Fill style |
scroll-horizontal-options-isvertical | boolean | |
scroll-horizontal-options-linestyle | string | Line style |
scroll-horizontal-options-linestyle | LineStyle | Line style |
scroll-horizontal-options-minimumcarretsize | number | Minimum size of the carriage |
scroll-horizontal-options-modellimits | Rect | Model limits |
scroll-horizontal-options-resizable | boolean | True for resizable |
scroll-horizontal-options-rounded | boolean | Rounded borders |
scroll-horizontal-options-visiblelimits | Rect | Visible model limits |
scroll-horizontal-type | string | Class name of scroll bar |
scroll-horizontal-visible | boolean | Specify scroll bar visibility |
scroll-vertical | HVOptions | Specify vertical scroll bar properties |
title | Title | Defines title options of widget |
title-alignment | AnchorType | Alignment |
title-cssclass | string | CSS style of the title |
title-location | AnnotationLocation | Defines location |
title-size | number | Size of the title in pixels |
title-text | string | Title text |
title-textstyle | string | Text style |
title-textstyle | TextStyle | Text style |
title-visible | boolean | Visibility |
tools | ToolsOptions | Tools options |
tools-colorbar | OptionsBase | Floating olor bar tool options |
tools-colorbar-colorprovider | ColorProvider | |
tools-colorbar-colorprovider-max | number | |
tools-colorbar-colorprovider-min | number | |
tools-colorbar-colorprovider-scale | KnownScales | |
tools-colorbar-tickgenerator | TickGenerator | |
tools-colorbar-visible | boolean | |
tools-comparator | OptionsType | Comparator options |
tools-comparator-fillstyle | string | Splitter fill style |
tools-comparator-fillstyle | FillStyle | Splitter fill style |
tools-comparator-linestyle | string | Splitter border line style |
tools-comparator-linestyle | LineStyle | Splitter border line style |
tools-comparator-width | number | Splitter width |
tools-crosshair | Options | Crosshair cursor options |
tools-crosshair-enabled | boolean | Enabled state |
tools-crosshair-layer | CompositeNode | Manipulator layer |
tools-crosshair-layer-clipping | boolean | Enable clipping, this does not consider the clipstyle, it is related to bounds-clipping |
tools-crosshair-layer-clipstyle | ClipStyle | Clipping style |
tools-crosshair-layer-clipstyle | GraphicsPath | Clipping style |
tools-crosshair-layer-cssclass | string | The css class name of this node |
tools-crosshair-layer-csscursor | string | CSS cursor associated with node |
tools-crosshair-layer-cssstyle | string | CSS style to be applied to inserted elements |
tools-crosshair-layer-id | string | number | Id of the node, its a unique identifier |
tools-crosshair-layer-infinity | boolean | Mode to render outside the model limits |
tools-crosshair-layer-localtransform | Transformation | Local transformation |
tools-crosshair-layer-margins | number | string | It has properties for specifying the margins for each side |
tools-crosshair-layer-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
tools-crosshair-layer-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
tools-crosshair-layer-opacityblendmode | BlendMode | Node opacity mode to blend it |
tools-crosshair-layer-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
tools-crosshair-layer-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
tools-crosshair-layer-tag | any | Custom 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 |
tools-crosshair-layer-transform | string | Additional CSS transformation applied to node or 'none' |
tools-crosshair-layer-transform | Transformation | Additional CSS transformation applied to node or 'none' |
tools-crosshair-layer-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
tools-crosshair-layer-z-index | number | Define node z-index |
tools-crosshair-mouseradius | number | Device radius for mouse events |
tools-crosshair-name | string | Name of the tool used like cross-hair etc |
tools-crosshair-touchradius | number | Device radius for touch events |
tools-crosshair | Options | Crosshair cursor options |
tools-crosshair-east | LabelSettings | JSON for east label. See setLabelSettings for more details |
tools-crosshair-east-alignment | AnchorType | Alignment of the text |
tools-crosshair-east-cssclass | string | The css class name of this node |
tools-crosshair-east-displaymode | LabelDisplayMode | Label display mode, default is LabelDisplayMode.Shape |
tools-crosshair-east-fillstyle | string | Fill style of the text |
tools-crosshair-east-fillstyle | FillStyle | Fill style of the text |
tools-crosshair-east-linestyle | string | Line style of the text border |
tools-crosshair-east-linestyle | LineStyle | Line style of the text border |
tools-crosshair-east-offset | number | string | Label offset between the text and cross-hair cursor, use padding in case of undefined |
tools-crosshair-east-padding | number | |
tools-crosshair-east-paddingstyle | number | string | Padding style between the text and the border |
tools-crosshair-east-radius | number | Radius of the text shape border |
tools-crosshair-east-textstyle | string | Text style of the text |
tools-crosshair-east-textstyle | TextStyle | Text style of the text |
tools-crosshair-east-tooltip | Properties | Tooltip properties, this options applyes only in case if displaymode:LabelDisplayMode.DivElement |
tools-crosshair-east-tooltip-alignment | AnchorType | Tooltip alignment according to the point set by offsets |
tools-crosshair-east-tooltip-autoflip | boolean | True to automatically flip tooltip alignment if it doesn't fit the window |
tools-crosshair-east-tooltip-cssclasses | string | CSS classes' names to be applied for tooltip 'cg-tooltip' by default |
tools-crosshair-east-tooltip-delay | number | |
tools-crosshair-east-tooltip-hidedelay | number | Auto hide in millisecond, 0 means false and autohide is disabled |
tools-crosshair-east-tooltip-offsetx | number | Offset of tooltip from current position by x in pixels |
tools-crosshair-east-tooltip-offsety | number | Offset of tooltip from current position by y in pixels |
tools-crosshair-east-tooltip-orientation | Orientation | Tooltip orientation |
tools-crosshair-east-tooltip-showdelay | number | Delay between displaying tooltip, 0 means false and tooltip shows immediately |
tools-crosshair-east-tooltip-size | Range | Client size range |
tools-crosshair-east-visible | boolean | Visibility of the text |
tools-crosshair-east-z-index | number | Define node z-index |
tools-crosshair-fillstyle | string | Fillstyle of the cross-hair (used only with radius) |
tools-crosshair-fillstyle | FillStyle | Fillstyle of the cross-hair (used only with radius) |
tools-crosshair-horizontal | string | Linestyle for horizontal line |
tools-crosshair-horizontal | LineStyle | Linestyle for horizontal line |
tools-crosshair-keeporientation | boolean | Preserve annotation's orientation of labels for different |
tools-crosshair-labels | boolean | If 'none' of false - do not create labels |
tools-crosshair-linestyle | string |
|
tools-crosshair-linestyle | LineStyle |
|
tools-crosshair-north | LabelSettings | JSON for north label. See setLabelSettings for more details |
tools-crosshair-outlinestyle | string | OutLinestyle for both lines |
tools-crosshair-outlinestyle | LineStyle | OutLinestyle for both lines |
tools-crosshair-radius | number | Radius of the cross-hair center target |
tools-crosshair-south | LabelSettings | JSON for south label. See setLabelSettings for more details |
tools-crosshair-symbol | SymbolShape | Symbol of the cross-hair |
tools-crosshair-symbol-alignment | AnchorType | Alignment according to the anchor point |
tools-crosshair-symbol-alignment | AnchorType | Anchor type of symbol |
tools-crosshair-symbol-ax | number | Anchor x position |
tools-crosshair-symbol-ay | number | Anchor y position |
tools-crosshair-symbol-cache | boolean | Set it to true if you want to cache complex geometry to raster |
tools-crosshair-symbol-clipstyle | ClipStyle | Clipping style |
tools-crosshair-symbol-clipstyle | GraphicsPath | Clipping style |
tools-crosshair-symbol-cssclass | string | The css class name of this node |
tools-crosshair-symbol-csscursor | string | CSS cursor associated with node |
tools-crosshair-symbol-cssstyle | string | CSS style to be applied to inserted elements |
tools-crosshair-symbol-fillstyle | string | Style applied on fill |
tools-crosshair-symbol-fillstyle | FillStyle | Style applied on fill |
tools-crosshair-symbol-height | number | Shape height |
tools-crosshair-symbol-id | string | number | Id of the node, its a unique identifier |
tools-crosshair-symbol-ispointingup | boolean | Defines whether the shape is always pointing up |
tools-crosshair-symbol-layoutstyle | LayoutStyle | Layout style to specify how to lay out shape |
tools-crosshair-symbol-linestyle | string | Style applied on outline |
tools-crosshair-symbol-linestyle | LineStyle | Style applied on outline |
tools-crosshair-symbol-localtransform | Transformation | Local transformation |
tools-crosshair-symbol-margins | number | string | It has properties for specifying the margins for each side |
tools-crosshair-symbol-maxdimension | Dimension | Maximum size for rendering |
tools-crosshair-symbol-mindimension | Dimension | Minimum size for rendering |
tools-crosshair-symbol-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
tools-crosshair-symbol-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
tools-crosshair-symbol-opacityblendmode | BlendMode | Node opacity mode to blend it |
tools-crosshair-symbol-painter | string | A function with has parameters: symbol, box, context |
tools-crosshair-symbol-painterproperties | any | Symbol's painter's properties |
tools-crosshair-symbol-preserveaspectratio | boolean | Preserve aspect ratio of the anchored shape |
tools-crosshair-symbol-preservereadingorientation | boolean | Preserve reading orientation for local transform |
tools-crosshair-symbol-preserverightangle | boolean | Preserve right angle for local transformation |
tools-crosshair-symbol-rotationangle | number | Rotation angle at anchor |
tools-crosshair-symbol-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
tools-crosshair-symbol-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
tools-crosshair-symbol-sizeisindevicespace | boolean | Is coordinate in device space |
tools-crosshair-symbol-tag | any | Custom 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 |
tools-crosshair-symbol-transform | string | Additional CSS transformation applied to node or 'none' |
tools-crosshair-symbol-transform | Transformation | Additional CSS transformation applied to node or 'none' |
tools-crosshair-symbol-useminmaxdimensions | boolean | Use the min max dimensions to limit visual size |
tools-crosshair-symbol-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
tools-crosshair-symbol-width | number | Shape width |
tools-crosshair-symbol-z-index | number | Define node z-index |
tools-crosshair-textstyle | string |
|
tools-crosshair-textstyle | TextStyle |
|
tools-crosshair-vertical | string | Linestyle for vertical line |
tools-crosshair-vertical | LineStyle | Linestyle for vertical line |
tools-crosshair-west | LabelSettings | JSON for west label. See setLabelSettings for more details |
tools-horizonpicker | Options | Horizon picker options |
tools-horizonpicker | Options | Horizon picker options |
tools-horizonpicker-erasershape | AnchoredShape | Eraser shape (default is red square) |
tools-horizonpicker-erasershape-alignment | AnchorType | Alignment according to the anchor point |
tools-horizonpicker-erasershape-ax | number | Anchor x position |
tools-horizonpicker-erasershape-ay | number | Anchor y position |
tools-horizonpicker-erasershape-clipstyle | ClipStyle | Clipping style |
tools-horizonpicker-erasershape-clipstyle | GraphicsPath | Clipping style |
tools-horizonpicker-erasershape-cssclass | string | The css class name of this node |
tools-horizonpicker-erasershape-csscursor | string | CSS cursor associated with node |
tools-horizonpicker-erasershape-cssstyle | string | CSS style to be applied to inserted elements |
tools-horizonpicker-erasershape-fillstyle | string | Style applied on fill |
tools-horizonpicker-erasershape-fillstyle | FillStyle | Style applied on fill |
tools-horizonpicker-erasershape-height | number | Shape height |
tools-horizonpicker-erasershape-id | string | number | Id of the node, its a unique identifier |
tools-horizonpicker-erasershape-ispointingup | boolean | Defines whether the shape is always pointing up |
tools-horizonpicker-erasershape-layoutstyle | LayoutStyle | Layout style to specify how to lay out shape |
tools-horizonpicker-erasershape-linestyle | string | Style applied on outline |
tools-horizonpicker-erasershape-linestyle | LineStyle | Style applied on outline |
tools-horizonpicker-erasershape-localtransform | Transformation | Local transformation |
tools-horizonpicker-erasershape-margins | number | string | It has properties for specifying the margins for each side |
tools-horizonpicker-erasershape-maxdimension | Dimension | Maximum size for rendering |
tools-horizonpicker-erasershape-mindimension | Dimension | Minimum size for rendering |
tools-horizonpicker-erasershape-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
tools-horizonpicker-erasershape-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
tools-horizonpicker-erasershape-opacityblendmode | BlendMode | Node opacity mode to blend it |
tools-horizonpicker-erasershape-preserveaspectratio | boolean | Preserve aspect ratio of the anchored shape |
tools-horizonpicker-erasershape-preservereadingorientation | boolean | Preserve reading orientation for local transform |
tools-horizonpicker-erasershape-preserverightangle | boolean | Preserve right angle for local transformation |
tools-horizonpicker-erasershape-rotationangle | number | Rotation angle at anchor |
tools-horizonpicker-erasershape-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
tools-horizonpicker-erasershape-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
tools-horizonpicker-erasershape-sizeisindevicespace | boolean | Is coordinate in device space |
tools-horizonpicker-erasershape-tag | any | Custom 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 |
tools-horizonpicker-erasershape-transform | string | Additional CSS transformation applied to node or 'none' |
tools-horizonpicker-erasershape-transform | Transformation | Additional CSS transformation applied to node or 'none' |
tools-horizonpicker-erasershape-useminmaxdimensions | boolean | Use the min max dimensions to limit visual size |
tools-horizonpicker-erasershape-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
tools-horizonpicker-erasershape-width | number | Shape width |
tools-horizonpicker-erasershape-z-index | number | Define node z-index |
tools-horizonpicker-erasersize | number | Eraser size |
tools-horizonpicker-extendedfocus | boolean | True for extended focus |
tools-horizonpicker-focussymbol | SymbolShape | Symbol for point focus (default is red square) |
tools-horizonpicker-focusthreshold | number | Focus threshold (in devices) |
tools-horizonpicker-highlightlinestyle | string | Linestyle of highlighted horizon (default is red) |
tools-horizonpicker-highlightlinestyle | LineStyle | Linestyle of highlighted horizon (default is red) |
tools-horizonpicker-linestyle | string | Linestyle of horizon (default is red) |
tools-horizonpicker-linestyle | LineStyle | Linestyle of horizon (default is red) |
tools-horizonpicker-mode | Mode | Mode of horizon picker |
tools-horizonpicker-propagatorthresholderror | number | Propagator threshold error (in percents, must be > 0) |
tools-panning | Options | Panning options |
tools-panning | Options | Panning options |
tools-panning-acceptx | boolean | Accept x coordinates |
tools-panning-inertiacoef | number | boolean | Inertia coefficient for inertia effect |
tools-panning-panningthreshold | number | Threshold to prevent panning. If user pointer movement is under this value the panning will be ignore. WARNING: if you set positive inertia coefficient, some panning events'll be fired with null eventArgs |
tools-panning-wheelratio | number | Number that represent the number default |
tools-rubberbandzoom | Options | Rubber band zoom options |
tools-rubberbandzoom | Options | Rubber band zoom options |
tools-rubberbandzoom-mode | RubberBandRenderMode | Rubber mode |
tools-rubberbandzoom | Options | Rubber band zoom options |
tools-rubberbandzoom-acceptemptyrect | boolean | Does rubber band accept empty rect |
tools-rubberbandzoom-autodisabled | boolean | Does rubber band automatically disabled on zoom end |
tools-rubberbandzoom-fillstyle | string | Rubber band fillstyle |
tools-rubberbandzoom-fillstyle | FillStyle | Rubber band fillstyle |
tools-rubberbandzoom-linestyle | string | Rubber band linestyle |
tools-rubberbandzoom-linestyle | LineStyle | Rubber band linestyle |
tools-rubberbandzoom-restrictionarea | Rect | Specify restriction area |
tools-zoom | Options | Zoom options |
tools-zoom | Options | Zoom options |
tools-zoom-easing | Functions | Easing animation function for elastic zooming |
tools-zoom-max | number | Maximum limits for zooming (>= options.zoom.min) |
tools-zoom-min | number | Minimum limits for zooming (>= 0) |
tools-zoom-mode | Mode | Mode of pinch zooming |
tools-zoom-modifier | ModifierKey | Modifier key for zoom, default is ModifierKey.None |
tools-zoom-speed | number | Speed of zooming (>= 1) |
tools-zoom-time | number | Zooming time in ms (> 0 for elastic, 0 for instant) |
Constructors
• new SeismicViewWidget(options?)
Creates widget
| Name | Type | Description |
|---|---|---|
Optional options | SeismicPipeline | Options | options or seismic pipeline |
BaseWidget.constructor
Methods
▸ addBaseLayer(baseLayer): SeismicViewWidget
Add baseLayer to container
this
▸ addChild(node): SeismicViewWidget
Add a child node
this
▸ addCssClass(cssclass): SeismicViewWidget
Adds new css class to node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
▸ addInvalidateHandler(handler): SeismicViewWidget
Add invalidate handler
Deprecated
since 4.0, use Node.on instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
BaseWidget.addInvalidateHandler
▸ addOverlay(overlay): SeismicViewWidget
Add overlay to container
this
▸ adjustPosition(area?, vAlign?, hAlign?): SeismicViewWidget
Adjust position of node to specified area
| Name | Type | Description |
|---|---|---|
Optional area | Rect | specified area. Default to Parent Model Limits |
Optional vAlign | string | vertical alignment. It can be "top", "bottom", "center". Defaults to "top". |
Optional hAlign | string | horizontal alignment It can be "left", "right", "center". Defaults to "left". |
this
▸ Protected applyOpacity(context): SeismicViewWidget
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
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
this
▸ Protected applyResponsiveStyle(): void
Apply a responsive style rules it is exists
void
BaseWidget.applyResponsiveStyle
▸ beginExport(options?): SeismicViewWidget
Used to prepare object before exporting
| Name | Type | Description |
|---|---|---|
Optional options | ExportToPdfOptions | export options |
this
▸ changeBaseLayerOrder(overlay, order, anchor?): SeismicViewWidget
Changes the z-order of the baseLayer.
| Name | Type | Description |
|---|---|---|
overlay | Node | |
order | NodeOrder | position to be added |
Optional anchor | Node | anchor node to specify changeOrder with respect to this node |
this
BaseWidget.changeBaseLayerOrder
▸ changeChildOrder(node, order, anchor?): SeismicViewWidget
changes the z-order of the nodes being rendered.
| Name | Type | Description |
|---|---|---|
node | Node | any child added in the Composite node |
order | NodeOrder | position to be added |
Optional anchor | Node | anchor node to specify changeOrder with respect to this node |
this
▸ changeOverlayOrder(overlay, order, anchor?): SeismicViewWidget
Changes the z-order of the overlay.
| Name | Type | Description |
|---|---|---|
overlay | Node | child overlay |
order | NodeOrder | position to be added |
Optional anchor | Node | anchor node to specify changeOrder with respect to this node |
this
▸ checkCollision(context): boolean
Check culling Returns true if object is inside of renderable area
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
boolean
true if node is collided
▸ clearBaseLayers(disposeBaseLayers?): SeismicViewWidget
Remove all child baseLayers from group
| Name | Type | Description |
|---|---|---|
Optional disposeBaseLayers | boolean | automatically dispose baseLayers. If it is true then method dispose is called for each baseLayer, false by default |
this
▸ clearCache(): SeismicViewWidget
Clear cache
this
▸ clearChildren(disposeChildren?): SeismicViewWidget
Remove all child nodes from this composite group
| Name | Type | Description |
|---|---|---|
Optional disposeChildren | boolean | automatically dispose children. If it is true then method dispose is called for each child. |
this
▸ clearOverlays(disposeOverlays?): SeismicViewWidget
Remove all child overlays from group
| Name | Type | Description |
|---|---|---|
Optional disposeOverlays | boolean | automatically dispose overlays. If it is true then method dispose is called for each overlay, false by default |
this
All subclasses should override copyConstructor or provide custom implementation for this method
clone
▸ connectStyle(style, type, callback): SeismicViewWidget
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
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this
▸ connectTool(tool): SeismicViewWidget
Connect a new tool with a toolname to the widget
| Name | Type | Description |
|---|---|---|
tool | AbstractTool | AbstractTool[] | tool associated with the widget |
this
▸ Protected copyConstructor(src, deepCopy?): SeismicViewWidget
Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.
this
▸ disconnectStyle(style, type, callback): SeismicViewWidget
Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this
▸ disconnectTool(tool): SeismicViewWidget
Disconnect the tool from the widget
| Name | Type | Description |
|---|---|---|
tool | AbstractTool | AbstractTool[] | tool to disconnect |
this
▸ dispose(disposePipeline?): 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.
| Name | Type | Description |
|---|---|---|
Optional disposePipeline | boolean | dispose pipeline. it is false by default |
void
▸ Protected drawBorder(localContext, bounds?): SeismicViewWidget
Draws a rectangle at the bounding box (in parent coordinates)
| Name | Type | Description |
|---|---|---|
localContext | RenderingContext | The local rendering context |
Optional bounds | Rect | group bounds |
this
▸ enableClipping(doClip): SeismicViewWidget
Enables or disables clipping of this node. If enabled, shapes will not be rendered outside of its bounds.
| Name | Type | Description |
|---|---|---|
doClip | boolean | enable clipping on this node |
this
▸ enableEventPropagation(enable): SeismicViewWidget
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();| Name | Type | Description |
|---|---|---|
enable | boolean | enable |
this
BaseWidget.enableEventPropagation
▸ enablePickingChildren(enable): SeismicViewWidget
Enables or disables picking children
| Name | Type | Description |
|---|---|---|
enable | boolean | enable picking children |
this
BaseWidget.enablePickingChildren
▸ endExport(options?): SeismicViewWidget
Used to restore object's state after exporting
| Name | Type | Description |
|---|---|---|
Optional options | ExportToPdfOptions | export options |
this
▸ enumerateNodes(callback, target?): void
Executes a provided function once for each child node
| Name | Type | Description |
|---|---|---|
callback | Callback<Node> | provided function |
Optional target | QueryBuilder<any> | target to pass to callback as a second parameter |
void
▸ execute(delegate): SeismicViewWidget
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");
});| Name | Type | Description |
|---|---|---|
delegate | (this: SeismicViewWidget) => void | Function to execute |
The result if any or this
▸ execute<T>(delegate): T
| Name |
|---|
T |
| Name | Type |
|---|---|
delegate | (this: SeismicViewWidget) => T |
T
▸ exportToPdf(options?): Promise<IWritable>
Exports the widget content as a PDF file, user has option to select the scale of track in pdf.
| Name | Type | Description |
|---|---|---|
Optional options | ExportToPdfOptions | option to specify paper parameters and header and footer |
Promise<IWritable>
promise with output stream
▸ Protected filter(context): boolean
Filter node
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
boolean
flag filter flag ("true" to render node; "false" otherwise)
▸ fitToBounds(silent?): SeismicViewWidget
Fit content to bounds
| Name | Type | Description |
|---|---|---|
Optional silent | boolean | optional parameter to synchronize limits |
this
▸ fitToHeight(silent?): SeismicViewWidget
Fit content to height
| Name | Type | Description |
|---|---|---|
Optional silent | boolean | optional parameter to synchronize limits |
this
▸ fitToWidth(silent?): SeismicViewWidget
Fit content to width
| Name | Type | Description |
|---|---|---|
Optional silent | boolean | optional parameter to synchronize limits |
this
▸ getAnimationStyle(): AnimationStyle
Return animation style
animationStyle current animation style
▸ getAnnotation(location): Group<Node>
Return the node at the specific annotation
| Name | Type | Description |
|---|---|---|
location | AnnotationLocation | position to return the node for |
▸ getAutoModelLimitsMode(): boolean
Get Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds
boolean
mode
BaseWidget.getAutoModelLimitsMode
▸ getAutoModelLimitsStrategy(): ModelLimitsStrategy
Get Model Limits Logics Strategy
strategy
BaseWidget.getAutoModelLimitsStrategy
▸ getBaseLayer(index): Node
Return baseLayer at specified index
| Name | Type | Description |
|---|---|---|
index | number | index at which to get the baseLayer for |
track
▸ getBaseLayers<S>(predicate, modify?): Iterator<Node>
Return iterator by baseLayers nodes
| Name | Type |
|---|---|
S | extends Node<S> |
| Name | Type | Description |
|---|---|---|
predicate | (value: Node) => value is S | a filter function |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
▸ getBaseLayers(filter?, modify?): Iterator<Node>
Returns an iterator for child baseLayers. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.
Example
// Gets a writable iterator
const it = node.getOverlays(null, true);| Name | Type | Description |
|---|---|---|
Optional filter | (node: Node) => boolean | A filter function. Returns all overlays if null. |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
An iterator for child overlays.
▸ getBaseLayersCount(): number
Returns amount of baseLayers
number
▸ getBounds(): Rect
Get the bounds in the parents model space. If bounds are not set, then parent model limits are used.
current bounds
▸ getCache(): Cache
Return cache strategy to be used to cache children nodes
cache
▸ getChild(i): Node
Return node by index
| Name | Type | Description |
|---|---|---|
i | number | index of the node |
▸ getChildren<S>(predicate, modify?): Iterator<S>
Return iterator by child nodes
| Name | Type |
|---|---|
S | extends Node<S> |
| Name | Type | Description |
|---|---|---|
predicate | (value: Node) => value is S | a filter function |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
Iterator<S>
▸ getChildren(filter?, modify?): Iterator<Node>
Returns an iterator for child nodes. The iterator does not support adding or deleting items from children by default. If it is necessary to modify a collection of children, pass true as the last parameter.
Example
// Gets a writable iterator
const it = node.getChildren(null, true);| Name | Type | Description |
|---|---|---|
Optional filter | (node: Node) => boolean | A filter function. Returns all nodes if null. |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
An iterator for child nodes.
▸ getChildrenCount(): number
Return number of child nodes
number
▸ getClassName(): string
string
▸ getClipStyle(): ClipStyle
Gets the current clipping style
clipping style
▸ getCollectPerformanceInformation(): boolean
Gets collect performance information mode enabled
boolean
true if collection performance information mode enabled
▸ getColorBarPipeline(): SeismicPipeline
Return pipeline to be used for colorbar
Seismic Pipeline
▸ getContentOrientation(): Orientation
Return content orientation
content orientation
BaseWidget.getContentOrientation
▸ getContentsArea(transformation?): Rect
Return area without paddings. Model limits are mapped to content area, where children are layout.
| Name | Type | Description |
|---|---|---|
Optional transformation | Transformation | scene transformation |
▸ getContentsTransform(): Transformation
getContentsTransform() retrieves the world transformation of the node.
transformation from model coordinates to bounds of the group
BaseWidget.getContentsTransform
▸ getCss(): CssStyle
Return CSS style
▸ getCssClass(): string
Returns css class name to be used to apply CSS style
string
the css class name
▸ getCssClasses(): string[]
Gets list of css class names which applied to this node
string[]
▸ getCssTransform(): string
Returns CSS transformation
string
▸ getData(getDataOptions?): DataOptionsOut
Get widget options
| Name | Type | Description |
|---|---|---|
Optional getDataOptions | Object | optional parameter to specify additional request to get colormap |
Optional getDataOptions.no-data | boolean |
options
▸ getDesiredHeight(): string | number
Returns desired height of the group as a layoutable object This method is a helper method to get access to getLayoutStyle()
string | number
desired height ("undefined" by default)
▸ getDesiredWidth(): string | number
Returns desired width of the group as a layoutable object. This method is a helper method to get access to getLayoutStyle()
string | number
desired width ("undefined" by default)
▸ getDeviceLimits(): Rect
Return device limits
▸ getExportElement(options?): CompositeDocumentElement
Returns exportable element
| Name | Type | Description |
|---|---|---|
Optional options | ExportToPdfOptions | export options |
return exportable element
▸ getFillStyle(): FillStyle
Return fill style
fillStyle current fill style
▸ getId(): string | number
Returns the associated identifier of the node
string | number
The node's id
▸ getInfiniteMode(): boolean
Return infinity mode flag
boolean
flag
▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>
Gets invalidate method
AttributeCallback<EventDispatcher>
method to invalidate this object
BaseWidget.getInvalidateMethod
▸ getLayout(): Layout
Returns layout associated with the group
layout
▸ getLayoutStyle(): LayoutStyle<string | number>
return desired layout style
LayoutStyle<string | number>
▸ getLineStyle(): LineStyle
Return border style
▸ getLocalTransform(): Transformation
Retrieves the transformation of bounds to parent
transform the local transform.
▸ getManipulatorLayer(): Layer<Node>
Return manipulator layer
▸ getManipulatorType(): ManipulatorType
Returns active manipulator type
▸ getMarginsStyle(): SpaceStyle<string | number>
Return margins style
SpaceStyle<string | number>
Returns the seismic model node
▸ getModelLimits(): Rect
Gets model limits, the limits of this groups inside space
the current model limits
▸ getName(): string
Returns the node name
string
The node name
▸ getOpacity(): number
Returns current node opacity
number
opacity
▸ getOpacityBlendMode(): BlendMode
Returns current node opacity
opacity blend mode
BaseWidget.getOpacityBlendMode
▸ getOptions(): OptionsBaseOut
▸ getOrientation(): Orientation
Returns seismic trace orientation
seismic trace orientation
▸ getOverlay(index): Node
Return overlay at specified index
| Name | Type | Description |
|---|---|---|
index | number | index at which to get the overlay for |
track
▸ getOverlayAt(index): Node
Return overlay at specified index
Deprecated
since 4.2 use getOverlay instead
| Name | Type | Description |
|---|---|---|
index | number | index at which to get the overlay for |
track
▸ getOverlayLayer(): Layer<Node>
Returns manipulator overlay to draw shapes that should move with the model
▸ getOverlays<S>(predicate, modify?): Iterator<Node>
Return iterator by overlays nodes
| Name | Type |
|---|---|
S | extends Node<S> |
| Name | Type | Description |
|---|---|---|
predicate | (value: Node) => value is S | a filter function |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
▸ getOverlays(filter?, modify?): Iterator<Node>
Returns an iterator for child overlays. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.
Example
// Gets a writable iterator
const it = node.getOverlays(null, true);| Name | Type | Description |
|---|---|---|
Optional filter | (node: Node) => boolean | A filter function. Returns all overlays if null. |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
An iterator for child overlays.
▸ getOverlaysCount(): number
Returns amount of overlays
number
▸ getPaddingStyle(): SpaceStyle<string | number>
Return padding style
SpaceStyle<string | number>
padding
▸ getParent(): Node
Return parent node
parent node
▸ getPipeline(): SeismicPipeline
returns active pipeline
pipeline
▸ getPreferredSize(): Rect
Return preferred size to layout children
▸ getProperties(context?): OptionsOut
Gets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional context | ISerializationContext | serialization context |
properties object
▸ getProperty(name): any
Gets dynamic property by name. These properties can be used as a property bags
| Name | Type | Description |
|---|---|---|
name | string | property name |
any
▸ getPropertyKeys(): string[]
Returns known properties keys
string[]
▸ getRenderingFilter(): IFilter
Return filter to be used for rendering and picking
current filter
▸ getResponsiveStyle(): ResponsiveStyle
Return responsive style
▸ getRoot(): Node
Returns root node.
If node doesn't have parent then it returns itself.
the root node
▸ getScaleOptions(): Required<ScaleOptions>
Returns scale options.
Required<ScaleOptions>
object
▸ getScaleScrollStrategy(): Delegate
Gets scale scroll strategy
scale scroll strategy
BaseWidget.getScaleScrollStrategy
▸ getSceneTransform(): Transformation
Returns transformation from node to root scene
a transformation from node to root scene
▸ getSeismicImage(): SeismicImage
return active seismic image
▸ getSeismicModel(): Group<Node>
Returns the group, which contains seismic images
▸ getSeismicModelLimits(): Rect
return seismic model limits
▸ getTag(): any
Returns the object associated with the node by user.
any
The node's user-object
▸ getTitle(): Title
Gets widget title
title
▸ getTool(): CompositeTool
Returns root tool associated to this widget
▸ getToolByName<T>(toolName): Tools[T]
Returns the tool matching the given name.
This function also accepts tool 'path' instead of absolute name.
For example:
getToolByName("compositeTool.panningTools.trackPanning.TrackPanning")
Would return the same tool as
getToolByName("TrackPanning")
As long as there is only one tool named "TrackPanning" in this composite
See listToolsNames()
| Name | Type |
|---|---|
T | extends string |
| Name | Type | Description |
|---|---|---|
toolName | T | The tool name or path |
Tools[T]
▸ getToolByType(toolType): AbstractTool
Returns the tool matching the given type. or null if nothing is matching the tool type
For example:
getToolByType(geotoolkit.controls.tools.Selection)
Would return the same tool as
getToolByName("pick")
| Name | Type | Description |
|---|---|---|
toolType | ClassType<any> | toolType of the tool |
▸ getTraceHeader(headerName): FieldDesc
Returns header description, if header exists
| Name | Type | Description |
|---|---|---|
headerName | string | header name |
header description
▸ getTraceHeaderAxis(headerField): TraceHeaderAxis
Returns information about shapes like axis and labels associated with the header
| Name | Type | Description |
|---|---|---|
headerField | FieldDesc | "TraceNumber" | header field description, accept only 'TraceNumber' as a string |
helper, information about shapes associated with header
▸ getTraceHeaderVisible(headerField): boolean
Check if the trace header is visible
| Name | Type | Description |
|---|---|---|
headerField | FieldDesc | "TraceNumber" | field to check visibility, accept only 'TraceNumber' as a string |
boolean
▸ getTraceHeaders(): string[]
Returns the array of available headers
string[]
array of available headers
▸ getVisible(): boolean
Return visibility of the node
boolean
true if node is visible
▸ getVisibleDeviceLimits(ignoreModelLimits?): Rect
Return visible device limits
| Name | Type | Description |
|---|---|---|
Optional ignoreModelLimits | boolean | flag defines whether to ignore ModelLimits or not |
BaseWidget.getVisibleDeviceLimits
▸ getVisibleModelLimits(ignoreModelLimits?): Rect
Return visible model limits
| Name | Type | Description |
|---|---|---|
Optional ignoreModelLimits | boolean | flag defines whether to ignore ModelLimits or not |
BaseWidget.getVisibleModelLimits
▸ getVisibleSeismicDeviceLimits(): Rect
return seismic model limits
▸ getVisibleSeismicModelLimits(ignoreModelLimits?): Rect
Returns seismic visible model limits
| Name | Type | Description |
|---|---|---|
Optional ignoreModelLimits | boolean | flag defines whether to ignore model limits or not. By default this option is false and visible limits will be intersected with model limits of the seismic |
▸ getWidgetTools(): AbstractCompositeTool
Return widgets tool
▸ getWorldTransform(): Transformation
Retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.
▸ getZIndex(): number
Returns node z-index (null if not set)
number
▸ hasCssClass(cssClass): boolean
Check if node has specified css class
| Name | Type | Description |
|---|---|---|
cssClass | string | css class name |
boolean
▸ 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
▸ indexOfBaseLayer(baseLayer): number
Return index of overlay ( index of the specified child or -1 if baseLayer is not found)
| Name | Type | Description |
|---|---|---|
baseLayer | Node | baseLayer to check index |
number
▸ indexOfChild(node): number
Return index of child ( index of the specified child or -1 if node is not found)
| Name | Type | Description |
|---|---|---|
node | Node | node to check index |
number
▸ indexOfOverlay(overlay): number
Return index of overlay ( index of the specified child or -1 if overlay is not found)
| Name | Type | Description |
|---|---|---|
overlay | Node | overlay to check index |
number
▸ Protected initializeTools(options?): SeismicViewWidget
function call in the constructor to initialize tools in the widget
| Name | Type | Description |
|---|---|---|
Optional options | ToolsOptions | tools options |
this
▸ insertBaseLayer(index, baseLayer): SeismicViewWidget
Insert child baseLayer at specified index
| Name | Type | Description |
|---|---|---|
index | number | specified index |
baseLayer | Node | a baseLayer to add |
this
▸ insertChild(index, node): SeismicViewWidget
Insert child node at specified index
| Name | Type | Description |
|---|---|---|
index | number | specified index |
node | Node | a child node to add |
this
▸ insertOverlay(index, overlay): SeismicViewWidget
Insert child overlay at specified index
| Name | Type | Description |
|---|---|---|
index | number | specified index |
overlay | Node | a overlay to add |
this
▸ invalidate(bounds?, force?): SeismicViewWidget
Invalidate node
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | optional rectangular area to be invalidated, or force flag if rectangle is empty |
Optional force | boolean | optional boolean parameter that can force invalidation |
this
▸ invalidateLayout(propagate?): SeismicViewWidget
Notify that layout is invalidated. Send event Events.LayoutInvalidated
| Name | Type | Description |
|---|---|---|
Optional propagate | boolean | propagate invalidate layout to parent |
this
▸ invalidateParent(bounds?, force?): SeismicViewWidget
Invalidate parent area
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | area to invalidate |
Optional force | boolean | force |
this
▸ isClippingEnabled(): boolean
Returns if clipping is enabled or not for this node.
boolean
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
▸ isEventPropagationEnabled(): boolean
Return true if event propagation is enabled from child to parent
boolean
BaseWidget.isEventPropagationEnabled
▸ isHorizontalFlip(): boolean
Return true if the representation is flipped horizontally
boolean
flip
▸ isLayoutInvalidated(): boolean
Return true if layout is invalid
boolean
BaseWidget.isLayoutInvalidated
▸ isNotificationEnabled(): boolean
return state of notification
boolean
current notification state
BaseWidget.isNotificationEnabled
▸ isPickingChildrenEnabled(): boolean
Returns if picking children is enabled or not for this node.
boolean
pickingChildren
BaseWidget.isPickingChildrenEnabled
▸ isSelectable(): boolean
Returns true if node can be picked/selected.
boolean
The selectable flag
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ isVerticalFlip(): boolean
Return true if the representation is flipped vertically
boolean
flip
▸ listToolsNames(): string[]
List all the tools contained in this composite. Prepend their parent tools parent using a '.'.
string[]
▸ loadTemplate(template, registry?): void
Load template loads the saved visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data
| Name | Type | Description |
|---|---|---|
template | string | template to be applied to current widget |
Optional registry | Registry | registry |
void
▸ moveTo(area, vAlign?, hAlign?): SeismicViewWidget
MoveTo position of node to specified area
| Name | Type | Description |
|---|---|---|
area | Rect | specified area |
Optional vAlign | string | vertical alignment. It can be "top", "bottom", "center". |
Optional hAlign | string | horizontal alignment It can be "left", "right", "center". |
this
▸ notify<E>(type, source, args?): SeismicViewWidget
Notify listeners of the Node
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event |
source | SeismicViewWidget | source who called the event |
Optional args | EventMap[E] | event arguments |
this
▸ Protected notifyRoot(event, source, args?): Node
Notify an even to root node
| Name | Type | Description |
|---|---|---|
event | string | type of event |
source | Node | source who called the event |
Optional args | any | event arguments |
this
▸ notifyStateChanged(): void
Invalidate node
Deprecated
4.0. Not use this method.
void
▸ off<E>(type?, callback?): SeismicViewWidget
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: SeismicViewWidget, args: EventMap[E]) => void | function to be called |
this
▸ on<E>(type, callback): SeismicViewWidget
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: SeismicViewWidget, args: EventMap[E]) => void | to be called |
this
▸ Protected onBoundsChanged(bounds): SeismicViewWidget
Occurs when bounds has been changed
| Name | Type | Description |
|---|---|---|
bounds | Rect | bound of the node in the parent coordinates |
this
▸ Protected onChildAdded(child): void
This method is called it child or children are added
void
▸ Protected onChildRemoved(child): void
This method is called it child or children are removed
| Name | Type | Description |
|---|---|---|
child | Node | removed child |
void
▸ Protected onColorBarLocationChanged(): void
void
▸ Protected onOrientationChanged(): SeismicViewWidget
▸ Protected onParentChanged(node): SeismicViewWidget
This method is called when parent changes. Do not call it directly.
| Name | Type | Description |
|---|---|---|
node | Node | node to change parent |
this
▸ Protected onVisibilityChanged(): void
This method is called if visibility is changed. Send event Events.VisibilityChanged
void
BaseWidget.onVisibilityChanged
▸ Protected postRendering(context, callback?): void
To be called after rendering, used for PDF output
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
Optional callback | () => void | callback to be called after rendering |
void
▸ Protected preRendering(context, callback?): void
Occurs before child rendering
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
Optional callback | () => void | callback to be called after rendering of geometry |
void
▸ rebuild(force?, changes?): SeismicViewWidget
Rebuild node. This method resets state, cache, and invalidate node.
| Name | Type | Description |
|---|---|---|
Optional force | boolean | optional boolean parameter that can force invalidation |
Optional changes | StateChanges | optional parameter to specify a reason of changes |
this
▸ registerAnimationStyle(root): void
Register animation style.
| Name | Type | Description |
|---|---|---|
root | Node | root node for node |
void
BaseWidget.registerAnimationStyle
▸ removeBaseLayer(baseLayer): SeismicViewWidget
Remove child baseLayer
this
▸ removeChild(node, disposeChildren?): SeismicViewWidget
Remove child node
| Name | Type | Description |
|---|---|---|
node | Node | Node[] | node or array of nodes to be removed |
Optional disposeChildren | boolean | automatically dispose children. If it is true then method dispose is called for each child. |
this
▸ removeCssClass(cssclass): SeismicViewWidget
Removes css class from node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
▸ removeInvalidateHandler(handler): SeismicViewWidget
Remove invalidate handler
Deprecated
since 4.0, use Node.off instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
BaseWidget.removeInvalidateHandler
▸ removeOverlay(overlay): SeismicViewWidget
Remove child overlay
this
▸ removeStateChangedHandler(handler): void
Remove invalidate handler
Deprecated
4.0. Not use this method.
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
void
▸ render(context): void
Render group
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render group |
void
▸ renderAsync(context, callback): void
Render node in asynchronous mode. This implementation doesn't support cache for now.
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
callback | () => void | callback function |
void
▸ Protected renderBackground(context, bounds): SeismicViewWidget
Render background
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render background |
bounds | Rect | group bounds |
this
▸ Protected renderBaseLayers(context): SeismicViewWidget
Render baseLayers on bottom of cache. This method does nothing, but can be implemented to render graphics on bottom of cache and between borders
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render baseLayers |
this
▸ Protected renderBaseLayersAsync(context, callback): void
Render baseLayers on bottom of cache in asynchronous mode. This method calls renderBaseLayers
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render overlays |
callback | () => void | callback function |
void
BaseWidget.renderBaseLayersAsync
▸ Protected renderChildren(context): void
Render children
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
void
▸ Protected renderChildrenAsync(context, callback): void
Render children async
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
callback | () => void | callback function to be called then all children are rendered |
void
BaseWidget.renderChildrenAsync
▸ Protected renderContent(context): void
render to specified context. This method calls preRendering, renderChildren, postRendering
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
void
▸ Protected renderContentAsync(context, callback): void
Render children in asynchronous mode
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
callback | () => void | callback function to be called then all children are rendered |
void
▸ Protected renderOverlays(context): SeismicViewWidget
Render overlays on top of cache. This method does nothing, but can be implemented to render graphics on top of cache and between borders
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render overlays |
this
▸ Protected renderOverlaysAsync(context, callback): void
Render overlays on top of cache in asynchronous mode. This method calls renderOverlays
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render overlays |
callback | () => void | callback function |
void
BaseWidget.renderOverlaysAsync
▸ resetZoom(): SeismicViewWidget
Reset zoom
this
▸ resumeUpdate(rebuild?, changes?): SeismicViewWidget
Resume auto update
| Name | Type | Description |
|---|---|---|
Optional rebuild | boolean | force rebuild |
Optional changes | StateChanges | optional parameter to specify a reason of changes |
this
▸ rotate(theta, x, y): SeismicViewWidget
Rotate bounds around a given coordinate
| Name | Type | Description |
|---|---|---|
theta | number | angle to rotate node, in radians |
x | number | x coordinate to rotate around |
y | number | y coordinate to rotate around |
this
▸ saveTemplate(registry?): string
Save template saves visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data
| Name | Type | Description |
|---|---|---|
Optional registry | Registry | registry |
string
▸ scale(scaleX, scaleY, silent?): SeismicViewWidget
scale seismic model
| Name | Type | Description |
|---|---|---|
scaleX | number | scale factor by horizontal axis |
scaleY | number | scale factor by vertical axis |
Optional silent | boolean | update view |
this
▸ setAnimationStyle(animationStyle): SeismicViewWidget
Sets animation style
| Name | Type | Description |
|---|---|---|
animationStyle | Type | animation style |
▸ setAnnotationSize(annotationSize?): SeismicViewWidget
apply size (width or height) to annotation (convenience method)
Example
widget.setAnnotationSize(
{
'west' : 50,
'east' : '10%'
});| Name | Type | Description |
|---|---|---|
Optional annotationSize | AnnotationSize | JSON to hold (width or height) of the annotation |
this
▸ setAutoModelLimitsMode(mode): SeismicViewWidget
Set Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds. This is convenient method. It creates AutoModelLimitsStrategy
| Name | Type | Description |
|---|---|---|
mode | boolean | Model Limits Logics to be used |
this
BaseWidget.setAutoModelLimitsMode
▸ setAutoModelLimitsStrategy(strategy): SeismicViewWidget
Set Model Limits Logics Strategy
| Name | Type | Description |
|---|---|---|
strategy | ModelLimitsStrategy | Model Limits logic strategy to use |
this
BaseWidget.setAutoModelLimitsStrategy
▸ setBounds(bounds): SeismicViewWidget
Sets bounds of the node in the parent coordinates
this
▸ setCache(cache, rebuild?): SeismicViewWidget
Sets cache to be used to cache
| Name | Type | Description |
|---|---|---|
cache | Cache | cache to be used |
Optional rebuild | boolean | rebuild cache |
this
▸ setChild(index, node): SeismicViewWidget
Replace child node by index
| Name | Type | Description |
|---|---|---|
index | number | index of the node |
node | Node | node |
this
▸ setClipStyle(style): SeismicViewWidget
Sets a new clipping style
| Name | Type | Description |
|---|---|---|
style | GraphicsPath | ClipStyle | Options | a new clipping style |
this
▸ setCollectPerformanceInformation(collectPerformanceInfoEnabled): SeismicViewWidget
Sets collect performance information mode enabled
| Name | Type | Description |
|---|---|---|
collectPerformanceInfoEnabled | boolean | true for collection performance information mode enabled |
this
▸ setColorBarPipeline(pipeline): SeismicViewWidget
Set pipeline to set colorbar parameters. if it is null then getPipeline is used
Example
// How to set up a new pipeline for colorbar different from main pipeline
widget.setColorBarPipeline(secondPipeline);| Name | Type | Description |
|---|---|---|
pipeline | SeismicPipeline | Seismic Pipeline |
this
▸ setContentOrientation(orientation): SeismicViewWidget
Set content orientation
| Name | Type | Description |
|---|---|---|
orientation | Orientation | content orientation |
this
BaseWidget.setContentOrientation
▸ setCss(style, merge?): SeismicViewWidget
Sets CSS style. This style will be applied for all inserted elements
| Name | Type | Description |
|---|---|---|
style | Type | CSS style to be applied to inserted elements |
Optional merge | boolean | merge flag |
this
▸ setCssClass(name): SeismicViewWidget
Sets css class name of the node to be used to apply CSS style
| Name | Type | Description |
|---|---|---|
name | string | css class name of the node |
this
▸ setCssTransform(transform): SeismicViewWidget
Set CSS transformation
| Name | Type | Description |
|---|---|---|
transform | string | Transformation | transformation css transformation instruction or Transformation instance |
this
▸ setData(options): SeismicViewWidget
Sets options and/or data
| Name | Type | Description |
|---|---|---|
options | DataOptions | options |
▸ setDesiredHeight(value, silent?): SeismicViewWidget
Sets desired height of the group as a layoutable object
| Name | Type | Description |
|---|---|---|
value | string | number | desired height to set, use 'auto' for automatic desired height |
Optional silent | boolean | silent setting |
this
▸ setDesiredWidth(value, silent?): SeismicViewWidget
Sets desired width of the group as a layoutable object
| Name | Type | Description |
|---|---|---|
value | string | number | desired width to set |
Optional silent | boolean | silent setting |
this
▸ setFillStyle(fillStyle, merge?): SeismicViewWidget
Sets fill style
| Name | Type | Description |
|---|---|---|
fillStyle | Type | a new fill style |
Optional merge | boolean | true if you want to merge fillStyle with existing attribute, false by default |
this
▸ setHorizontalFlip(enable): SeismicViewWidget
Set horizontal flip of the representation
| Name | Type | Description |
|---|---|---|
enable | boolean | enable flip |
this
▸ setId(id): SeismicViewWidget
Allows the user to associate any identifier
| Name | Type | Description |
|---|---|---|
id | string | number | object id |
this
▸ setInfiniteMode(infinityMode): SeismicViewWidget
Set infinity mode flag to draw composite without collision check
| Name | Type | Description |
|---|---|---|
infinityMode | boolean | infinity mode flag |
this
▸ setLayout(layout): SeismicViewWidget
Associate layout with a group.
| Name | Type | Description |
|---|---|---|
layout | Record<string, any> | Layout | layout instance to be set or layout properties to apply |
this
▸ Protected setLayoutInvalidated(invalidated): void
Set invalidation status
| Name | Type | Description |
|---|---|---|
invalidated | boolean | invalidated layout |
void
BaseWidget.setLayoutInvalidated
▸ setLayoutStyle(layoutStyle, silent?, merge?): SeismicViewWidget
specify desired layout style
| Name | Type | Description |
|---|---|---|
layoutStyle | LayoutStyle<string | number> | Options<string | number> | desired layout style |
Optional silent | boolean | silent setting |
Optional merge | boolean | true if you want to merge layoutStyle with existing attribute, false by default |
this
▸ setLineStyle(lineStyle, merge?): SeismicViewWidget
Sets border color Returns this
| Name | Type | Description |
|---|---|---|
lineStyle | Type | line style or options |
Optional merge | boolean | true if you want to merge lineStyle with existing attribute, false by default |
this
▸ setLocalTransform(localTransform, force?): SeismicViewWidget
Sets local transformation to be used to transform from local to parent coordinate
| Name | Type | Description |
|---|---|---|
localTransform | Transformation | local transformation for this node |
Optional force | boolean | boolean flag to force update event if transformations are equal, false by default |
this
▸ setManipulatorType(manipulatorType, active?): SeismicViewWidget
Set active manipulator type
| Name | Type | Description |
|---|---|---|
manipulatorType | ManipulatorType | enum of of Manipulator type. Panning tool, RubberBand tool, magnifier tool and picking tool. |
Optional active | boolean | state |
this
▸ setMarginsStyle(margins, merge?): SeismicViewWidget
Sets margins style
| Name | Type | Description |
|---|---|---|
margins | Type<string | number> | margins style |
Optional merge | boolean | true if you want to merge marginsStyle with existing attribute, false by default |
this
▸ setModelLimits(limits): SeismicViewWidget
Sets inner model limits
| Name | Type | Description |
|---|---|---|
limits | Type | inner limits |
this
▸ setName(name): SeismicViewWidget
Sets name of the node
| Name | Type | Description |
|---|---|---|
name | string | The node name |
this
▸ setNoDataStrategy(strategy): SeismicViewWidget
Sets function
| Name | Type | Description |
|---|---|---|
strategy | () => Shape | function should returns Shape in this.getModel().getModelLimits() bounds |
this
▸ setNotification(notify, force?): SeismicViewWidget
set notification state
| Name | Type | Description |
|---|---|---|
notify | boolean | flag set to invalidate parent or not |
Optional force | boolean | true if parent should be invalidated immediately |
this
▸ setOpacity(opacity, blendMode?): SeismicViewWidget
Sets node opacity
| Name | Type | Description |
|---|---|---|
opacity | number | node opacity from 0 to 1 |
Optional blendMode | BlendMode | opacity blend mode. If it is normal, opacity will be replaced. |
this
▸ setOptions(options?): SeismicViewWidget
Set widget options
| Name | Type | Description |
|---|---|---|
Optional options | OptionsBase | options |
this
▸ setOrientation(orientation, keepVisibleModelLimits?): SeismicViewWidget
Set seismic trace orientation
| Name | Type | Description |
|---|---|---|
orientation | Orientation | seismic orientation |
Optional keepVisibleModelLimits | boolean | keep visible model limits |
this
▸ setPaddingStyle(paddingStyle, merge?): SeismicViewWidget
Sets padding style
| Name | Type | Description |
|---|---|---|
paddingStyle | Type<string | number> | padding style |
Optional merge | boolean | true if you want to merge paddingStyle with existing attribute, false by default |
this
▸ setPipeline(pipeline, resetTransformation?): SeismicViewWidget
Set pipeline for image, colorbar and other components
| Name | Type | Description |
|---|---|---|
pipeline | SeismicPipeline | Seismic Pipeline |
Optional resetTransformation | boolean | reset transformation |
this
▸ setProperties(properties?): SeismicViewWidget
Sets all the properties pertaining to this object
Example
// change size of axes and colorbar
import {ColorBarLocation} from '@int/geotoolkit/controls/shapes/ColorBarLocation';
import {Direction} from '@int/geotoolkit/layout/VerticalBoxLayout';
widget.setOptions({
'colorbar': {
'location': ColorBarLocation.West,
'axis': {
'size': 50
},
'title': {
'size': 50
},
'colorbox': {
'size': 20
}
},
'axes': {
'headers': {
'location': ColorBarLocation.North,
'direction': Direction.TopToBottom,
'size': 30,
},
'samples': {
'size': 50
}
}
});| Name | Type | Description |
|---|---|---|
Optional properties | Options | options |
this
▸ setProperty(name, value): SeismicViewWidget
Sets dynamic property by name
| Name | Type | Description |
|---|---|---|
name | string | property name |
value | any | property value |
this
▸ setRenderingFilter(filter): SeismicViewWidget
Sets filter to be applied before rendering and picking
| Name | Type | Description |
|---|---|---|
filter | IFilter | filter to set |
this
▸ setResponsiveStyle(style): SeismicViewWidget
Sets responsive style.
| Name | Type | Description |
|---|---|---|
style | Options | ResponsiveStyle | responsive style |
this
▸ setSamplesTitle(title): SeismicViewWidget
Set samples title
| Name | Type | Description |
|---|---|---|
title | string | Title | title |
▸ setScaleOptions(scaleOptions, saveViewPoint?): SeismicViewWidget
Sets scale options. If setScaleOption() is not set, the SeismicImage assumes a default .
| Name | Type | Description |
|---|---|---|
scaleOptions | ScaleOptions | scale options |
Optional saveViewPoint | boolean | if true, scale relative to the center visible limits |
this
▸ setScaleScrollStrategy(strategy?): SeismicViewWidget
Sets scale scroll strategy
| Name | Type | Description |
|---|---|---|
Optional strategy | Delegate | scale scroll strategy |
this
BaseWidget.setScaleScrollStrategy
▸ setSeismicModelLimits(limits): SeismicViewWidget
Sets seismic model limits if auto seismic model limits is off
| Name | Type | Description |
|---|---|---|
limits | Rect | model limits |
▸ setSeismicModelTransformation(transformation): SeismicViewWidget
Attempts to set local transformation for the seismic model.
| Name | Type | Description |
|---|---|---|
transformation | Transformation | transformation to set |
this
▸ setSelectable(selectable): SeismicViewWidget
Allows to select node. If node is not selectable then child node is not selectable.
| Name | Type | Description |
|---|---|---|
selectable | boolean | flag to allow node selection |
this
▸ setSilent(bool): SeismicViewWidget
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ setTag(tag): SeismicViewWidget
Allows the user to associate any arbitrary object with the node.
| Name | Type | Description |
|---|---|---|
tag | any | The object to be associated with the node. |
this
▸ setTitle(title): SeismicViewWidget
Set widget title
| Name | Type | Description |
|---|---|---|
title | Title | title |
▸ Protected setTool(tool): SeismicViewWidget
Set root tool associated to this widget
| Name | Type | Description |
|---|---|---|
tool | CompositeTool | tool to be set |
▸ setToolsOptions(options): SeismicViewWidget
Set tools options
| Name | Type | Description |
|---|---|---|
options | ToolsOptions | tools options |
this
▸ setTraceHeaderVisible(headerField, visible): TraceHeaderAxis
This method shows or hides the header
| Name | Type | Description |
|---|---|---|
headerField | FieldDesc | "TraceNumber" | field, accept only 'TraceNumber' as a string |
visible | boolean | header visibility |
helper, information about shapes associated with header
▸ setVerticalFlip(flip): SeismicViewWidget
Set vertical flip of the representation
| Name | Type | Description |
|---|---|---|
flip | boolean | flag to set the vertical flip of the representation |
this
▸ setVisible(value): SeismicViewWidget
Sets visibility of the node. Send event Events.VisibilityChanged
| Name | Type | Description |
|---|---|---|
value | boolean | flag specifying visibility of the node |
this
▸ setVisibleModelLimits(visibleModelBounds, deviceBounds?): SeismicViewWidget
Set visible model limits
| Name | Type | Description |
|---|---|---|
visibleModelBounds | Rect | visible model limits or bounds |
Optional deviceBounds | Rect | device bounds |
this
BaseWidget.setVisibleModelLimits
▸ setVisibleSeismicModelLimits(visibleModelLimits, silent?): SeismicViewWidget
Set visible model limits
| Name | Type | Description |
|---|---|---|
visibleModelLimits | Rect | new visible model limits |
Optional silent | boolean | notification to listener on or not |
this
▸ setZIndex(value): SeismicViewWidget
Sets z-index for node (set null for default)
| Name | Type | Description |
|---|---|---|
value | number | index determining node z-position |
this
▸ shear(shx, shy): SeismicViewWidget
Shear this node's bounds
| Name | Type | Description |
|---|---|---|
shx | number | x-axis shear |
shy | number | y-axis shear |
this
▸ suspendUpdate(): SeismicViewWidget
Suspend auto update
this
▸ toString(): string
Returns a string representation of this object (generally the classname)
string
A string representation
▸ translate(dX, dY, silent?): SeismicViewWidget
translate seismic model
| Name | Type | Description |
|---|---|---|
dX | number | offset x |
dY | number | offset y |
Optional silent | boolean | update view |
this
▸ unregisterAnimationStyle(root): void
Unregister animation style.
| Name | Type | Description |
|---|---|---|
root | AnimatedNode | root node for node |
void
BaseWidget.unregisterAnimationStyle
▸ updateLayout(): SeismicViewWidget
This method updates the layout of the seismic widget and all its child components with new/modified settings.
this
▸ updateSceneTransformation(): SeismicViewWidget
Update scene transformation
this
BaseWidget.updateSceneTransformation
▸ updateState(regions?, changes?): SeismicViewWidget
Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph
| Name | Type | Description |
|---|---|---|
Optional regions | Rect[] | optional array to return invalid rectangles in the parent coordinates |
Optional changes | StateChanges | optional parameter to specify a reason of changes |
this
▸ updateSuspended(): boolean
Return state of suspend state
boolean
state of update
▸ Protected updateTimeStamp(): SeismicViewWidget
Update time stamp to indicate that Node or Children has been changed.
this
▸ zoomIn(): SeismicViewWidget
Zoom in
this
▸ zoomOut(): SeismicViewWidget
Zoom out
this
▸ Static enableSceneGraphNotification(enabled): void
Enable / disable all notifications
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets if this object sends notifications |
void
BaseWidget.enableSceneGraphNotification
▸ Static findParent<T>(node, classType, filter?): InstanceType<T>
Find root of the node with specified type
| Name | Type |
|---|---|
T | extends Constructor<any> |
| Name | Type | Description |
|---|---|---|
node | Node | node to start search |
classType | T | type of the class to search for |
Optional filter | (node: Node) => boolean | additional filter to apply |
InstanceType<T>
▸ Static findParent(node, classType, filter?): Node
Find root of the node with specified type
| Name | Type | Description |
|---|---|---|
node | Node | node to start search |
classType | string | interface name to search for |
Optional filter | (node: Node) => boolean | additional filter to apply |
▸ Static getClassName(): string
string
▸ Static isSceneGraphNotificationEnabled(): boolean
Return status of the global notification for all nodes.
boolean