2026-01-26 14:51:28 +09:00

126 lines
3.7 KiB
C#

using Aurora.Api;
using Aurora.Api.DataType;
using Hermes;
using VisionCommon;
#if USE_COGNEX
using Cognex.VisionPro;
using CogCamera;
using CogCommon;
// Cognex인 경우 여기에 구현
// ...
#else
using Matrox.MatroxImagingLibrary;
using MilCamera;
using MilCommon;
namespace WeldingCommon.Vision.Camera {
/// <summary>
/// 장비 카메라 디바이스 C (클래스 이름 변경 금지)
/// 장비에 맞게 변경하여 사용한다.
/// </summary>
public class MachineCamera_C : CameraBase {
public MachineCamera_C(string deviceId) : base(deviceId) {
var subject = string.Format("MachineCamera_C[{0}]", deviceId);
LOG = new Logger(subject);
}
protected override int DoActivate(IDeviceConfig config) {
// 장비에 맞게 구현
return E1.OK;
}
protected override int DoDeactivate() {
// 장비에 맞게 구현
return E1.OK;
}
public override object CloneImageBuffer() {
throw new System.NotImplementedException();
}
public override ICameraDisplay GetDisplay() {
throw new System.NotImplementedException();
}
public override double GetExposure() {
throw new System.NotImplementedException();
}
public override int GetGain() {
throw new System.NotImplementedException();
}
public override int GetGrabImageFromBuffer(ICameraDisplay cameraDisplay, ref object image) {
throw new System.NotImplementedException();
}
public override object GetImageFromDisplay(ICameraDisplay cameraDisplay) {
throw new System.NotImplementedException();
}
public override ImageSize GetImageSize() {
throw new System.NotImplementedException();
}
public override double GetMaxExposure() {
throw new System.NotImplementedException();
}
public override double GetMinExposure() {
throw new System.NotImplementedException();
}
public override int GrabSync(ICameraDisplay cameraDisplay, ref object image) {
throw new System.NotImplementedException();
}
public override bool IsConnected() {
throw new System.NotImplementedException();
}
public override int ResetFlipAndRotation(FlipAndRotation flipAndRotation) {
throw new System.NotImplementedException();
}
public override void SetDisplay(ICameraDisplay cameraDisplay) {
throw new System.NotImplementedException();
}
public override int SetExposure(double exposureTime_ms) {
throw new System.NotImplementedException();
}
public override int SetGain(int gain) {
throw new System.NotImplementedException();
}
public override int StartFlying(FovInfo fovInfo, object param = null) {
throw new System.NotImplementedException();
}
public override void StartLive(ICameraDisplay cameraDisplay) {
throw new System.NotImplementedException();
}
public override int StopFlying(object param = null) {
throw new System.NotImplementedException();
}
public override void StopLive() {
throw new System.NotImplementedException();
}
public override int VerifyChildImage(ICameraDisplay cameraDisplay, ref object image) {
throw new System.NotImplementedException();
}
#region For Custumizing (장비 전용 API)
public double GetInitialExposure() {
return 0;
}
#endregion
}
}
#endif