AnimatingRibbon class

AnimatingRibbon is used to display animated ribbons in the scene. The ribbons have constant minimum width, so when the ribbons can be seen even the camera is far away.

Signature:

export default class AnimatingRibbon extends Visualize 

Extends: Visualize

Example

viewer.setLazyRenderingEnabled(false);
var ribbon = new Modelo.View.Visualize.AnimatingRibbon(viewer.getRenderScene());
ribbon.setEnabled(true);
viewer.getScene().addVisualize(ribbon);
// ribbon.setParameter("")

ribbon.setParameter("width", 2);
ribbon.setParameter("unitLenght", 200);
ribbon.setParameter("speed", 3);
ribbon.setParameter("platteTexture", "./platte.png");

ribbon.addRibbon(
  [
    [-70.29447174072266, -148.99954223632812, 13.434694290161133],
    [-70.29447174072266, 58.99954223632812, 13.434694290161133],
    [20.29447174072266, 58.99954223632812, 13.434694290161133],
    [20.29447174072266, -148.99954223632812, 13.434694290161133]
  ]
);

Methods

MethodDescription
addRibbon(points)Add new ribbon the the visulaization.
removeRibbon(ribbon)Remove existing ribbon.
setParameter(name, value)Set the rendering parameters of animation ribbon visualization.