Player Panel
The Player Panel is the primary visualization component for machining simulation playback.
Key Models
- LocalProjectService - Project data service
- UserService - User service
Associated Tool Bars
Layout Structure
The Player Panel consists of:
- Central Area: RenderingCanvas for 3D visualization
- Vertical Splitter: Draggable bar to resize widths
- Side Panel:
- Upper: Selected-Step Info Panel
- Horizontal Splitter: Draggable bar to resize heights
- Lower: Session Message Panel
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:
- CL Strip Buttons and Fit View Button - Controls for CL strip display and view fitting
- Project Rendering Items DropDown - Selection of rendering items
The toolbar receives notifications when the project is changed from Main Panel.
Related Preference
- Step Present Preference Page - Controls step presentation settings
RenderingCanvas Behavior
The RenderingCanvas displays the machining project visualization:
- On initialization, a MachiningProjectDisplayee is created and assigned to
RenderingCanvas.DispEngine.Displayee - The displayee receives project data from LocalProjectService
- 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.jswwwroot/player/player-panel.html
Backend:
Players/PlayerController.csPlayers/PlayerStatusHub.csPlayers/PlayerStatusService.csPlayers/SessionMessageHub.csPlayers/SessionMessageService.csPlayers/SelectedStepInfoHub.csPlayers/SelectedStepInfoService.cs
Implementation Checklist
Tip
When building a new Player Panel implementation:
- Create the layout with RenderingCanvas
- Set up RenderingCanvas behavior
- Create Player Tool Bar
- Create Player Extended RenderingCanvas Tool Bar with CL Strip, Fit View, and Rendering Items behaviors
- Connect to Navigation Menu on Main Panel
- Set Player Panel as default panel with associated toolbars
- Build Session Message Panel, Selected-Step Info Panel, and Step Present Preference Page