Road

Method Summary
 niladdRepresentation (representation toAdd)
 nilappendNode (number x, number y, number z)
 intgetDetail ()
 intgetHeight ()
 stringgetID ()
 stringgetMaterial ()
 Object, string, InterModel, boolean, stringgetMouseButtonClickedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseButtonDoubleClickedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseButtonPressedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseButtonReleasedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseButtonTripleClickedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseEnteredListener ()
 Object, string, InterModel, boolean, stringgetMouseEnteredListener (boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseLeftListener ()
 Object, string, InterModel, boolean, stringgetMouseLeftListener (boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseMovedListener ()
 Object, string, InterModel, boolean, stringgetMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseWheelMovedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 stringgetName ()
 number, number, numbergetNodePosition (int index)
 array{}getNodes ()
 intgetNodesCount ()
 stringgetPhysicsMaterial ()
 representationgetRepresentation (string name, number type)
 representationgetRepresentationContainer ()
 array{}getRepresentations ()
 numbergetType ()
 intgetWidth ()
 booleanhasMouseButtonClickedListener (number mousekey)
 booleanhasMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseButtonDoubleClickedListener (number mousekey)
 booleanhasMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseButtonPressedListener (number mousekey)
 booleanhasMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseButtonReleasedListener (number mousekey)
 booleanhasMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseButtonTripleClickedListener (number mousekey)
 booleanhasMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseEnteredListener ()
 booleanhasMouseEnteredListener (boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseLeftListener ()
 booleanhasMouseLeftListener (boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseMovedListener ()
 booleanhasMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseWheelMovedListener (number mousekey)
 booleanhasMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasRepresentation (representation other)
 booleanhasRepresentation (string name, number type)
 booleanisCastShadowsEnabled ()
 booleanisClosed ()
 booleanisPersistent ()
 booleanisPhysicsEnabled ()
 booleanisVisible ()
 nilprint ()
 nilremoveAllNodes ()
 nilremoveAllRepresentations ()
 nilremoveMouseButtonClickedListener (number mousekey)
 nilremoveMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseButtonDoubleClickedListener (number mousekey)
 nilremoveMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseButtonPressedListener (number mousekey)
 nilremoveMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseButtonReleasedListener (number mousekey)
 nilremoveMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseButtonTripleClickedListener (number mousekey)
 nilremoveMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseEnteredListener ()
 nilremoveMouseEnteredListener (boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseLeftListener ()
 nilremoveMouseLeftListener (boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseMovedListener ()
 nilremoveMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseWheelMovedListener (number mousekey)
 nilremoveMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveNode (int index)
 nilremoveRepresentation (representation other)
 nilremoveRepresentation (string name, number type)
 nilsetCastShadowsEnabled (boolean shadows)
 nilsetClosed (boolean closed)
 nilsetDetail (int detail)
 nilsetHeight (int height)
 nilsetMaterial (string material)
 nilsetMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel)
 nilsetMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel)
 nilsetMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel)
 nilsetMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseButtonTripleClickedListener (number mousekey, Object target, string name, InterModel interactionModel)
 nilsetMouseButtonTripleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseEnteredListener (Object target, string name, InterModel interactionModel)
 nilsetMouseEnteredListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseLeftListener (Object target, string name, InterModel interactionModel)
 nilsetMouseLeftListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseMovedListener (Object target, string name, InterModel interactionModel)
 nilsetMouseMovedListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel)
 nilsetMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetNodePosition (int index, number x, number y, number z)
 nilsetNodes (array{} nodes)
 nilsetPersistent (boolean persistent)
 nilsetPhysicsEnabled (boolean physics)
 nilsetPhysicsMaterial (string physics)
 nilsetVisible (boolean visible)
 nilsetWidth (int width)

Method Detail

addRepresentation

nil addRepresentation (representation toAdd)
Adds another representation to this representation.

Parameters:
representation toAdd - Representation to be added to this representation.


appendNode

nil appendNode (number x, number y, number z)
Appends a node to the end of the road in the given position.

Parameters:
number x - The X coordinate of the node's position.
number y - The Y coordinate of the node's position.
number z - The Z coordinate of the node's position.


getDetail

int getDetail ()
Gets the detail of the road.

Returns:
int - detail of the road.


getHeight

int getHeight ()
Gets the height of the road.

Returns:
int - height of the road.


getID

string getID ()
Returns the representation ID.

Returns:
string - Representation ID.


getMaterial

string getMaterial ()
Gets the name of the Material applied to the road.

Returns:
string - Material name.


getMouseButtonClickedListener

Object, string, InterModel, boolean, string getMouseButtonClickedListener (number mousekey)
Returns the 'mouse button clicked' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonClickedListener

Object, string, InterModel, boolean, string getMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse button clicked' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonDoubleClickedListener

Object, string, InterModel, boolean, string getMouseButtonDoubleClickedListener (number mousekey)
Returns the 'mouse button double clicked' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonDoubleClickedListener

Object, string, InterModel, boolean, string getMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse button double clicked' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonPressedListener

Object, string, InterModel, boolean, string getMouseButtonPressedListener (number mousekey)
Returns the 'mouse button pressed' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonPressedListener

Object, string, InterModel, boolean, string getMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse button pressed' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonReleasedListener

Object, string, InterModel, boolean, string getMouseButtonReleasedListener (number mousekey)
Returns the 'mouse button released' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonReleasedListener

Object, string, InterModel, boolean, string getMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse button released' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonTripleClickedListener

Object, string, InterModel, boolean, string getMouseButtonTripleClickedListener (number mousekey)
Returns the 'mouse button triple clicked' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonTripleClickedListener

Object, string, InterModel, boolean, string getMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse button triple clicked' listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseEnteredListener

Object, string, InterModel, boolean, string getMouseEnteredListener ()
Returns the 'mouse entered' listener of the Road.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseEnteredListener

Object, string, InterModel, boolean, string getMouseEnteredListener (boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse entered' listener of the Road.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseLeftListener

Object, string, InterModel, boolean, string getMouseLeftListener ()
Returns the 'mouse left' listener of the Road.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseLeftListener

Object, string, InterModel, boolean, string getMouseLeftListener (boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse left' listener of the Road.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseMovedListener

Object, string, InterModel, boolean, string getMouseMovedListener ()
Returns the 'mouse moved' listener of the Road.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseMovedListener

Object, string, InterModel, boolean, string getMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse moved' listener of the Road.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseWheelMovedListener

Object, string, InterModel, boolean, string getMouseWheelMovedListener (number mousekey)
Returns the 'mouse wheel moved' listener of the Road.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseWheelMovedListener

Object, string, InterModel, boolean, string getMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse wheel moved' listener of the Road.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getName

string getName ()
Returns the name of the Road

Returns:
string - The name of the Road


getNodePosition

number, number, number getNodePosition (int index)
Returns the position of the road's chosen node.

Parameters:
int index - Index of the node

Returns:
number - Position of the road node in the X coordinate.
number - Position of the road node in the Y coordinate.
number - Position of the road node in the Z coordinate.


getNodes

array{} getNodes ()
Returns the position of all of the road's nodes.

Returns:
array{} - Position of each of the road's nodes.


getNodesCount

int getNodesCount ()
Returns the number of nodes composing the road.

Returns:
int - Number of nodes that compose the road.


getPhysicsMaterial

string getPhysicsMaterial ()
Gets the name of the physics material applied to the road.

Returns:
string - Physics material name.


getRepresentation

representation getRepresentation (string name, number type)
Returns the contained representation with the specified name and type.

Parameters:
string name - The name of the contained representation.
number type - The type of the contained representation.

Returns:
representation - The contained representation with the specified name and type.


getRepresentationContainer

representation getRepresentationContainer ()
Returns the representation that contains this representation.

Returns:
representation - The representation that contains this representation.


getRepresentations

array{} getRepresentations ()
Returns an array of the contained representations.

Returns:
array{} - Array of the contained representations.


getType

number getType ()
Returns the representation type:
2 - MODEL,
3 - LIGHT,
4 - EFFECT,
5 - PLANE,
6 - WATER,
7 - SOUND,
8 - TERRAIN_MESH_DECAL,
9 - TERRAIN_HIGHLIGHTING_DECAL,
10 - BILLBOARD,
11 - OVERLAY

Returns:
number - The type of the representation.


getWidth

int getWidth ()
Gets the width of the road.

Returns:
int - Width of the road.


hasMouseButtonClickedListener

boolean hasMouseButtonClickedListener (number mousekey)
Returns 'true' if the Road has a listener for the 'button clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
boolean - 'True' if the Road has a listener for the 'button clicked' event, otherwise 'false'.


hasMouseButtonClickedListener

boolean hasMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the Road has a listener for the 'button clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the Road has a listener for the 'button clicked' event, otherwise 'false'.


hasMouseButtonDoubleClickedListener

boolean hasMouseButtonDoubleClickedListener (number mousekey)
Returns 'true' if the Road has a listener for the 'button double clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
boolean - 'True' if the Road has a listener for the 'button double clicked' event, otherwise 'false'.


hasMouseButtonDoubleClickedListener

boolean hasMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the Road has a listener for the 'button double clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the Road has a listener for the 'button double clicked' event, otherwise 'false'.


hasMouseButtonPressedListener

boolean hasMouseButtonPressedListener (number mousekey)
Returns 'true' if the Road has a listener for the 'button pressed' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
boolean - 'True' if the Road has a listener for the 'button pressed' event, otherwise 'false'.


hasMouseButtonPressedListener

boolean hasMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the Road has a listener for the 'button pressed' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the Road has a listener for the 'button pressed' event, otherwise 'false'.


hasMouseButtonReleasedListener

boolean hasMouseButtonReleasedListener (number mousekey)
Returns 'true' if the Road has a listener for the 'button released' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
boolean - 'True' if the Road has a listener for the 'button released' event, otherwise 'false'.


hasMouseButtonReleasedListener

boolean hasMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the Road has a listener for the 'button released' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the Road has a listener for the 'button released' event, otherwise 'false'.


hasMouseButtonTripleClickedListener

boolean hasMouseButtonTripleClickedListener (number mousekey)
Returns 'true' if the Road has a listener for the 'button triple clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
boolean - 'True' if the Road has a listener for the 'button triple clicked' event, otherwise 'false'.


hasMouseButtonTripleClickedListener

boolean hasMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the Road has a listener for the 'button triple clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the Road has a listener for the 'button triple clicked' event, otherwise 'false'.


hasMouseEnteredListener

boolean hasMouseEnteredListener ()
Returns 'true' if the Road has a listener for the 'mouse entered' event, otherwise 'false'.

Returns:
boolean - 'True' if the Road has a listener for the 'mouse entered' event, otherwise 'false'.


hasMouseEnteredListener

boolean hasMouseEnteredListener (boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the Road has a listener for the 'mouse entered' event, otherwise 'false'.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the Road has a listener for the 'mouse entered' event, otherwise 'false'.


hasMouseLeftListener

boolean hasMouseLeftListener ()
Returns 'true' if the Road has a listener for the 'mouse left' event, otherwise 'false'.

Returns:
boolean - 'True' if the Road has a listener for the 'mouse left' event, otherwise 'false'.


hasMouseLeftListener

boolean hasMouseLeftListener (boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the Road has a listener for the 'mouse left' event, otherwise 'false'.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the Road has a listener for the 'mouse left' event, otherwise 'false'.


hasMouseMovedListener

boolean hasMouseMovedListener ()
Returns 'true' if the Road has a listener for the 'mouse moved' event, otherwise 'false'.

Returns:
boolean - 'True' if the Road has a listener for the 'mouse moved' event, otherwise 'false'.


hasMouseMovedListener

boolean hasMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the Road has a listener for the 'mouse moved' event, otherwise 'false'.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the Road has a listener for the 'mouse moved' event, otherwise 'false'.


hasMouseWheelMovedListener

boolean hasMouseWheelMovedListener (number mousekey)
Returns 'true' if the Road has a listener for the 'mouse wheel moved' event, otherwise 'false'.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.

Returns:
boolean - 'True' if the Road has a listener for the 'mouse wheel moved' event, otherwise 'false'.


hasMouseWheelMovedListener

boolean hasMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the Road has a listener for the 'mouse wheel moved' event, otherwise 'false'.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the Road has a listener for the 'mouse wheel moved' event, otherwise 'false'.


hasRepresentation

boolean hasRepresentation (representation other)
Returns 'true' if this representation has the other representation, otherwise 'false'.

Parameters:
representation other - The other representation.

Returns:
boolean - 'True' if this representation has the other representation, otherwise 'false'.


hasRepresentation

boolean hasRepresentation (string name, number type)
Returns 'true' if this representation has another representation with the specified name and type, otherwise 'false'.

Parameters:
string name - Name of the representation.
number type - Type of the representation

Returns:
boolean - 'True' if this representation has another representation with the specified name and type, otherwise 'false'.


isCastShadowsEnabled

boolean isCastShadowsEnabled ()
Returns True if the Road can cast shadows, otherwise false.

Returns:
boolean - True if the Road can cast shadows, otherwise false.


isClosed

boolean isClosed ()
Returns 'true' if the road is closed, otherwise 'false'.

Returns:
boolean - 'True' if the road is closed, otherwise 'false'.


isPersistent

boolean isPersistent ()
Returns true if the representation is persistent, false otherwise.

Returns:
boolean - Whether the Road is persistent or not.


isPhysicsEnabled

boolean isPhysicsEnabled ()
Returns 'true' if the road has physics, otherwise 'false'.

Returns:
boolean - 'True' if the road has physics, otherwise 'false'.


isVisible

boolean isVisible ()
Returns 'true' if the representation is visible, 'false' otherwise.

Returns:
boolean - Whether the Road is visible or not.


print

nil print ()
Prints the Road data and attributes to the console.


removeAllNodes

nil removeAllNodes ()
Remove all the road's nodes.


removeAllRepresentations

nil removeAllRepresentations ()
Removes all representations contained in this representation.


removeMouseButtonClickedListener

nil removeMouseButtonClickedListener (number mousekey)
Removes the 'mouse button clicked' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.


removeMouseButtonClickedListener

nil removeMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse button clicked' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseButtonDoubleClickedListener

nil removeMouseButtonDoubleClickedListener (number mousekey)
Removes the 'mouse button double clicked' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.


removeMouseButtonDoubleClickedListener

nil removeMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse button double clicked' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseButtonPressedListener

nil removeMouseButtonPressedListener (number mousekey)
Removes the 'mouse button pressed' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.


removeMouseButtonPressedListener

nil removeMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse button pressed' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseButtonReleasedListener

nil removeMouseButtonReleasedListener (number mousekey)
Removes the 'mouse button released' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.


removeMouseButtonReleasedListener

nil removeMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse button released' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseButtonTripleClickedListener

nil removeMouseButtonTripleClickedListener (number mousekey)
Removes the 'mouse button triple clicked' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.


removeMouseButtonTripleClickedListener

nil removeMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse button triple clicked' event listener of the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseEnteredListener

nil removeMouseEnteredListener ()
Removes the 'mouse entered' event listener of the Road.


removeMouseEnteredListener

nil removeMouseEnteredListener (boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse entered' event listener of the Road.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseLeftListener

nil removeMouseLeftListener ()
Removes the 'mouse left' event listener of the Road.


removeMouseLeftListener

nil removeMouseLeftListener (boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse left' event listener of the Road.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseMovedListener

nil removeMouseMovedListener ()
Removes the 'mouse moved' event listener of the Road.


removeMouseMovedListener

nil removeMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse moved' event listener of the Road.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseWheelMovedListener

nil removeMouseWheelMovedListener (number mousekey)
Removes the 'mouse wheel moved' event listener of the Road.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.


removeMouseWheelMovedListener

nil removeMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse wheel moved' event listener of the Road.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeNode

nil removeNode (int index)
Removes the road's chosen node.

Parameters:
int index - Index of the node


removeRepresentation

nil removeRepresentation (representation other)
Removes a representation from this representation.

Parameters:
representation other - The representation to be removed.


removeRepresentation

nil removeRepresentation (string name, number type)
Removes a representation with the specified name and type from this representation.

Parameters:
string name - Name of the representation.
number type - Type of the representation


setCastShadowsEnabled

nil setCastShadowsEnabled (boolean shadows)
Turns on/off the casting of shadows by the Road.

Parameters:
boolean shadows - Whether the Road casts shadows or not.


setClosed

nil setClosed (boolean closed)
Changes the way the road ends.

Parameters:
boolean closed - 'True' if the road is a closed circuit, otherwise 'false'.


setDetail

nil setDetail (int detail)
Changes the detail of the road.

Parameters:
int detail - Detail of the road.


setHeight

nil setHeight (int height)
Changes the height of the road.

Parameters:
int height - Height of the road.


setMaterial

nil setMaterial (string material)
Applies a material to the road.

Parameters:
string material - Material name.


setMouseButtonDoubleClickedListener

nil setMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse button double clicked' event on the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseButtonDoubleClickedListener

nil setMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse button double clicked' event on the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseButtonPressedListener

nil setMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse button pressed' event on the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseButtonPressedListener

nil setMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse button pressed' event on the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseButtonReleasedListener

nil setMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse button released' event on the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseButtonReleasedListener

nil setMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse button released' event on the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseButtonTripleClickedListener

nil setMouseButtonTripleClickedListener (number mousekey, Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse button triple clicked' event on the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseButtonTripleClickedListener

nil setMouseButtonTripleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse button triple clicked' event on the Road.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseEnteredListener

nil setMouseEnteredListener (Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse enter' event on the Road.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseEnteredListener

nil setMouseEnteredListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse enter' event on the Road.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseLeftListener

nil setMouseLeftListener (Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse leave' event on the Road.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseLeftListener

nil setMouseLeftListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse leave' event on the Road.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseMovedListener

nil setMouseMovedListener (Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse move' event on the Road.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseMovedListener

nil setMouseMovedListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse move' event on the Road.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseWheelMovedListener

nil setMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse wheel moved' event on the Road.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseWheelMovedListener

nil setMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse wheel moved' event on the Road.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setNodePosition

nil setNodePosition (int index, number x, number y, number z)
Changes the position of the chosen node

Parameters:
int index - Index of the node
number x - The X coordinate of the node's new position.
number y - The Y coordinate of the node's new position.
number z - The Z coordinate of the node's new position.


setNodes

nil setNodes (array{} nodes)
Sets the route of the road

Parameters:
array{} nodes - The nodes (x,y,z) that define the route of the road


setPersistent

nil setPersistent (boolean persistent)
Makes the Road persistent or not persistent.

Parameters:
boolean persistent - Whether the Road is persistent or not.


setPhysicsEnabled

nil setPhysicsEnabled (boolean physics)
enables/disables road physics.

Parameters:
boolean physics - 'True' to enable road physics, otherwise 'false'.


setPhysicsMaterial

nil setPhysicsMaterial (string physics)
sets the physics material of the road.

Parameters:
string physics - Physics material name


setVisible

nil setVisible (boolean visible)
Makes the Road visible or invisible.

Parameters:
boolean visible - Whether the Road is visible or not.


setWidth

nil setWidth (int width)
Changes the width of the road.

Parameters:
int width - Width of the road.