LokiObject

Base class providing common methods and properties for objects.

Constructor

new L3D.LokiObject(o)

Parameters
o Object

Optional configuration for the opbject

Properties

id String

The unique identifier of the object. Changing a node's ID can have unintended consequences.

name String

The name of the object.

onModified Signal

Fired when the object has been modified.

onNameChanged Signal

Fired when the object's name changes.

Methods

clone(options) → Object

Creates a clone of this object.

Parameters
options Object

Options for the clone method.

Returns
Object

configure(o)

Set the properties of the object from a JSON structure.

Parameters
o Object

Serialized data to configure the object with

getPropertyInfo(path) → Object

Get information about a particular property of this object.

Parameters
path String
Returns
Object

serialize() → Object

Serialize the object to a JSON structure.

Returns
Object

The serialized version of the object.

setModified()

Fires the objects onModified signal.

toJSON() → Object

Serialize the object to a JSON structure

Returns
Object

The serialized version of the object.