Type: Touch

From Waltz
Revision as of 13:51, 6 February 2019 by Patrick Angle (talk | contribs) (Created page with "The Touch type represents a physical interaction between a person and a piece of hardware, are are commonly provided by interactive data nodes, such as the Node: LED Process...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Touch type represents a physical interaction between a person and a piece of hardware, are are commonly provided by interactive data nodes, such as the LED Processor Input Node. Touches store three dimensions of interaction data plus a radius, although most Touches will only have an x and y coordinate along with a radius. Touches also track additional state information about themselves, including the time at which the touch was created, the vector on which the touch is moving (if the touch is moving), and its initial location.

Constructors

There are no constructors exposed by this type. Use a Simulated Touch Node to create a simulated touch.

Parameters

Type Details
uuid String Note: The parameter is read-only. The unique UUID assigned to this touch upon its creation.
id Number Note: The parameter is read-only. The sequential ID assigned to this touch upon its creation. This number is increased by 1 for every new touch that is created by Waltz.
initialLocation Point Note: The parameter is read-only. The initial location at which this touch was created.
currentLocation Point The current location of this touch. Setting this value will update the lastUpdatedMillis automatically.
radius Number The radius of this touch, in pixels. Setting this value will update the lastUpdatedMillis automatically.
vector Point Note: The parameter is read-only. The vector upon which this touch last moved.
angle Number Note: The parameter is read-only. The angle, in degrees, of the current vector's z axis.
creationTimeMillis Number Note: The parameter is read-only. The time, in milliseconds, at which this touch was created.
lastUpdatedMillis Number Note: The parameter is read-only. The time, in milliseconds, at which this touch was lasted updated.

Functions

Arguments Returns Details
invalidate() Void Marks this touch as invalid by setting its lastUpdatedMillis to 0.
equals(t) Touch t - A touch against which to compare equality. Boolean Compares two touches to determine if they represent the same touch with matching uuid, id, creationTime, initialLocation, and currentLocation.
Types
Primitives Boolean · Number · String
Objects Color · Dimension · DmxMultiverse · DmxUniverse · LocalInterface · Material · Point · RemoteAddress/IP · Scene · Time · Touch
Node Specific NdiSource · WoControlCue · WoHitTestResult · WoTimeline
Collections List · List of Lists · Map · Varargs
Special Any · Consumer · Expression · Null · Void