Reference Source
public class | source

Models

Extends:

Controller → Models

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

getModelInfo(modelId: *): *

public
public
public

setEnabled(enabled: *)

Inherited Summary

From class Controller
public

server: *

public

viewer: *

public
public

Destroys this Controller.

public

error(message: String)

Logs an error for this Controller to the JavaScript console.

public

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

Fires an event on this Controller.

public

Gets whether or not this Controller is active.

public

Gets whether or not this Controller is enabled.

public

log(message: String)

Logs a console debugging message for this Controller.

public

off(subId: String)

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

public

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

Subscribes to an event on this Controller.

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 handled.

public

setActive(active: boolean)

Activates or deactivates this Controller.

public

setEnabled(enabled: boolean)

Enables or disables this Controller.

public

warn(message: String)

Logs a warning for this Controller to the JavaScript console.

Public Constructors

public constructor() source

Public Methods

public getModelInfo(modelId: *): * source

Params:

NameTypeAttributeDescription
modelId *

Return:

*

public getModelsInfo(): * source

Return:

*

public getNumModelsLoaded(): * source

Return:

*

public setEnabled(enabled: *) source

Enables or disables this Controller.

Fires an "enabled" event on update.

Override:

Controller#setEnabled

Params:

NameTypeAttributeDescription
enabled *