33 lines
1021 B
C#
33 lines
1021 B
C#
/*
|
|
* Copyright (c) 2025 LG Electronics Inc.
|
|
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
|
|
*/
|
|
using VisionCommon;
|
|
using System.Windows;
|
|
using CogCommon;
|
|
|
|
namespace CogUI {
|
|
/// <summary>
|
|
/// Interaction logic for CaliperSettingWindow.xaml
|
|
/// </summary>
|
|
public partial class CaliperSettingWindow : Window, IPatternSettingWindow {
|
|
public string WINDOW_TITLE => "Caliper";
|
|
|
|
public CaliperSettingWindow(
|
|
PatternAgentBase patternAgent, PatternInfo patternInfo, ICameraDisplay cameraDisplay, FovInfo fovInfo) {
|
|
InitializeComponent();
|
|
SetTitle();
|
|
caliperSettingView.DataContext = new CaliperSettingViewModel(patternAgent, patternInfo, cameraDisplay, fovInfo);
|
|
}
|
|
|
|
public void SetTitle() {
|
|
Title = WINDOW_TITLE;
|
|
}
|
|
|
|
public void ResetPosition() {
|
|
Left = WindowUtil.GetLeftWithRatioOnMainWindow(0.6);
|
|
Top = WindowUtil.GetTopWithRatioOnMainWindow(0.2);
|
|
}
|
|
}
|
|
}
|