Reference Source
public class | source

AngleMeasurement

Extends:

Component → AngleMeasurement

Measures the angle indicated by three 3D points.

See AngleMeasurementsPlugin for more info.

Member Summary

Public Members
public get

Gets the angle between two connected 3D line segments, given as three positions on the surface(s) of one or more Entitys.

public set

Sets if the angle label is visible.

public get

Gets if the angle label is visible.

public set

Sets whether this AngleMeasurement indicates that its measurement is approximate.

public get

Gets whether this AngleMeasurement indicates that its measurement is approximate.

public set

Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.

public get

Gets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.

public get

Gets the color of the angle measurement.

public set

Sets the color of the angle measurement.

public get

Gets the corner Dot3D.

public set

Sets if the corner Dot3D is visible.

public get

Gets if the corner Dot3D is visible.

public set

Sets if the labels are visible.

public get

Gets if the labels are visible.

public get

Gets the origin Dot3D.

public set

Sets if the origin Dot3D is visible.

public get

Gets if the origin Dot3D is visible.

public set

Sets if the wire between the origin and the corner is visible.

public get

Gets if the wire between the origin and the corner is visible.

public

The AngleMeasurementsPlugin that owns this AngleMeasurement.

public get

Gets the target Dot3D.

public set

Sets if the target Dot3D is visible.

public get

Gets if the target Dot3D is visible.

public set

Sets if the wire between the target and the corner is visible.

public get

Gets if the wire between the target and the corner is visible.

public set

Sets whether this AngleMeasurement is visible or not.

public get

Gets whether this AngleMeasurement is visible or not.

Method Summary

Public Methods
public

setHighlighted(highlighted: *)

Sets if this DistanceMeasurement appears highlighted.

Inherited Summary

From class Component
public get

The Component that owns the lifecycle of this Component, if any.

public

True as soon as this Component has been destroyed

public

ID of this Component, unique within the Scene.

public

meta: *

Arbitrary, user-defined metadata on this component.

public

The parent Scene that contains this Component.

public

The viewer that contains this Scene.

public

clear()

Destroys all Components that are owned by this.

public

Destroys this component.

public

error(message: String)

Logs an error for this component to the JavaScript console.

public

fire(event: String, value: Object, forget: Boolean)

Fires an event on this component.

public

Returns true if there are any subscribers to the given event on this component.

public

isType(type: *): *: Boolean

Tests if this component is of the given type, or is a subclass of the given type.

public

log(message: String)

Logs a console debugging message for this component.

public

off(subId: String)

Cancels an event subscription that was previously made with Component#on or Component#once.

public

on(event: String, callback: Function, scope: Object): String

Subscribes to an event on this component.

public

once(event: String, callback: Function, scope: Object)

Subscribes to the next occurrence of the given event, then un-subscribes as soon as the event is subIdd.

public

scheduleTask(task: *)

Schedule a task to perform on the next browser interval

public

warn(message: String)

Logs a warning for this component to the JavaScript console.

Public Members

public get angle: Number source

Gets the angle between two connected 3D line segments, given as three positions on the surface(s) of one or more Entitys.

public set angleVisible: Boolean source

Sets if the angle label is visible.

public get angleVisible: Boolean source

Gets if the angle label is visible.

public set approximate: Boolean source

Sets whether this AngleMeasurement indicates that its measurement is approximate.

This is true by default.

public get approximate: Boolean source

Gets whether this AngleMeasurement indicates that its measurement is approximate.

This is true by default.

public set clickable: Boolean source

Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.

public get clickable: Boolean source

Gets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.

public get color: String source

Gets the color of the angle measurement.

The color is an HTML string representation, eg. "#00BBFF" and "blue".

public set color: String source

Sets the color of the angle measurement.

The color is given as an HTML string representation, eg. "#00BBFF" and "blue".

public get corner: Dot3D source

Gets the corner Dot3D.

public set cornerVisible: Boolean source

Sets if the corner Dot3D is visible.

public get cornerVisible: Boolean source

Gets if the corner Dot3D is visible.

public set labelsVisible: Boolean source

Sets if the labels are visible.

public get labelsVisible: Boolean source

Gets if the labels are visible.

public get origin: Dot3D source

Gets the origin Dot3D.

public set originVisible: Boolean source

Sets if the origin Dot3D is visible.

public get originVisible: Boolean source

Gets if the origin Dot3D is visible.

public set originWireVisible: Boolean source

Sets if the wire between the origin and the corner is visible.

public get originWireVisible: Boolean source

Gets if the wire between the origin and the corner is visible.

public plugin: AngleMeasurementsPlugin source

The AngleMeasurementsPlugin that owns this AngleMeasurement.

public get target: Dot3D source

Gets the target Dot3D.

public set targetVisible: Boolean source

Sets if the target Dot3D is visible.

public get targetVisible: Boolean source

Gets if the target Dot3D is visible.

public set targetWireVisible: Boolean source

Sets if the wire between the target and the corner is visible.

public get targetWireVisible: Boolean source

Gets if the wire between the target and the corner is visible.

public set visible: Boolean source

Sets whether this AngleMeasurement is visible or not.

public get visible: Boolean source

Gets whether this AngleMeasurement is visible or not.

Public Methods

public setHighlighted(highlighted: *) source

Sets if this DistanceMeasurement appears highlighted.

Params:

NameTypeAttributeDescription
highlighted *