Пример #1
0
 public static HandleRef getCPtrAndSetReference(GCP obj, object parent)
 {
     if (obj != null)
     {
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
Пример #2
0
 public static HandleRef getCPtrAndDisown(GCP obj, object parent)
 {
     if (obj != null)
     {
         obj.swigCMemOwn   = false;
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
Пример #3
0
        public GCP[] GetGCPs()
        {
            /*hello*/
            IntPtr cPtr   = __GetGCPs();
            int    length = GetGCPCount();

            GCP[] ret = null;
            if (cPtr != IntPtr.Zero && length > 0)
            {
                ret = new GCP[length];
                for (int i = 0; i < length; i++)
                {
                    ret[i] = __ReadCArrayItem_GDAL_GCP(cPtr, i);
                }
            }
            GC.KeepAlive(this);
            return(ret);
        }
Пример #4
0
 public static HandleRef getCPtr(GCP obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }