MapViewWidget

Description

sealed class Tinman.AddOns.Widgets.MapViewWidget

Derived from

Widget abstract

Full source code is included in the Tinman 3D SDK download.

A GUI widget that runs a MapView.

Public / Constructors

Map​View​Widget


public constructor MapViewWidget → ()

Creates a new instance of MapViewWidget.

Public / Attributes

Angle


public attribute Angle → (get,set)

value : float64

The rotation angle in degrees, in clockwise direction.

The rotation angle of the map.

A rotation angle of 0 will make North point along the negative screen Y-axis, whereas a rotation angle of 90 will make North point along the positive screen X-axis.

Defaults to 0.

Center


public attribute Center → (get,set)

value : Vec2D

The center map coordinates.

The map coordinates that correspond to the center of the screen-space map view.

Defaults to Vec2D.Undefined.

Map​View


public attribute MapView → (get)

value : MapView

[not-null]
The map view component.

The wrapped map view component.

Pyramid


[OwnerValue]
public attribute Pyramid → (get,set)

value : ITexelPyramid

The texel pyramid or null.

The texel pyramid that represents the map content.

Scale


public attribute Scale → (get,set)

value : float64

The scale factor from screen-space to map-space. Will be clamped to ScaleRange.

The map scale factor.

Defaults to 1.

Scale​Range


public attribute ScaleRange → (get,set)

value : RangeD

The scale factor range to use for clamping Scale.

The value range for the map scale factor.

Defaults to 0..Maths.MaxDouble.