Last updated

API / geotoolkit3d / scene / surface / contour / MajorMinorStrategy / MajorMinorStrategy

Class: MajorMinorStrategy

contour.MajorMinorStrategy.MajorMinorStrategy

A contour's class that controls the drawing of major and minor isolines.


MajorStep variable indicates the elevation step between two adjacent major isoline, i.e. 500 feet. MinorIncrement variable indicates the minor isoline increments between two adjacent major isoline, i.e. 3 increments.
For example,
________________ major 800 ft
---------------- minor
---------------- minor
________________ major 300 ft

Table of contents

Constructors
Methods
Css Properties
Name Type Description
contourContour
contour-textureoptionsTextureOptionsTransformation options to use on the diffuse color texture.<br> (No effect if option.texture has not been set yet)
contour-textureoptions-clipoutofrangebooleanIf enabled, the textured area will be limited to the texture size.<br> By default is true (to allow OpenGL texture repeating outside of range, this need to be set to false)
contour-textureoptions-coordinatemodeTextureCoordinateModeThe texture coordinate mapping type.<br> Determine how the texture size, offset and rotation are interpreted.<br> Default is TextureCoordinateMode.Local
contour-textureoptions-enablebooleanEnable or disable (show or hide) the texture, for convenience
contour-textureoptions-fliphorizontalbooleanMirror the texture on its own horizontal axis (U axis in UV mapping terms)
contour-textureoptions-flipverticalbooleanMirror the texture on its own vertical axis (V axis in UV mapping terms)
contour-textureoptions-opacitynumberThe texture opacity, default is 1.0 (opaque)
contour-textureoptions-rotationnumberThe texture rotation around the origin point, in radian.<br> Default value is 0
majorstepnumberThe step between each major Isoline, in elevation unit. When set, the major isolines will attempt to generate on elevations multiples of majorstep. ex: if (majorstep=100, zmin=899, zmax=1202) major isolines will generate at [900, 1000, 1100, 1200]
minorincrementnumberThe number of increments between each major isoline, which will be separated by minor isolines. The number of minor isolines generated between each major isoline will be (minorincrement - 1). For example, minorincrement=2 will split the space between two major isoline in 2, separated by 1 minor Isoline. Minimum accepted value is 1

Contents

Constructors

new MajorMinorStrategy(options)

new MajorMinorStrategy(options?)

Parameters

Name Type
Optional optionsOptions
Methods

clone

clone(): MajorMinorStrategy

Clone this strategy

Returns

MajorMinorStrategy

this


equals

equals(strategy): boolean

Check if the strategy equals this strategy

Parameters

Name Type Description
strategyMajorMinorStrategythe strategy to test

Returns

boolean

bool


getClassName

getClassName(): string

Returns

string


getOptions

getOptions(): Required<OptionsBase>

Get options

Returns

Required<OptionsBase>


getProperties

getProperties(): Required<OptionsBase>

Get options

Returns

Required<OptionsBase>


setMajorStep

setMajorStep(step): MajorMinorStrategy

Set step for major isoline

Parameters

Name Type Description
stepnumberthe steps for major isoline in elevation unit

Returns

MajorMinorStrategy

this


setMinorIncrement

setMinorIncrement(step): MajorMinorStrategy

Set step for minor isoline

Parameters

Name Type Description
stepnumberthe increment for minor isoline in quantity unit

Returns

MajorMinorStrategy

this


setOptions

setOptions(options): MajorMinorStrategy

Set options

Parameters

Name Type Description
optionsOptionsBasethe option for MajorMinorStrategy

Returns

MajorMinorStrategy

this


setProperties

setProperties(options?): MajorMinorStrategy

Set options

Parameters

Name Type Description
Optional optionsOptionsBasethe option for MajorMinorStrategy

Returns

MajorMinorStrategy

this


stringify

stringify(): string

Return the options in string

Returns

string

stringify


getClassName

Static getClassName(): string

Returns

string