You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/UCDraw/GeoSigmaDrawLib/GeoSigmaLibWellAndSection.cs

434 lines
33 KiB
C#

1 month ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
namespace GeoSigmaDrawLib
{
public partial class GeoSigmaLib
{
#region 井柱接口
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void WellPoleWndCallback(int msgType, int msgValue);
[DllImport(SIGMALIB, EntryPoint = "RegisterCallback", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void RegisterCallback(IntPtr pWellView, WellPoleWndCallback callback);
[DllImport(SIGMALIB, EntryPoint = "CreateWellPoleView", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr CreateWellPoleView();
[DllImport(SIGMALIB, EntryPoint = "CreateNewWell", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr CreateNewWell(IntPtr pWellView, string wellName, double top, double bottom, double ratio, string templateFile);
[DllImport(SIGMALIB, EntryPoint = "ViewExtendCenter", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void ViewExtendCenter(IntPtr pWellView);
[DllImport(SIGMALIB, EntryPoint = "ViewExtendWidth", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void ViewExtendWidth(IntPtr pWellView);
[DllImport(SIGMALIB, EntryPoint = "ViewSetItemForSelectedElement", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern int ViewSetItemForSelectedElement(IntPtr pWellView, int x, int y);
[DllImport(SIGMALIB, EntryPoint = "SelectWellPoleSetCursor", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SelectWellPoleSetCursor(IntPtr pView, int ptX, int ptY, ref int handle);
[DllImport(SIGMALIB, EntryPoint = "SetWellPoleViewOperationKind", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void SetWellPoleViewOperationKind(IntPtr pWellView, ViewOperationKind kind);
[DllImport(SIGMALIB, EntryPoint = "InitWellPosition", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern int InitWellPosition(IntPtr pWellView, int lrEdge);
[DllImport(SIGMALIB, EntryPoint = "IsLockWellHead", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool IsLockWellHead(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "SetLockWellHead", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void SetLockWellHead(IntPtr pView, bool block);
[DllImport(SIGMALIB, EntryPoint = "MouseWheelForLockWellHead", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void MouseWheelForLockWellHead(IntPtr pView, int nFlags, int zDelta, int x, int y);
[DllImport(SIGMALIB, EntryPoint = "ScrollVForLockWellHead", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void ScrollVForLockWellHead(IntPtr pView, int nFlags, int scrollValue, int pageSize, int lineSize, int scrollMin, int scrollMax);
[DllImport(SIGMALIB, EntryPoint = "SetScrollBarVRangeForLockWellHead", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void SetScrollBarVRangeForLockWellHead(IntPtr pView, ref int vrange, ref int page, ref int value);
[DllImport(SIGMALIB, EntryPoint = "GetSelectWellObject", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSelectWellObject(IntPtr pView, ref int type, ref int mtype, ref UInt64 objHandle);
[DllImport(SIGMALIB, EntryPoint = "GetWellTrackTypeInfo", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetWellTrackTypeInfo(ref IntPtr typeBuff, ref int typeBuffLen, ref IntPtr typeStr, ref int typeStrLen);
// void FreeByteArray(BYTE* pBuff)
[DllImport(SIGMALIB, EntryPoint = "FreeByteArray", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void FreeByteArray(IntPtr pBuff);
[DllImport(SIGMALIB, EntryPoint = "DeleteSelectedWellObject", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool DeleteSelectedWellObject(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "AddTrackAfterSelectedWellObject", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool AddTrackAfterSelectedWellObject(IntPtr pView, int[] trackTypes, int trackNum , ref IntPtr newtarckHBuf, ref IntPtr newttypeBuff, ref int newtrackNum);
[DllImport(SIGMALIB, EntryPoint = "SelectedTrackCombineLeftTrack", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SelectedTrackCombineLeftTrack(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "SelectedTrackCombineRightTrack", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SelectedTrackCombineRightTrack(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "GetSelectedWell", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSelectedWell(IntPtr pView, ref UInt64 objHandle);
[DllImport(SIGMALIB, EntryPoint = "GetWellTrackDataJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellTrackDataJson(IntPtr pView, UInt64 objHandle, ref IntPtr jsonStr, ref int strLen);
[DllImport(SIGMALIB, EntryPoint = "SetWellTrackDataJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellTrackDataJson(IntPtr pView, UInt64 objHandle, byte[] jsonBuf, int datalen);
[DllImport(SIGMALIB, EntryPoint = "SetPictureInWellTrack", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetPictureInWellTrack(IntPtr pView, UInt64 objHandle, String filePath);
[DllImport(SIGMALIB, EntryPoint = "GetWellObjectAttributesJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellObjectAttributesJson(IntPtr pView, UInt64 objHandle, int type, int ttype, ref IntPtr jsonStr, ref int strLen);
[DllImport(SIGMALIB, EntryPoint = "SetWellObjectAttributesJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellObjectAttributesJson(IntPtr pView, UInt64 objHandle, int type, int ttype, byte[] jsonBuf, int datalen);
[DllImport(SIGMALIB, EntryPoint = "GetSymbolNamesForResult", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSymbolNamesForResult(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawSymbolForResult", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawSymbolForResult(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetSymbolNamesForLithology", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSymbolNamesForLithology(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawSymbolForLithology", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawSymbolForLithology(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetSymbolNamesForLithologyColor", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSymbolNamesForLithologyColor(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawSymbolForLithologyColor", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawSymbolForLithologyColor(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetSymbolNamesForLithOilGas", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSymbolNamesForLithOilGas(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawSymbolForLithOilGas", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawSymbolForLithOilGas(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetSymbolNamesForLithContent", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSymbolNamesForLithContent(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawSymbolForLithContent", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawSymbolForLithContent(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetSymbolNamesForLithFront", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSymbolNamesForLithFront(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawSymbolForLithFront", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawSymbolForLithFront(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetSymbolNamesForLithConstitution", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSymbolNamesForLithConstitution(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawSymbolForLithConstitution", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawSymbolForLithConstitution(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetNormalSymbolNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetNormalSymbolNames(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawNormalSymbol", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawNormalSymbol(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetCurveFillSymbolNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetCurveFillSymbolNames(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawCurveFillSymbol", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawCurveFillSymbol(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetWellAllCurveNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellAllCurveNames(IntPtr pView, UInt64 wellHandle, ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetWellAllDiscreteNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellAllDiscreteNames(IntPtr pView, UInt64 wellHandle, ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetWellFrameLineNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellFrameLineNames(ref IntPtr namesStr, ref int namesStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetWellCurveLineNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellCurveLineNames(ref IntPtr namesStr, ref int namesStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawWellCurveLine", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawWellCurveLine(string lineName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetDrawWellFrameLine", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawWellFrameLine(string lineName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetWellObjectAttributesXml", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellObjectAttributesXml( UInt64 objHandle, int type, int ttype, ref IntPtr jsonStr, ref int strLen);
[DllImport(SIGMALIB, EntryPoint = "SetWellObjectAttributesXml", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellObjectAttributesXml(IntPtr pView, UInt64 objHandle, int type, int ttype, byte[] jsonBuf, int datalen);
[DllImport(SIGMALIB, EntryPoint = "GetWellTracks", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellTracks(IntPtr pView, UInt64 wellHandle, ref IntPtr tarckHBuf, ref IntPtr ttypeBuff, ref int trackNum, ref IntPtr dataRefBuf, ref int dataRefLen,
ref IntPtr refTableBuf, ref int refTableLen, ref IntPtr refColBuf, ref int refColLen);
[DllImport(SIGMALIB, EntryPoint = "GetPerforationLayerType", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetPerforationLayerType(ref IntPtr typeStrBuf, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "SaveWellPoleTemplateFile", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SaveWellPoleTemplateFile(IntPtr pView, string filePathName);
[DllImport(SIGMALIB, EntryPoint = "ApplyingWellPoleTemplateFile", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool ApplyingWellPoleTemplateFile(IntPtr pView, string filePathName);
[DllImport(SIGMALIB, EntryPoint = "GetWellTrajectoryDatasJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellTrajectoryDatasJson(UInt64 wellHandle, ref IntPtr strBuf, ref int strLen);
[DllImport(SIGMALIB, EntryPoint = "SetWellTrajectoryDatasJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellTrajectoryDatasJson(UInt64 wellHandle, byte[] jsonBuf, int datalen);
[DllImport(SIGMALIB, EntryPoint = "SetWellStratificationJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellStratificationJson(UInt64 wellHandle, byte[] jsonBuf, int datalen);
[DllImport(SIGMALIB, EntryPoint = "GetCurvePointSymbolNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetCurvePointSymbolNames(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawCurvePointSymbol", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawCurvePointSymbol(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "GetStratumLithNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetStratumLithNames(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawStratumLith", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawStratumLith(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "SetStratumDivisionJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetStratumDivisionJson(UInt64 wellHandle, byte[] jsonBuf, int datalen);
[DllImport(SIGMALIB, EntryPoint = "TrackReadWellTableData", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool TrackReadWellTableData(UInt64 trackHandle);
[DllImport(SIGMALIB, EntryPoint = "TrackIsWellTableDataSource", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool TrackIsWellTableDataSource(UInt64 trackHandle);
[DllImport(SIGMALIB, EntryPoint = "TrackGetDataSourceID", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool TrackGetDataSourceID(UInt64 trackHandle, ref IntPtr sourceStr, ref int sourceLen, ref IntPtr colStr, ref int colLen);
[DllImport(SIGMALIB, EntryPoint = "TrackSetDataRefID", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool TrackSetDataRefID(UInt64 trackHandle, byte[] sourceBuf, int sourcelen , byte[] colBuf, int collen);
[DllImport(SIGMALIB, EntryPoint = "SetWellFaultDatasJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellFaultDatasJson(UInt64 wellHandle, byte[] jsonBuf, int datalen , bool bRefreshTracks);
[DllImport(SIGMALIB, EntryPoint = "SetWellReservesLayersJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellReservesLayersJson(UInt64 wellHandle, byte[] jsonBuf, int datalen, bool bRefreshTracks);
[DllImport(SIGMALIB, EntryPoint = "SetWellSandSetsJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellSandSetsJson(UInt64 wellHandle, byte[] jsonBuf, int datalen, bool bRefreshTracks);
[DllImport(SIGMALIB, EntryPoint = "SetWellUndoRedoAction", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellUndoRedoAction(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "GetWellStratificationClasses", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellStratificationClasses(UInt64 wellHandle, ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetWellStratumClasses", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellStratumClasses(UInt64 wellHandle, ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "SetAddFaultPoint", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetAddFaultPoint(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "IsAddFaultPoint", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool IsAddFaultPoint(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "GetWellTableDatasJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellTableDatasJson( UInt64 wellHandle, byte[] tableIdBuf, int tableIdlen , ref IntPtr jsonStr, ref int strLen);
[DllImport(SIGMALIB, EntryPoint = "GetFaciesNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetFaciesNames(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetFaciesColor", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetFaciesColor( byte[] nameBuf, int datalen, ref uint icolor);
[DllImport(SIGMALIB, EntryPoint = "RefreshAllInTrackObjsForOneWellTable", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool RefreshAllInTrackObjsForOneWellTable(UInt64 wellHandle, byte[] tableIdBuf, int tableIdlen);
[DllImport(SIGMALIB, EntryPoint = "WellTempateGetTracksType", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellTempateGetTracksType(string tempfileName, ref IntPtr ttypeBuff, ref int trackNum, ref IntPtr refCol, ref int refColLen);
[DllImport(SIGMALIB, EntryPoint = "MovingSelectedTrackInWell", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool MovingSelectedTrackInWell(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "SetSelectedTrackInWellMovePicture", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetSelectedTrackInWellMovePicture(IntPtr pView, IntPtr hdc);
[DllImport(SIGMALIB, EntryPoint = "GetSelectedWellObjectScreenRange", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetSelectedWellObjectScreenRange(IntPtr pView, UInt64 wellHandle , ref int left, ref int top,ref int right, ref int bottom );
[DllImport(SIGMALIB, EntryPoint = "GetStratumBendStyleNames", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetStratumBendStyleNames(ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "GetDrawSymbolBendStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetDrawSymbolBendStyle(string symbolName, IntPtr hdcMem, int width, int height);
[DllImport(SIGMALIB, EntryPoint = "WellPoleGetToolTipInfo", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellPoleGetToolTipInfo(IntPtr pView,int X,int Y, ref IntPtr strInfo, ref int datalen);
[DllImport(SIGMALIB, EntryPoint = "GetWellBaseObjectParent", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool GetWellBaseObjectParent(UInt64 baseHandle, ref UInt64 ParentObj);
#endregion 井柱接口
#region 多井剖面接口
[DllImport(SIGMALIB, EntryPoint = "CreateWellSectionView", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr CreateWellSectionView();
[DllImport(SIGMALIB, EntryPoint = "SetBendsSmooth", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetBendsSmooth(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "IsSelectedWellSection", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool IsSelectedWellSection(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "IsWellSectionBendsSmooth", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool IsWellSectionBendsSmooth(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionFlatternStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern int WellSectionFlatternStyle(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "SetWellSectionFlatternStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellSectionFlatternStyle(IntPtr pView ,int style);
[DllImport(SIGMALIB, EntryPoint = "SectionWellShowStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern int SectionWellShowStyle(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "SetSectionWellShowStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetSectionWellShowStyle(IntPtr pView, int style);
[DllImport(SIGMALIB, EntryPoint = "WellSectionConnectAllLayers", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionConnectAllLayers(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionBreakAllBends", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionBreakAllBends(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionBendLinkStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern int WellSectionBendLinkStyle(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "SetWellSectionBendLinkStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellSectionBendLinkStyle(IntPtr pView, int style);
[DllImport(SIGMALIB, EntryPoint = "WellSectionBendLeftExtendStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern int WellSectionBendLeftExtendStyle(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "SetWellSectionBendLeftExtendStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellSectionBendLeftExtendStyle(IntPtr pView, int style);
[DllImport(SIGMALIB, EntryPoint = "WellSectionBendRightExtendStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern int WellSectionBendRightExtendStyle(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "SetWellSectionBendRightExtendStyle", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellSectionBendRightExtendStyle(IntPtr pView, int style);
[DllImport(SIGMALIB, EntryPoint = "GetCurrentDrawItemType", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetCurrentDrawItemType(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "SetWellSectionDrawAddFaultItem", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellSectionDrawAddFaultItem(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionAddDepthRuler", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionAddDepthRuler(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionIsAddBendLayerPoint", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionIsAddBendLayerPoint(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionAddBendLayerPoint", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionAddBendLayerPoint(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionDeleteBendLayerPoint", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionDeleteBendLayerPoint(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionIsAddFaultPoint", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionIsAddFaultPoint(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionAddFaultPoint", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionAddFaultPoint(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionDeleteFaultPoint", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionDeleteFaultPoint(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionBreakLeftBend", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionBreakLeftBend(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionBreakRightBend", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionBreakRightBend(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionConnectLeftLayer", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionConnectLeftLayer(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionConnectRightLayer", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionConnectRightLayer(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionConnectLeftRightLayer", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionConnectLeftRightLayer(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "CreateWellSection", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr CreateWellSection(IntPtr pWellView, string title, double depthScale, double levelScale, double horizonScale);
[DllImport(SIGMALIB, EntryPoint = "WellSectionAddNewWell", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionAddNewWell(IntPtr pView, string wellName, double depthScale, double top, double bottom, double x, double y, double bushingLevel, string wellTemplateFile , ref UInt64 objHandle);
[DllImport(SIGMALIB, EntryPoint = "WellSectionReSetAllWellsPosition", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionReSetAllWellsPosition(IntPtr pView,bool bNeedComputedDepth,double topExtent,double bottomExtent);
[DllImport(SIGMALIB, EntryPoint = "WellSectionConnectLayers", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionConnectLayers(IntPtr pView,string trackTypeStr);
[DllImport(SIGMALIB, EntryPoint = "SetWellSectionStratificationJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellSectionStratificationJson(IntPtr pSection, string str);
[DllImport(SIGMALIB, EntryPoint = "SetWellSectionStratumDivisionJson", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool SetWellSectionStratumDivisionJson(IntPtr pSection, string str);
[DllImport(SIGMALIB, EntryPoint = "WellSectionApplyingTemplateFileForWell", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionApplyingTemplateFileForWell(IntPtr pView, string filePath, UInt64 wellHandle);
[DllImport(SIGMALIB, EntryPoint = "WellSectionApplyingTemplateFileForSection", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionApplyingTemplateFileForSection(IntPtr pView, string filePath);
[DllImport(SIGMALIB, EntryPoint = "WellSectionApplyingWellTemplateForSection", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionApplyingWellTemplateForSection(IntPtr pView, UInt64 wellHandle);
[DllImport(SIGMALIB, EntryPoint = "WellSectionGetLinkTracksTypes", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionGetLinkTracksTypes( UInt64 sectionHandle, ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "WellSectionBreakBends", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionBreakBends(IntPtr pView, UInt64 sectionHandle, string strTrackTypes);
[DllImport(SIGMALIB, EntryPoint = "WellSectionGetWellStratumTracksTypes", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionGetWellStratumTracksTypes(UInt64 sectionHandle, ref IntPtr typeStr, ref int typeStrLen);
[DllImport(SIGMALIB, EntryPoint = "WellSectionSetWellRealDistance", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionSetWellRealDistance(IntPtr pView);
[DllImport(SIGMALIB, EntryPoint = "WellSectionGetTotalWellsDistance", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionGetTotalWellsDistance(UInt64 sectionHandle, ref int wellNum, ref double totalDistance);
[DllImport(SIGMALIB, EntryPoint = "WellSectionSetWellsDistance", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionSetWellsDistance(UInt64 sectionHandle, double avgDistance);
[DllImport(SIGMALIB, EntryPoint = "WellSectionAddWellsMap", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern bool WellSectionAddWellsMap(IntPtr pWellView, string symbolPath);
#endregion 多井剖面接口
}
}