How to use the paraview-glance/src/ListenerHelper.newInstance function in paraview-glance

To help you get started, we’ve selected a few paraview-glance examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kitware / paraview-glance / src / components / core / App / script.js View on Github external
mounted() {
    // listen for proxyManager changes
    this.renderListener = vtkListenerHelper.newInstance(
      () => {
        if (!this.loadingState) {
          this.proxyManager.autoAnimateViews();
        }
      },
      () =>
        [].concat(
          this.proxyManager.getSources(),
          this.proxyManager.getRepresentations(),
          this.proxyManager.getViews()
        )
    );
    this.pxmSub = this.proxyManager.onProxyRegistrationChange(
      this.renderListener.resetListeners
    );
github Kitware / paraview-glance / src / components / core / Datasets / helper.js View on Github external
created() {
      this.listenerHelper = vtkListenerHelper.newInstance(
        () => {
          this.updateData();
          this.$nextTick(this.$forceUpdate);
        },
        () => this.getProxyWithFields()
      );

      this.subscriptions = addWatchers(this, fields, options.onChange);
      this.subscriptions.push(
        this.proxyManager.onProxyRegistrationChange(() => {
          this.updateDomains();
          this.updateData();
          if (options.onUpdate) {
            for (let i = 0; i < options.onUpdate.length; i++) {
              this[options.onUpdate[i]]();
            }
github Kitware / paraview-glance / src / components / core / Datasets / script.js View on Github external
created() {
    this.subscriptions = [];
    this.listenerHelper = vtkListenerHelper.newInstance(
      () => {
        if (!this.loadingState) {
          this.$nextTick(this.$forceUpdate);
        }
      },
      () => [this.proxyManager].concat(this.proxyManager.getRepresentations())
    );

    Controls.forEach((control, i) => this.addPanel(control, i + 10));
  },
  mounted() {