예제 #1
0
파일: Ogr.cs 프로젝트: jugstalt/gview5
        public static FieldDomain CreateGlobFieldDomain(string name, string description, FieldType type, FieldSubType subtype, string glob)
        {
            IntPtr      cPtr = OgrPINVOKE.CreateGlobFieldDomain(name, description, (int)type, (int)subtype, glob);
            FieldDomain ret  = (cPtr == IntPtr.Zero) ? null : new FieldDomain(cPtr, true, ThisOwn_true());

            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #2
0
파일: Ogr.cs 프로젝트: jugstalt/gview5
        public static FieldDomain CreateRangeFieldDomain(string name, string description, FieldType type, FieldSubType subtype, double min, bool minIsInclusive, double max, double maxIsInclusive)
        {
            IntPtr      cPtr = OgrPINVOKE.CreateRangeFieldDomain(name, description, (int)type, (int)subtype, min, minIsInclusive, max, maxIsInclusive);
            FieldDomain ret  = (cPtr == IntPtr.Zero) ? null : new FieldDomain(cPtr, true, ThisOwn_true());

            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #3
0
 public static HandleRef getCPtrAndSetReference(FieldDomain obj, object parent)
 {
     if (obj != null)
     {
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
예제 #4
0
 public static HandleRef getCPtrAndDisown(FieldDomain obj, object parent)
 {
     if (obj != null)
     {
         obj.swigCMemOwn   = false;
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
예제 #5
0
 public static HandleRef getCPtr(FieldDomain obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }