Last updated

API / geotoolkit3d / scene / surface / contour / Contour / Contour

Namespace: Contour

contour.Contour.Contour

Table of contents

Type Aliases

Contents

Type Aliases

CommonOptions

Ƭ CommonOptions: Object

Type declaration

NameTypeDescription
highlightmode?HighlightModeDefine how the Surface will be highlighted when selected.
Default is HighlightMode.HaloHighlight.
isoline?{ count?: number ; major?: IsolineOptions ; majorminorstrategy?: MajorMinorStrategy | null ; minor?: IsolineOptions ; useglline?: boolean ; zmax?: number ; zmin?: number }The options to create isolines
isoline.count?numberThe total number of isolines to generate between zmin and zmax. Important note: This option is ignored unless option.isoline.majorminorstrategy is set to null. Default value is 10.
isoline.major?IsolineOptionsThe options to configure major isolines
isoline.majorminorstrategy?MajorMinorStrategy | nullThe stepping strategy to determine the number and positions of major / minor isolines between zmin/zmax. If this option is set to null, the option.isoline.count will be used instead.
isoline.minor?IsolineOptionsThe options to configure minor isolines
isoline.useglline?booleanWhether to use gl_line or not. If false (default) isolines will be rendered using 3D line segments, which supports anti-aliasing and customizable line width. If true, isolines will be rendered using GL lines, the OpenGL line primitive. GL lines are much faster to render but are of lower quality (no anti-aliasing), and line width behaviour is up to browsers, it might not be supported and all lines will default to a width of 1.
isoline.zmax?numberThe max elevation level for isolines
isoline.zmin?numberThe min elevation level for isolines
label?{ density?: number ; labelformatter?: LabelFormatter ; labelmaxglobalvisibleangle?: number ; labelmaxverticalrotationangle?: number ; labelmaxverticalvisibleangle?: number ; major?: LabelOptions ; minor?: LabelOptions ; opacity?: number }The options to create labels
label.density?numberthe density of labels scattered on surface. Clamp to range [1, 5].
label.labelformatter?LabelFormatterThe function that takes the elevation value and format it into the label text.
label.labelmaxglobalvisibleangle?numberthe max angle (radian) between the label facing direction (normal) and the camera direction, above which the label stop being visible.
label.labelmaxverticalrotationangle?numberthe max angle (radian) the label is allowed to rotate vertically both ways.
label.labelmaxverticalvisibleangle?numberthe max angle (radian) between the label vertical direction and the projected vertical camera direction, above which the label stop being visible.
label.major?LabelOptionsThe options to configure major label
label.minor?LabelOptionsThe options to configure minor label
label.opacity?numberthe opacity of label Deprecated since 4.2, please use label.major.style.color or label.minor.style.color to change opacity.
opacity?numberThe opacity for the surface contour, default is 1.
surface?{ enabled?: boolean }The options related to the surface
surface.enabled?booleanWhether to show surface or not. Does not affect isoline or label.

DataOptions

Ƭ DataOptions: Object

Type declaration

NameTypeDescription
data{ surface: AbstractSurfaceData ; values?: Float32Array | number[] }The data to use to create the contour
data.surfaceAbstractSurfaceDataThe surface data object to generate contours from.
data.values?Float32Array | number[]The attribute values used to colorize the contour surface

IsolineOptions

Ƭ IsolineOptions: Object

Type declaration

NameTypeDescription
color?string | ColorThe color of major isolines. When returned from Contour.getOptions(), color is converted to THREE.Color for consistency.
visible?booleanThe visibility of major isolines
width?numberThe width of major isolines

LabelFormatter

Ƭ LabelFormatter: (value: number) => string

Type declaration

▸ (value): string

Label Formatter function, where value is the label elevation value.

Parameters
Name Type
valuenumber
Returns

string


LabelOptions

Ƭ LabelOptions: Object

Type declaration

NameTypeDescription
outline?OutlineOptionsoutline options
style?Typethe style of label
visible?booleanThe visibility of major label

Options

Ƭ Options: OptionsBase & DataOptions & Options


OptionsBase

Ƭ OptionsBase: TextureOptionsIn & Merge<OptionsBase & Options, CommonOptions>


OptionsBaseOut

Ƭ OptionsBaseOut: TextureOptionsOut & Merge<OptionsBaseOut & Required<Options>, Required<CommonOptions>>