34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using Aurora.Api;
|
|
using Aurora.View;
|
|
using VisionCommon;
|
|
|
|
namespace VisionCommonUI {
|
|
public class ChildImageSettingViewModel : NotifyPropertyChangedBase {
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
private Logger _Logger = new Logger(typeof(ChildImageSettingViewModel).Name);
|
|
private FovInfo _FovInfo;
|
|
private FovRecipe _FovRecipe;
|
|
private eCamId _CamId;
|
|
private CameraAgentBase _CameraAgent;
|
|
|
|
private IDisposable _EventDisposable;
|
|
|
|
#region Binding Properties
|
|
private CamConfig _CamConfig;
|
|
public CamConfig CamConfig { get => _CamConfig; set => SetProperty(ref _CamConfig, value); }
|
|
#endregion
|
|
|
|
public ChildImageSettingViewModel(FovInfo fovInfo, ICameraDisplay cameraDisplay) {
|
|
_FovInfo = fovInfo;
|
|
_CamId = VisionRecipeManager.GetCamRecipe(_FovInfo).CamId;
|
|
_CameraAgent = CameraAgentManager.GetCameraAgent(_FovInfo);
|
|
|
|
var camConfig = VisionEnv.AuroraEnv.DeviceManager.GetDeviceConfig(_CamId.ToString()) as CamConfig;
|
|
CamConfig = camConfig.Clone();
|
|
}
|
|
}
|
|
}
|