Property

new SuperMap3D.Property()

The interface for all properties, which represent a value that can optionally vary over time. This type defines an interface and cannot be instantiated directly.
See:

Members

readonlydefinitionChanged : Event

Gets the event that is raised whenever the definition of this property changes. The definition is considered to have changed if a call to getValue would return a different result for the same time.

readonlyisConstant : Boolean

Gets a value indicating if this property is constant. A property is considered constant if getValue always returns the same result for the current definition.

isSignAutoAvoidance : boolean

Whether to turn on automatic avoidance of signs
Default Value: false

signAvoidanceAngles : boolean

Sign avoidance range (traction line length unchanged, Angle change), an angle array with the X-axis of the screen being 0 degrees forward and the counterclockwise direction being the positive direction
Default Value: false

Methods

equals(other)Boolean

Compares this property to the provided property and returns true if they are equal, false otherwise.
Name Type Description
other Property optional The other property.
Returns:
true if left and right are equal, false otherwise.

getDraggedSigns()

Get an array of dragged signs

getValue(time, result)Object

Gets the value of the property at the provided time.
Name Type Description
time JulianDate The time for which to retrieve the value.
result Object optional The object to store the value into, if omitted, a new instance is created and returned.
Returns:
The modified result parameter or a new instance if the result parameter was not supplied.

removeSignsDraggedState(signs)

Remove the drag state of the specified sign and restore it to the previous position
Name Type Description
signs signs Array of signs

signAvoidance()

Sign avoidance once (it does not take effect when automatic avoidance turned on)
MGIS property class.

This class does not support exemplarization and requires the user to obtain it from the scene.mGISManager

new SuperMap3D.Property()

Example:

    // Create the MGISManger for the current scene
    let mGISManager = new SuperMap3D.MGISManager({ scene: scene, serverUrl:  serverUrl});
    // Get property class
    let property = mGISManager.property;

Members

readonlydefinitionChanged : Event

Gets the event that is raised whenever the definition of this property changes. The definition is considered to have changed if a call to getValue would return a different result for the same time.

readonlyisConstant : Boolean

Gets a value indicating if this property is constant. A property is considered constant if getValue always returns the same result for the current definition.

isSignAutoAvoidance : boolean

Whether to turn on automatic avoidance of signs
Default Value: false

signAvoidanceAngles : boolean

Sign avoidance range (traction line length unchanged, Angle change), an angle array with the X-axis of the screen being 0 degrees forward and the counterclockwise direction being the positive direction
Default Value: false

Methods

equals(other)Boolean

Compares this property to the provided property and returns true if they are equal, false otherwise.
Name Type Description
other Property optional The other property.
Returns:
true if left and right are equal, false otherwise.

getDraggedSigns()

Get an array of dragged signs

getValue(time, result)Object

Gets the value of the property at the provided time.
Name Type Description
time JulianDate The time for which to retrieve the value.
result Object optional The object to store the value into, if omitted, a new instance is created and returned.
Returns:
The modified result parameter or a new instance if the result parameter was not supplied.

removeSignsDraggedState(signs)

Remove the drag state of the specified sign and restore it to the previous position
Name Type Description
signs signs Array of signs

signAvoidance()

Sign avoidance once (it does not take effect when automatic avoidance turned on)