How to use the pvw-visualizer/src/redux.selectors.time function in pvw-visualizer

To help you get started, we’ve selected a few pvw-visualizer 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 / HPCCloud / src / tools / visualizer / index.js View on Github external
updateCamera: (vid, focalPoint, viewUp, position) =>
      dispatch(Actions.view.updateCamera(vid, focalPoint, viewUp, position)),
    updateActiveViewId: (vid) =>
      dispatch(Actions.active.activate(vid, Actions.active.TYPE_VIEW)),
    setTimeStep(index) {
      dispatch(
        Actions.time.applyTimeStep(index, state.visualizer.active.source)
      );
    },
    playTime() {
      dispatch(Actions.time.playTime());
    },
    stopTime() {
      dispatch(Actions.time.stopTime());
    },
    index: selectors.time.getTimeStep(state),
    playing: selectors.time.isAnimationPlaying(state),
    values: selectors.time.getTimeValues(state),
  };
})(Visualization);
github Kitware / HPCCloud / src / tools / visualizer / index.js View on Github external
updateActiveViewId: (vid) =>
      dispatch(Actions.active.activate(vid, Actions.active.TYPE_VIEW)),
    setTimeStep(index) {
      dispatch(
        Actions.time.applyTimeStep(index, state.visualizer.active.source)
      );
    },
    playTime() {
      dispatch(Actions.time.playTime());
    },
    stopTime() {
      dispatch(Actions.time.stopTime());
    },
    index: selectors.time.getTimeStep(state),
    playing: selectors.time.isAnimationPlaying(state),
    values: selectors.time.getTimeValues(state),
  };
})(Visualization);