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 { /// /// 장비 카메라 디바이스 C (클래스 이름 변경 금지) /// 장비에 맞게 변경하여 사용한다. /// 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 int 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 int GetMaxExposure() { throw new System.NotImplementedException(); } public override int 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(int 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 override int GetInitialExposure() { return 0; } #endregion } } #endif