private BgImgType SetBGImg(SpriteRenderer sRenderer, DepthIndex depth) { BgImgType bgImg = new BgImgType { Rendr = sRenderer, Depth = depth }; return(bgImg); }
private WitsmlLogs GetSourceLogData(double startIndexValue, double endIndexValue, IEnumerable <string> mnemonics = null) { var startIndex = new DepthIndex(startIndexValue); var endIndex = new DepthIndex(endIndexValue); var currentIndex = new DepthIndex(startIndexValue); var data = new List <WitsmlData>(); if (startIndex < endIndex) { while (currentIndex <= endIndex) { data.Add(new WitsmlData { Data = $"{currentIndex.Value},1,1" }); currentIndex = new DepthIndex(currentIndex.Value + 1); } } if (data.Any()) { return(new WitsmlLogs { Logs = new WitsmlLog { StartIndex = new WitsmlIndex(new DepthIndex(startIndex.Value)), EndIndex = new WitsmlIndex(new DepthIndex(endIndex.Value)), IndexType = WitsmlLog.WITSML_INDEX_TYPE_MD, LogData = new WitsmlLogData { MnemonicList = string.Join(",", mnemonics ?? SourceMnemonics[WitsmlLog.WITSML_INDEX_TYPE_MD]), UnitList = "m,m,m", Data = data } }.AsSingletonList() }); } return(new WitsmlLogs()); }
public WitsmlIndex(DepthIndex depthIndex) { Uom = depthIndex.Uom.ToString(); Value = depthIndex.GetValueAsString(); }