126 lines
3.7 KiB
C#
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>
|
|
/// 장비 카메라 디바이스 B (클래스 이름 변경 금지)
|
|
/// 장비에 맞게 변경하여 사용한다.
|
|
/// </summary>
|
|
public class MachineCamera_B : CameraBase {
|
|
public MachineCamera_B(string deviceId) : base(deviceId) {
|
|
var subject = string.Format("MachineCamera_B[{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 |