internal Holder <VisionSensorSystemSetting> GetSystemSetting() { this.ThrowExceptionIfDisposed(); this.ThrowExceptionIfClosed(); Holder <VisionSensorSystemSetting> holder = new Holder <VisionSensorSystemSetting>(); int num = (int)Ivff.IvaLoadSystemSetting((Stream)this._reader, ref this._ivaHandler.CameraSystemHeader, ref holder.Target); return(holder); }
internal Holder <BankSettingAll> GetBankSettingAll(int programNo) { this.ThrowExceptionIfDisposed(); this.ThrowExceptionIfClosed(); Holder <BankSettingAll> holder = new Holder <BankSettingAll>(); int num = (int)Ivff.LoadBankSettingAll((Stream)this._reader, ref this._ivaHandler.CameraBankHeader, programNo, ref holder.Target); return(holder); }
public IvaProgramDescription[] GetProgramDescriptionList() { this.ThrowExceptionIfDisposed(); this.ThrowExceptionIfClosed(); IvBankList[] bankList = new IvBankList[32]; int num = (int)Ivff.IvaLoadBankList((Stream)this._reader, ref this._ivaHandler, ref bankList); IvaProgramDescription[] programDescriptionArray = new IvaProgramDescription[32]; for (int index = 0; index < 32; ++index) { programDescriptionArray[index] = new IvaProgramDescription(index, this.CmosType, ref bankList[index]); } return(programDescriptionArray); }
public IvaReader(string filePath) { if (!File.Exists(filePath)) { throw new IvaFileException(IvaFileErrors.FileErrorsOpen); } try { this._reader = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.None); this._canRead = true; } catch (Exception ex) { throw new IvaFileException(IvaFileErrors.FileErrorsOpen); } IvaFileErrors error = Ivff.IvaLoad((Stream)this._reader, out this._ivaHandler); if (error != IvaFileErrors.FileErrorsNone) { throw new IvaFileException(error); } }