How to use the paraview-lite/src/stores/types.Actions.COLOR_FETCH_LOOKUP_IMAGE function in paraview-lite

To help you get started, we’ve selected a few paraview-lite 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 / light-viz / src / components / core / RepresentationToolbar / script.js View on Github external
name,
              vectorComponent,
            ] = this.activeProxyData.colorBy.array;
            const mode =
              location && name.length && this.activeProxyData.colorBy.mode;
            this.vectorComponent = vectorComponent;

            // console.log(JSON.stringify(this.activeProxyData.colorBy, null, 2));

            if (mode !== 'array') {
              return SOLID_COLOR_ITEM;
            }

            // Fetch LookupTable for any array available
            if (!this.lookupTables[name]) {
              this.$store.dispatch(Actions.COLOR_FETCH_LOOKUP_IMAGE, name);
            }

            return {
              text: name,
              value: `${mode}${SEPARATOR}${location}${SEPARATOR}${name}`,
            };
          }
          return SOLID_COLOR_ITEM;
        },
        representationItems() {
github Kitware / light-viz / src / stores / color.js View on Github external
client.remote.Lite.applyPreset(arrayName, presetName).then(() => {
          dispatch(Actions.COLOR_FETCH_LOOKUP_IMAGE, arrayName);
        });
      }