콘텐츠로 이동

hfVisualizer 원격 제어 View

이 페이지는 central view 제어에 사용합니다. focus, maximize, minimize 같은 창 상태 명령은 UI 전용 remote helper라 Remote-only 페이지에 정리합니다.

view

  • GUI view dialog를 열지 않고 central widget의 view 영역을 관리할 때 사용합니다.
hfVisualizer --remote [--target <id>] view list
hfVisualizer --remote [--target <id>] view add <render|node-table|element-table|chart> [--placement <tab|split-h|split-v>]
hfVisualizer --remote [--target <id>] view activate (--id <view-id> | current)
hfVisualizer --remote [--target <id>] view close [--id <view-id> | current]
  • 범위:
  • central widget 전용
  • 추가 가능한 타입은 render, node-table, element-table, chart
  • preprocessing, postprocessing 모두에서 동작
  • View 개념:
  • currentView는 현재 포커스를 가진 central view입니다. 보통 render, node-table, element-table, chart이고, 내부 동작에 따라 web이 쓰일 수도 있습니다.
  • activeRenderView는 display, camera, rendering 명령의 대상 render view입니다.
  • 현재 central view가 render가 아니면 currentViewactiveRenderView는 서로 다를 수 있습니다.
  • display, camera, visibility 명령은 기본적으로 activeRenderView를 사용하지만, --view-id <rN>으로 대상 render view를 별도로 지정할 수 있습니다.
  • view list:
  • count, currentViewId, activeRenderViewId, views[]를 JSON으로 반환합니다.
  • currentViewId는 현재 central view를 식별합니다.
  • activeRenderViewId는 display와 camera 명령이 쓰는 render view를 식별합니다.
  • views[] 항목에는 viewId, type, current, tabIndex가 들어갑니다.
  • render view에는 activeRender도 포함됩니다.
  • viewIdr0, n0, e0, c0처럼 type prefix와 타입별 번호를 사용하고, 내부 web view는 w0처럼 보일 수 있습니다.
  • central tab caption도 같은 id를 사용합니다. 예를 들면 View r0, View c0 같은 형식입니다.
  • view add:
  • --placement tab은 새 tab을 추가합니다.
  • --placement split-h, split-v는 현재 view를 기준으로 분할합니다.
  • view activate:
  • current 또는 --id 중 정확히 하나를 지정해야 합니다.
  • view close:
  • selector가 없으면 현재 view를 닫습니다.
  • --id는 특정 central view를 닫습니다.
  • 마지막 남은 render view는 닫을 수 없습니다.
  • 현재 view가 아닌 대상을 닫을 때는 가능하면 이전 current view를 복원합니다.
  • 현재 view가 render가 아닐 때 다른 render view를 닫으면 가능하면 이전 activeRenderView를 유지합니다.
  • 이 명령들은 central view만 다루며, ModelTree나 command panel 같은 dock widget은 생성하거나 제거하지 않습니다.

예시:

hfVisualizer --remote view list
hfVisualizer --remote view add render
hfVisualizer --remote view add chart --placement split-v
hfVisualizer --remote view activate --id c0
hfVisualizer --remote view close --id c0
hfVisualizer --remote view close