Exemple #1
0
        public static int getDimensions(int mgView, Floats vars, Chars types)
        {
            int ret = democmdsPINVOKE.DemoCmdsGate_getDimensions(mgView, Floats.getCPtr(vars), Chars.getCPtr(types));

            if (democmdsPINVOKE.SWIGPendingException.Pending)
            {
                throw democmdsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #2
0
        public static string getDimensions(int mgView, float[] vars)
        {
            Floats v = new Floats(vars.Length);
            Chars types = new Chars(vars.Length);
            int n = DemoCmdsGate.getDimensions(mgView, 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 "";
        }
Exemple #3
0
 internal static HandleRef getCPtr(Floats obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemple #4
0
 internal static HandleRef getCPtr(Floats obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #5
0
 public static int getDimensions(int mgView, Floats vars, Chars types)
 {
     int ret = democmdsPINVOKE.DemoCmdsGate_getDimensions(mgView, Floats.getCPtr(vars), Chars.getCPtr(types));
     if (democmdsPINVOKE.SWIGPendingException.Pending) throw democmdsPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemple #6
0
 public virtual bool getBoundingBox(Floats box, int shapeId)
 {
     bool ret = democmdsPINVOKE.MgCoreView_getBoundingBox__SWIG_1(swigCPtr, Floats.getCPtr(box), shapeId);
     if (democmdsPINVOKE.SWIGPendingException.Pending) throw democmdsPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }