API / geotoolkit3d / scene / surface / contour / MajorMinorStrategy / 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
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
contour | Contour | |
contour-textureoptions | TextureOptions | Transformation options to use on the diffuse color texture.<br> (No effect if option.texture has not been set yet) |
contour-textureoptions-clipoutofrange | boolean | If 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-coordinatemode | TextureCoordinateMode | The texture coordinate mapping type.<br> Determine how the texture size, offset and rotation are interpreted.<br> Default is TextureCoordinateMode.Local |
contour-textureoptions-enable | boolean | Enable or disable (show or hide) the texture, for convenience |
contour-textureoptions-fliphorizontal | boolean | Mirror the texture on its own horizontal axis (U axis in UV mapping terms) |
contour-textureoptions-flipvertical | boolean | Mirror the texture on its own vertical axis (V axis in UV mapping terms) |
contour-textureoptions-opacity | number | The texture opacity, default is 1.0 (opaque) |
contour-textureoptions-rotation | number | The texture rotation around the origin point, in radian.<br> Default value is 0 |
majorstep | number | The 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] |
minorincrement | number | The 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 |
Methods
▸ clone(): MajorMinorStrategy
Clone this strategy
this
▸ equals(strategy): boolean
Check if the strategy equals this strategy
| Name | Type | Description |
|---|---|---|
strategy | MajorMinorStrategy | the strategy to test |
boolean
bool
▸ getClassName(): string
string
▸ getOptions(): Required<OptionsBase>
Get options
Required<OptionsBase>
▸ getProperties(): Required<OptionsBase>
Get options
Required<OptionsBase>
▸ setMajorStep(step): MajorMinorStrategy
Set step for major isoline
| Name | Type | Description |
|---|---|---|
step | number | the steps for major isoline in elevation unit |
this
▸ setMinorIncrement(step): MajorMinorStrategy
Set step for minor isoline
| Name | Type | Description |
|---|---|---|
step | number | the increment for minor isoline in quantity unit |
this
▸ setOptions(options): MajorMinorStrategy
Set options
| Name | Type | Description |
|---|---|---|
options | OptionsBase | the option for MajorMinorStrategy |
this
▸ setProperties(options?): MajorMinorStrategy
Set options
| Name | Type | Description |
|---|---|---|
Optional options | OptionsBase | the option for MajorMinorStrategy |
this
▸ stringify(): string
Return the options in string
string
stringify
▸ Static getClassName(): string
string