Class: AutorotateKeypointsPlugin

PSV.plugins~AutorotateKeypointsPlugin

new AutorotateKeypointsPlugin (psv, options)

Replaces the standard autorotate animation by a smooth transition between multiple points

Name Type Description
psv PSV.Viewer
options PSV.plugins.AutorotateKeypointsPlugin.Options optional

Extends

Members

id string readonly inherited overrides

Unique identifier of the plugin

Reference to main controller

Methods

destroy () package inherited overrides

Destroys the plugin

setKeypoints (keypoints)

Changes the keypoints

Name Type Description
keypoints Array.<PSV.plugins.AutorotateKeypointsPlugin.Keypoints>

Type Definitions

PSV.plugins.AutorotateKeypointsPlugin.Keypoints PSV.ExtendedPosition | string | Object

Definition of keypoints for automatic rotation, can be a position object, a marker id or an object with the following properties

Properties:
Name Type Argument Default Description
markerId string <optional>
position PSV.ExtendedPosition <optional>
tooltip string | Object <optional>
pause number <optional>
0

PSV.plugins.AutorotateKeypointsPlugin.Options Object

Properties:
Name Type Argument Default Description
startFromClosest boolean <optional>
true

start from the closest keypoint instead of the first keypoint

keypoints Array.<PSV.plugins.AutorotateKeypointsPlugin.Keypoints>