Table of Contents

Player Panel

The Player Panel is the primary visualization component for machining simulation playback.

Key Models

Associated Tool Bars

Layout Structure

The Player Panel consists of:

Default Panel Configuration

The Player Panel is set as the default panel on the Page Panel when the main window opens. The associated toolbars (Player Tool Bar, RenderingCanvas Tool Bar, Player Extended RenderingCanvas Tool Bar) are also configured accordingly.

Player Extended RenderingCanvas Tool Bar Behavior

The Player Extended RenderingCanvas Tool Bar provides additional controls:

The toolbar receives notifications when the project is changed from Main Panel.

RenderingCanvas Behavior

The RenderingCanvas displays the machining project visualization:

  1. On initialization, a MachiningProjectDisplayee is created and assigned to RenderingCanvas.DispEngine.Displayee
  2. The displayee receives project data from LocalProjectService
  3. The RenderingCanvas is disposed when the Player Panel is disposed

Source Code Locations

See HiNC GUI Architecture for git repository links.

WPF Application

  • Play/PlayerPanel

Web Application

Frontend:

  • wwwroot/player/player-panel.js
  • wwwroot/player/player-panel.html

Backend:

  • Players/PlayerController.cs
  • Players/PlayerStatusHub.cs
  • Players/PlayerStatusService.cs
  • Players/SessionMessageHub.cs
  • Players/SessionMessageService.cs
  • Players/SelectedStepInfoHub.cs
  • Players/SelectedStepInfoService.cs

Implementation Checklist

Tip

When building a new Player Panel implementation:

  1. Create the layout with RenderingCanvas
  2. Set up RenderingCanvas behavior
  3. Create Player Tool Bar
  4. Create Player Extended RenderingCanvas Tool Bar with CL Strip, Fit View, and Rendering Items behaviors
  5. Connect to Navigation Menu on Main Panel
  6. Set Player Panel as default panel with associated toolbars
  7. Build Session Message Panel, Selected-Step Info Panel, and Step Present Preference Page