Workpiece Page
The page triggers by Main Panel.
The key model is Workpiece and WorkpieceEditorDisplayeeConfig. Which is assigned from the Main Panel's MachiningProject.Workpiece.
FixtureEditorDisplayeeConfig is from UserEnv.UserConfig which assigned from the parent component.
Layout
- Workpiece Page
- Manage Panel
- Raw Shape Tab
- Raw Geometry Source DropDown (Common Geometry and Runtime Geometry are EXCLUSIVE)
- Common Geometry Apply Geometry Management Control
- Runtime Geometry Apply Runtime Geometry Panel
- Raw Geometry Source DropDown (Common Geometry and Runtime Geometry are EXCLUSIVE)
- Target Shape Tab
- Geometry Management Control
- Anchor Tab
- Geom To Fixture Tab
- Geom To Program-Zero Tab
- Transformer Manage Panel
- Runtime Tab
- Initial Resolution Dropdown (powers of 2)
- 0.0009765625
- 0.001953125
- 0.00390625
- 0.0078125
- 0.015625
- 0.03125
- 0.0625
- 0.125
- 0.25
- 0.5
- 1
- 2
- 4
- 8
- 16
- Initial Resolution Dropdown (powers of 2)
- Material Tab
Visible if UserEnv.EnablePhysics is true.
- Workpiece Material File Selector
- Cutting Parameter File Selector
- Raw Shape Tab
- Viewer Panel
- Viewer ToolBar
- RenderingCanvas Tool Bar
- SetupDisplayee Options ToolBar
- Options of WorkpieceEditorDisplayee
- RenderingCanvas
- The DispEngine.Displayee is WorkpieceEditorDisplayee (Apply the model WorkpieceEditorDisplayeeConfig).
- Viewer ToolBar
- Manage Panel
Tip
Add a resizable splition bar between Manage Panel and Viewer Panel.
Default Resource
The default resources of Workpiece Material and Cutting Parameter exist in Resource
folder under application folder (Not project folder). Set the default folder of the File Selector to the Resource
sub folder:
- “Resource/WorkpieceMaterial”
- “Resource/CuttingParameter”
Behavior
Call WorkpieceEditorDisplayee.ClearRawGeomCache() on Raw Shape set or changed.
Call WorkpieceEditorDisplayee.ClearIdealGeomCache() on Target Shape set or changed.
Call RenderCanvas.DispEngine.SetViewToIsometricView() on Raw Shape set or Target Shape set. (Since the assumption of the shape set raise larger viewer changed than content changed, only adjust view of the setter event.)
Keep Portability of the Material properties.
Single-User WPF Application Source Code Path
- Mech/Workpieces/WorkpiecePage
- Mech/Workpieces/WorkpieceWindow
see this page for git repository.