AnimatingStripe class

AnimatingStripe is used to display animated stripes in the scene.

Signature:

export default class AnimatingStripe extends Visualize 

Extends: Visualize

Example

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

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

stripe.addStripe(
  [
    [-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
addStripe(points)Add new stripe the the visulaization.
removeStripe(stripe)Remove existing stripe.
setParameter(name, value)Set the rendering parameters of animation stripe visualization.