31 lines
954 B
C#
31 lines
954 B
C#
using VisionCommon;
|
|
using System.Windows;
|
|
using MilCommon;
|
|
|
|
namespace MilUI {
|
|
/// <summary>
|
|
/// Interaction logic for LineWidthSettingWindow.xaml
|
|
/// </summary>
|
|
public partial class LineWidthSettingWindow : Window, IPatternSettingWindow {
|
|
public string WINDOW_TITLE => "Line Intersection";
|
|
|
|
public LineWidthSettingWindow(
|
|
PatternAgentBase patternAgent, PatternInfo patternInfo, ICameraDisplay cameraDisplay, FovInfo fovInfo) {
|
|
InitializeComponent();
|
|
SetTitle();
|
|
|
|
lineWidthSettingView.DataContext = new LineWidthSettingViewModel(
|
|
patternAgent, patternInfo, cameraDisplay, fovInfo);
|
|
}
|
|
|
|
public void SetTitle() {
|
|
Title = WINDOW_TITLE;
|
|
}
|
|
|
|
public void ResetPosition() {
|
|
Left = WindowUtil.GetLeftWithRatioOnMainWindow(0.6);
|
|
Top = WindowUtil.GetTopWithRatioOnMainWindow(0.05);
|
|
}
|
|
}
|
|
}
|