Constructs a new instance of AssetPanoramicsRenderPlugin, setting up panoramic support and verifying if the asset has panoramic data available.
The renderer plugin context providing access to the map, layer events, and asset details.
the component used to persist the active state of panoramic mode
whether this plugin should start in pano mode if the persisterBackend has
Mapping between visualization types to their corresponding pano point visualizers no persisted preference
Protected
Readonly
emitterAn event emitter for handling custom events.
Adds an event listener to the plugin's panoramic event context. This method delegates to the internal PanoramicEventContext, allowing external components to listen for panoramic lifecycle events.
A function to remove the listener (if supported).
Registers an event listener handle to be managed by the plugin. Managed listeners will be automatically removed when the plugin is torn down.
The event listener handle to manage.
Counts panorama points located within the given oriented box.
The oriented box geometry to test against.
If true, counts only points that are visible in oriented box and in the slicing box. If false, counts all points inside the oriented box regardless of slicing box. Usage:
Pass false
when you want the total number of points inside the given
level-oriented box without considering slicing visibility.
Example: find how many points exist in total within this oriented box.
Pass true
when you want to count only points visible with respect to slicing.
Example: check if a given limit box contains any visible points to decide
whether switching to a certain level in panorama mode is possible.
Disables the ability to enter panoramic mode by setting the underlying PanoramaSupport to a disallowed state.
Allows panoramic mode to be entered by setting the underlying PanoramaSupport to an allowed state.
Enters into the panorama mode for the pano point represented by the given id.
the id of the panorama feature
Returns the list of panoramic features available in the current layer.
Returns the current visibility state for pano points.
Hides panorama points based on the level box predicate. Used for hiding panorama points outside the level box.
Hides panorama points based on the slicing box predicate. Used for hiding panorama points outside the slicing box.
Highlight a panorama point identified by the given id, or unhover the previously hovered point.
the id of the panorama feature or null
Called when the scene is considered "ready," i.e., sufficiently loaded. Starts entering the panoramic mode if the asset supports panoramic data and panoramic-only mode is detected.
Determines if the plugin should be registered based on the asset's artifact categories. This method checks if the asset has a panoramic category, indicating that panoramic data is present and the plugin should be enabled.
The renderer plugin context providing access to the asset.
true
if the asset has a panoramic category, otherwise false
.
Tears down the plugin by removing all managed event listeners and clearing the event emitter. This method is called when the plugin is being destroyed.
The plugin context provided during teardown.
Indicates whether the application is currently in a panoramic mode.
true
if panoramic mode is active, otherwise false
.
Indicates whether the pano mode is available for the asset.
true
if panoramic mode is available, otherwise false
.
Determines whether the panoramic layer is the only available asset layer.
true
if only a panoramic layer is present, otherwise false
.
Protected
isChecks if the plugin has been torn down.
true
if the plugin has been torn down, otherwise false
.
Leaves the panoramic mode.
Sets pano points radius in meters.
Toggles visibility of pano points.
Starts the panorama mode at the closest pano point to the current camera position.
A renderer plugin for managing panoramic imagery layers associated with an asset. When panoramic data is present for the asset, this plugin initializes and controls panoramic views, allowing users to seamlessly enter and exit panoramic mode.
Remarks
This plugin interacts with PanoramaSupport to handle panoramic mode, including start-up, camera synchronization, and entering the closest panoramic position to the current camera viewpoint. It also coordinates with the LuciadRIA controller stack to manage a dedicated panoramic controller.