The Viewer.
Plugin configuration.
Identifies the authoring tool to include in BCF viewpoints saved by this plugin.
ID for this Plugin, unique within its Viewer.
Identifies the originating system to include in BCF viewpoints saved by this plugin.
The Viewer that contains this Plugin.
Destroys this Plugin and removes it from its Viewer.
Logs an error message to the JavaScript developer console, prefixed with the ID of this Plugin.
The error message
Fires an event at this Plugin.
The event type name
The event parameters
Saves viewer state to a BCF viewpoint.
Note that xeokit's Camera.look is the point-of-interest, whereas the BCF camera_direction is a
direction vector. Therefore, we save camera_direction as the vector from Camera.eye to Camera.look.
BCF JSON viewpoint object
Logs a message to the JavaScript developer console, prefixed with the ID of this Plugin.
The error message
Subscribes to an event fired at this Plugin.
The event
Callback fired on the event
Sets viewer state to the given BCF viewpoint.
Note that xeokit's Camera.look is the point-of-interest, whereas the BCF camera_direction is a
direction vector. Therefore, when loading a BCF viewpoint, we set Camera.look to the absolute position
obtained by offsetting the BCF camera_view_point along camera_direction.
When loading a viewpoint, we also have the option to find Camera.look as the closest point of intersection
(on the surface of any visible and pickable Entity) with a 3D ray fired from camera_view_point in
the direction of camera_direction.
BCF JSON viewpoint object, shows default visible entities and restores camera to initial default position.
Logs a warning message to the JavaScript developer console, prefixed with the ID of this Plugin.
The error message
Generated using TypeDoc
Viewer plugin that saves and loads BCF viewpoints as JSON objects.