FORGE. HotspotManager

new HotspotManager(viewer)

The FORGE.HotspotManager is an object that manages hotspots of the project.
Parameters:
Name Type Description
viewer FORGE.Viewer FORGE.Viewer reference.
Source:

Extends

Members

(readonly) alive :boolean

Get the alive flag value of the object.
Type:
  • boolean
Inherited From:
Source:

(readonly) all :Array.<FORGE.Hotspot3D>

Get all the hotspots.
Type:
Source:

(readonly) className :string

Get the class name of the object.
Type:
  • string
Inherited From:
Source:

(readonly) count :number

Get the hotspots count.
Type:
  • number
Source:

data :*

Get and set any custom data you want to associate to this object.
Type:
  • *
Inherited From:
Source:

debug :boolean

Get and set the debug flag.
Type:
  • boolean
Inherited From:
Source:

(readonly) onDestroy :FORGE.EventDispatcher

Get the onDestroy FORGE.EventDispatcher, this event is emitted at the end of the destroy sequence.
Type:
Inherited From:
Source:

(readonly) tags :Array

Get the tags associated to this object.
Type:
  • Array
Inherited From:
Source:

(readonly) uid :string

Get the uid of the object.
Type:
  • string
Inherited From:
Source:

warning :boolean

Get and set the warning flag.
Type:
  • boolean
Inherited From:
Source:

Methods

addConfig(config)

Add a hotspots config to the manager.
Parameters:
Name Type Description
config Array.<HotspotConfig> The config you want to add.
Source:

addTracks(config)

Add a list of tracks for the hotspots.
Parameters:
Name Type Description
config HotspotsConfig The tracks you want to add.
Source:

boot()

Boot sequence.
Source:

clear()

Clear all hotspots from the manager
Source:

destroy()

Destroy sequence
Overrides:
Source:

getByType(type) → {Array.<FORGE.Hotspot3D>}

Get hotspots by type
Parameters:
Name Type Description
type string The type of hotspots you want to get.
Source:
Returns:
Type
Array.<FORGE.Hotspot3D>

log(value)

Basic log method, log a string in the console if debug is enabled.
Parameters:
Name Type Description
value * The value you want to log in the console.
Inherited From:
Source:

update()

Update loop
Source:

warn(valuenullable)

Basic warn method, log a warn string in the console if warning is enabled.
Parameters:
Name Type Attributes Description
value string | Object <nullable>
The value you want to warn in the console.
Inherited From:
Source:

FORGE. HotspotManager

Members
Methods