1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
using System.Runtime.InteropServices;
static public class Routing
{
[DllImport("bcta.Dll")]
static public extern int bctaOpen(ref IntPtr hBcta, string a, char b);
[DllImport("bcta.Dll")]
static public extern int bctaGetTrack(IntPtr hBcta, PntF[] Pnt, int count);
[DllImport("bcta.Dll")]
static public extern int bctaSetName(IntPtr hBcta, string name);
[DllImport("bcta.Dll")]
static public extern void bctaClose(IntPtr hBcta);
[DllImport("bcta.Dll")]
static public extern int bctaSetAttribute(IntPtr hBcta, UInt32 nAttr, UInt32 nValue);
[DllImport("bcta.Dll")]
static public extern int bctaGetAttribute(IntPtr hBcta, UInt32 nAttID, ref UInt32 pAttr);
[DllImport("bcta.Dll")]
static public unsafe extern int bctaGetName(IntPtr hBcta, UInt32 nAttID, out IntPtr** StrPtr);
[DllImport("bcta.Dll")]
static public unsafe extern int bctaGetElemNodes(IntPtr hBcta, UInt32 nAttID, out PntF* PntPtr);
[DllImport("bcta.Dll")]
static public unsafe extern int bctaGetElemNodesAB(IntPtr hBcta, UInt32 ElemId, UInt32 *NodePtr);
[DllImport("bcta.Dll")]
static public unsafe extern int bctaGetElemByNodeA(IntPtr hBcta,UInt32 dsId, UInt32 NodeA, UInt32* SegPtr);
[DllImport("bcta.Dll")] // recherche d'elements proches d'un point
static public unsafe extern int bctaGetElemsAt(IntPtr hBcta, ref PntF Pnt, UInt32 dist, UInt32 Mask, out UInt32 *SegPtr);
[DllImport("bcta.Dll")] // Get attribut d'un ID segment
static public unsafe extern int bctaGetElemAtt(IntPtr hBcta, UInt32 Id, char b, ref UInt32 SegAttr); |
Partager