How to use the pvw-visualizer/src/redux.selectors.view 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
export default connect((state) => {
  const pendingCount = selectors.network.getPendingCount(state);
  const remoteRendering = selectors.view.getRemoteRenderingState(state);
  const remoteFps = selectors.view.getRemoteFpsState(state);
  const viewId = selectors.active.getActiveView(state);
  const provideOnImageReady = selectors.ui.getVisiblePanel(state) === 3; // SavePanel visible
  const interactiveQuality = selectors.view.getRemoteInteractiveQualityState(
    state
  );
  const interactiveRatio = selectors.view.getRemoteInteractiveRatioState(state);
  const throttleTime = selectors.view.getThrottleTime(state);
  const maxFPS = selectors.view.getServerMaxFPS(state);
  const progress = selectors.network.getProgressUpdate(state);

  return {
    pendingCount,
    remoteRendering,
    remoteFps,
    viewId,
github Kitware / HPCCloud / src / tools / visualizer / index.js View on Github external
export default connect((state) => {
  const pendingCount = selectors.network.getPendingCount(state);
  const remoteRendering = selectors.view.getRemoteRenderingState(state);
  const remoteFps = selectors.view.getRemoteFpsState(state);
  const viewId = selectors.active.getActiveView(state);
  const provideOnImageReady = selectors.ui.getVisiblePanel(state) === 3; // SavePanel visible
  const interactiveQuality = selectors.view.getRemoteInteractiveQualityState(
    state
  );
  const interactiveRatio = selectors.view.getRemoteInteractiveRatioState(state);
  const throttleTime = selectors.view.getThrottleTime(state);
  const maxFPS = selectors.view.getServerMaxFPS(state);
  const progress = selectors.network.getProgressUpdate(state);

  return {
    pendingCount,
    remoteRendering,
    remoteFps,
    viewId,
    provideOnImageReady,
    interactiveRatio,
    interactiveQuality,
    throttleTime,
    maxFPS,
    progress,
    resetCamera: () => dispatch(Actions.view.resetCamera()),
    updateCamera: (vid, focalPoint, viewUp, position) =>