コード例 #1
0
ファイル: Band.cs プロジェクト: jugstalt/gview5
        public int SetDefaultRAT(RasterAttributeTable table)
        {
            int ret = GdalPINVOKE.Band_SetDefaultRAT(swigCPtr, RasterAttributeTable.getCPtr(table));

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #2
0
        public RasterAttributeTable Clone()
        {
            IntPtr cPtr = GdalPINVOKE.RasterAttributeTable_Clone(swigCPtr);
            RasterAttributeTable ret = (cPtr == IntPtr.Zero) ? null : new RasterAttributeTable(cPtr, true, ThisOwn_true());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #3
0
ファイル: Band.cs プロジェクト: jugstalt/gview5
        public RasterAttributeTable GetDefaultRAT()
        {
            IntPtr cPtr = GdalPINVOKE.Band_GetDefaultRAT(swigCPtr);
            RasterAttributeTable ret = (cPtr == IntPtr.Zero) ? null : new RasterAttributeTable(cPtr, false, ThisOwn_false());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #4
0
 public static HandleRef getCPtrAndSetReference(RasterAttributeTable obj, object parent)
 {
     if (obj != null)
     {
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
コード例 #5
0
 public static HandleRef getCPtr(RasterAttributeTable obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }