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