Inheritance: IDisposable
コード例 #1
0
ファイル: EduCmds.cs プロジェクト: rhcad/vglite
 public static int getDimensions(GiCoreView coreView, Floats vars, Chars types)
 {
     int ret = touchvgcsPINVOKE.EduCmds_getDimensions(GiCoreView.getCPtr(coreView), Floats.getCPtr(vars), Chars.getCPtr(types));
     if (touchvgcsPINVOKE.SWIGPendingException.Pending) throw touchvgcsPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #2
0
ファイル: MgStorageBase.cs プロジェクト: rhcad/touchvg-v0.6
 public virtual int readString(string name, Chars value) {
   int ret = touchvgPINVOKE.MgStorageBase_readString(swigCPtr, name, Chars.getCPtr(value));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #3
0
ファイル: Chars.cs プロジェクト: stonelin129/Touchvg
 internal static HandleRef getCPtr(Chars obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #4
0
ファイル: WPFViewHelper.cs プロジェクト: rhcad/vglite
        //! 得到当前图形的各种度量尺寸
        public string getDimensions(float[] vars)
        {
            Floats v = new Floats(vars.Length);
            Chars types = new Chars(vars.Length);
            int n = EduCmds.getDimensions(CoreView, v, types);

            if (n > 0)
            {
                StringBuilder buf = new StringBuilder(n);
                for (int i = 0; i < n; i++)
                {
                    buf.Append(v.get(i));
                    vars[i] = v.get(i);
                }
                return buf.ToString();
            }
            return "";
        }