Exemple #1
0
 /// <summary>
 /// Get the item in the specific index
 /// </summary>
 /// <param name="index">The index</param>
 /// <returns>The item in the specific index</returns>
 public MKeyLine this[int index]
 {
     get
     {
         MKeyLine result = new MKeyLine();
         VectorOfKeyLineGetItem(_ptr, index, ref result);
         return(result);
     }
 }
Exemple #2
0
 /// <summary>
 /// Convert the standard vector to an array of KeyLine
 /// </summary>
 /// <returns>An array of KeyLine</returns>
 public MKeyLine[] ToArray()
 {
     MKeyLine[] res = new MKeyLine[Size];
     if (res.Length > 0)
     {
         GCHandle handle = GCHandle.Alloc(res, GCHandleType.Pinned);
         VectorOfKeyLineCopyData(_ptr, handle.AddrOfPinnedObject());
         handle.Free();
     }
     return(res);
 }
Exemple #3
0
 internal static extern void VectorOfKeyLineGetItem(IntPtr vec, int index, ref MKeyLine element);