Beispiel #1
0
    public virtual bool getRefVelocities(int n_joint, SWIGTYPE_p_int joints, SWIGTYPE_p_double vels)
    {
        bool ret = yarpPINVOKE.IVelocityControl_getRefVelocities__SWIG_1(swigCPtr, n_joint, SWIGTYPE_p_int.getCPtr(joints), SWIGTYPE_p_double.getCPtr(vels));

        return(ret);
    }
 public static void LUT(Int32Image image, int minPixel, SWIGTYPE_p_int tab) {
   VisionLabPINVOKE.LUT__SWIG_8(Int32Image.getCPtr(image), minPixel, SWIGTYPE_p_int.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #3
0
 public IntNDArray(SWIGTYPE_p_int a, SWIGTYPE_p_int d, int nd) : this(modshogunPINVOKE.new_IntNDArray__SWIG_1(SWIGTYPE_p_int.getCPtr(a), SWIGTYPE_p_int.getCPtr(d), nd), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #4
0
 public void get_w(SWIGTYPE_p_p_double dst_w, SWIGTYPE_p_int dst_dims) {
   modshogunPINVOKE.LinearKernel_get_w(swigCPtr, SWIGTYPE_p_p_double.getCPtr(dst_w), SWIGTYPE_p_int.getCPtr(dst_dims));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #5
0
 public virtual bool getAxes(SWIGTYPE_p_int ax)
 {
     bool ret = yarpPINVOKE.ITorqueControlRaw_getAxes(swigCPtr, SWIGTYPE_p_int.getCPtr(ax));
     return ret;
 }
Beispiel #6
0
 public virtual void get_vector(SWIGTYPE_p_short vector, SWIGTYPE_p_int len) {
   modshogunPINVOKE.StreamingFile_get_vector__SWIG_6(swigCPtr, SWIGTYPE_p_short.getCPtr(vector), SWIGTYPE_p_int.getCPtr(len));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
 public virtual bool getAxes(SWIGTYPE_p_int ax)
 {
     bool ret = yarpPINVOKE.IPositionControl_getAxes__SWIG_0(swigCPtr, SWIGTYPE_p_int.getCPtr(ax));
     return ret;
 }
    public virtual bool stopRaw(int n_joint, SWIGTYPE_p_int joints)
    {
        bool ret = yarpPINVOKE.IVelocityControlRaw_stopRaw__SWIG_2(swigCPtr, n_joint, SWIGTYPE_p_int.getCPtr(joints));

        return(ret);
    }
    public virtual bool getAxes(SWIGTYPE_p_int axis)
    {
        bool ret = yarpPINVOKE.IVelocityControlRaw_getAxes(swigCPtr, SWIGTYPE_p_int.getCPtr(axis));

        return(ret);
    }
    public virtual bool velocityMoveRaw(int n_joint, SWIGTYPE_p_int joints, SWIGTYPE_p_double spds)
    {
        bool ret = yarpPINVOKE.IVelocityControlRaw_velocityMoveRaw__SWIG_2(swigCPtr, n_joint, SWIGTYPE_p_int.getCPtr(joints), SWIGTYPE_p_double.getCPtr(spds));

        return(ret);
    }
    public virtual bool getRefAccelerationsRaw(int n_joint, SWIGTYPE_p_int joints, SWIGTYPE_p_double accs)
    {
        bool ret = yarpPINVOKE.IVelocityControlRaw_getRefAccelerationsRaw__SWIG_1(swigCPtr, n_joint, SWIGTYPE_p_int.getCPtr(joints), SWIGTYPE_p_double.getCPtr(accs));

        return(ret);
    }
Beispiel #12
0
    public SWIGTYPE_p_double getsubkernelweights(SWIGTYPE_p_int numweights)
    {
        IntPtr            cPtr = modshogunPINVOKE.MKLMultiClass_getsubkernelweights(swigCPtr, SWIGTYPE_p_int.getCPtr(numweights));
        SWIGTYPE_p_double ret  = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_double(cPtr, false);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #13
0
 public void getStats(SWIGTYPE_p_int maxX, SWIGTYPE_p_int minX, SWIGTYPE_p_int maxY, SWIGTYPE_p_int minY, SWIGTYPE_p_int cenX, SWIGTYPE_p_int cenY)
 {
     AriaCSPINVOKE.ArJoyHandler_getStats(swigCPtr, SWIGTYPE_p_int.getCPtr(maxX), SWIGTYPE_p_int.getCPtr(minX), SWIGTYPE_p_int.getCPtr(maxY), SWIGTYPE_p_int.getCPtr(minY), SWIGTYPE_p_int.getCPtr(cenX), SWIGTYPE_p_int.getCPtr(cenY));
 }
Beispiel #14
0
        public static bool ComputeTexSize(SWIGTYPE_p_int width, SWIGTYPE_p_int height)
        {
            bool ret = VixenLibPINVOKE.MediaBase_ComputeTexSize(SWIGTYPE_p_int.getCPtr(width), SWIGTYPE_p_int.getCPtr(height));

            if (VixenLibPINVOKE.SWIGPendingException.Pending)
            {
                throw VixenLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #15
0
 public virtual void get_string_and_label(SWIGTYPE_p_unsigned_long_long vector, SWIGTYPE_p_int len, SWIGTYPE_p_double label) {
   modshogunPINVOKE.StreamingFile_get_string_and_label__SWIG_11(swigCPtr, SWIGTYPE_p_unsigned_long_long.getCPtr(vector), SWIGTYPE_p_int.getCPtr(len), SWIGTYPE_p_double.getCPtr(label));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #16
0
    public XYCoord GetXYCoord(SWIGTYPE_p_int ptr)
    {
        XYCoord ret = new XYCoord(VisionLabPINVOKE.NumInt32Image_GetXYCoord(swigCPtr, SWIGTYPE_p_int.getCPtr(ptr)), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #17
0
 public virtual void get_sparse_vector_and_label(SWIGTYPE_p_SGSparseVectorEntryT_long_double_t vector, SWIGTYPE_p_int len, SWIGTYPE_p_double label) {
   modshogunPINVOKE.StreamingFile_get_sparse_vector_and_label__SWIG_12(swigCPtr, SWIGTYPE_p_SGSparseVectorEntryT_long_double_t.getCPtr(vector), SWIGTYPE_p_int.getCPtr(len), SWIGTYPE_p_double.getCPtr(label));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #18
0
    public override bool init_optimization(int num_suppvec, SWIGTYPE_p_int sv_idx, SWIGTYPE_p_double alphas)
    {
        bool ret = modshogunPINVOKE.LinearKernel_init_optimization__SWIG_0(swigCPtr, num_suppvec, SWIGTYPE_p_int.getCPtr(sv_idx), SWIGTYPE_p_double.getCPtr(alphas));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public void get_randomcoefficients(SWIGTYPE_p_p_double randomcoeff_additive2, SWIGTYPE_p_p_double randomcoeff_multiplicative2, SWIGTYPE_p_int dim_feature_space2, SWIGTYPE_p_int dim_input_space2, SWIGTYPE_p_double kernelwidth2) {
   modshogunPINVOKE.RandomFourierGaussPreproc_get_randomcoefficients(swigCPtr, SWIGTYPE_p_p_double.getCPtr(randomcoeff_additive2), SWIGTYPE_p_p_double.getCPtr(randomcoeff_multiplicative2), SWIGTYPE_p_int.getCPtr(dim_feature_space2), SWIGTYPE_p_int.getCPtr(dim_input_space2), SWIGTYPE_p_double.getCPtr(kernelwidth2));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #20
0
 public void get_w(SWIGTYPE_p_p_double dst_w, SWIGTYPE_p_int dst_dims)
 {
     modshogunPINVOKE.LinearKernel_get_w(swigCPtr, SWIGTYPE_p_p_double.getCPtr(dst_w), SWIGTYPE_p_int.getCPtr(dst_dims));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #21
0
 public override bool init_optimization(int num_suppvec, SWIGTYPE_p_int sv_idx, SWIGTYPE_p_double alphas) {
   bool ret = modshogunPINVOKE.LinearKernel_init_optimization__SWIG_0(swigCPtr, num_suppvec, SWIGTYPE_p_int.getCPtr(sv_idx), SWIGTYPE_p_double.getCPtr(alphas));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public virtual void get_subfeature_weights(SWIGTYPE_p_p_double weights, SWIGTYPE_p_int num_weights)
 {
     modshogunPINVOKE.CombinedDotFeatures_get_subfeature_weights(swigCPtr, SWIGTYPE_p_p_double.getCPtr(weights), SWIGTYPE_p_int.getCPtr(num_weights));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual bool getAxes(SWIGTYPE_p_int axes)
 {
     bool ret = yarpPINVOKE.IVelocityControl_getAxes__SWIG_0(swigCPtr, SWIGTYPE_p_int.getCPtr(axes));
     return ret;
 }
Beispiel #24
0
 public ArArg(string name, SWIGTYPE_p_int pointer, string description, int minInt, int maxInt) : this(AriaCSPINVOKE.new_ArArg__SWIG_1(name, SWIGTYPE_p_int.getCPtr(pointer), description, minInt, maxInt), true)
 {
 }
 public static void TMEdgeDetection(Int32Image src, Int32Image destMag, Int32Image destDir, int nrMasks, Mask_Int32 maskTab, SWIGTYPE_p_int alfaTab, Gradient grad) {
   VisionLabPINVOKE.TMEdgeDetection__SWIG_4(Int32Image.getCPtr(src), Int32Image.getCPtr(destMag), Int32Image.getCPtr(destDir), nrMasks, Mask_Int32.getCPtr(maskTab), SWIGTYPE_p_int.getCPtr(alfaTab), (int)grad);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #26
0
 public ArArg(string name, SWIGTYPE_p_int pointer, string description) : this(AriaCSPINVOKE.new_ArArg__SWIG_3(name, SWIGTYPE_p_int.getCPtr(pointer), description), true)
 {
 }
Beispiel #27
0
 public SWIGTYPE_p_double get_basealphas_ptr(SWIGTYPE_p_int y, SWIGTYPE_p_int x) {
   IntPtr cPtr = modshogunPINVOKE.GMNPSVM_get_basealphas_ptr(swigCPtr, SWIGTYPE_p_int.getCPtr(y), SWIGTYPE_p_int.getCPtr(x));
   SWIGTYPE_p_double ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_double(cPtr, false);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #28
0
 public ArArg(string name, SWIGTYPE_p_int pointer) : this(AriaCSPINVOKE.new_ArArg__SWIG_4(name, SWIGTYPE_p_int.getCPtr(pointer)), true)
 {
 }
 public virtual bool getAmpStatus(int j, SWIGTYPE_p_int v)
 {
     bool ret = yarpPINVOKE.IAmplifierControl_getAmpStatus__SWIG_1(swigCPtr, j, SWIGTYPE_p_int.getCPtr(v));
     return ret;
 }
Beispiel #30
0
        public void LoadFile()
        {
            Dwg_Data       dwg_Data = new Dwg_Data();
            Dwg_Object_Ref dwg      = new Dwg_Object_Ref();

            string path = "l0949.dwg";

            //string path = "example_2010.dwg";


            LibreDWG.dwg_read_file(path, dwg_Data);

            //LibreDWG.dwg_getall_POLYLINE_2D(dwg_Data);



            SWIGTYPE_p_int error = null;

            for (uint i = 0; i < dwg_Data.num_objects; i++)
            {
                var x = LibreDWG.dwg_get_object(dwg_Data, i);


                switch ((Dwg_Object_Type)Enum.ToObject(typeof(Dwg_Object_Type), x.type))
                {
                case Dwg_Object_Type.DWG_TYPE_UNUSED:
                    break;

                case Dwg_Object_Type.DWG_TYPE_TEXT:
                    Console.WriteLine("Text");
                    Dwg_Entity_TEXT dwg_Entity_TEXT = x.tio.entity.tio.TEXT;
                    texts.Add(new Text(dwg_Entity_TEXT.text_value, (float)dwg_Entity_TEXT.insertion_pt.x, (float)dwg_Entity_TEXT.insertion_pt.y, (float)dwg_Entity_TEXT.height));
                    FindMin(Convert.ToInt32(dwg_Entity_TEXT.insertion_pt.x), Convert.ToInt32(dwg_Entity_TEXT.insertion_pt.y));
                    break;

                case Dwg_Object_Type.DWG_TYPE_SPLINE:
                    Console.WriteLine("Text");
                    Dwg_Entity_SPLINE dwg_Entity_SPLINE = x.tio.entity.tio.SPLINE;


                    if (dwg_Entity_SPLINE.fit_pts != null)
                    {
                        var ptx = dwg_Entity_SPLINE.fit_pts.x;
                        var pty = dwg_Entity_SPLINE.fit_pts.y;

                        spline.Add(new Polygon3d((float)ptx, (float)pty));
                        FindMin((int)ptx, (int)pty);
                    }

                    if (dwg_Entity_SPLINE.ctrl_pts != null)
                    {
                        var ptx = dwg_Entity_SPLINE.ctrl_pts.x;
                        var pty = dwg_Entity_SPLINE.ctrl_pts.y;

                        spline.Add(new Polygon3d((float)ptx, (float)pty));
                        FindMin((int)ptx, (int)pty);
                    }


                    break;

                case Dwg_Object_Type.DWG_TYPE_POINT:
                    Console.WriteLine("Text");
                    Dwg_Entity_POINT point = x.tio.entity.tio.POINT;
                    pkt.Add(new Points(point.x, point.y));
                    FindMin((int)point.x, (int)point.y);


                    break;


                case Dwg_Object_Type.DWG_TYPE_MTEXT:
                    Dwg_Entity_MTEXT mtext = x.tio.entity.tio.MTEXT;
                    mmtext.Add(new Text(mtext.text, (float)mtext.insertion_pt.x, (float)mtext.insertion_pt.y, (float)mtext.text_height));
                    FindMin(Convert.ToInt32(mtext.insertion_pt.x), Convert.ToInt32(mtext.insertion_pt.y));
                    break;

                case Dwg_Object_Type.DWG_TYPE_MLINE:
                    Dwg_Entity_MLINE mline = x.tio.entity.tio.MLINE;
                    for (int k = 0; k < mline.num_lines; k++)
                    {
                        var xyza = mline.base_point;
                    }


                    break;

                case Dwg_Object_Type.DWG_TYPE_SOLID:
                    Dwg_Entity_SOLID solid = x.tio.entity.tio.SOLID;
                    solids.Add(new Solid((float)solid.corner1.x, (float)solid.corner1.y, (float)solid.corner2.x, (float)solid.corner2.y, (float)solid.corner3.x, (float)solid.corner3.y, (float)solid.corner4.x, (float)solid.corner4.y));
                    FindMin((int)solid.corner1.x, (int)solid.corner1.y);
                    FindMin((int)solid.corner2.x, (int)solid.corner2.y);
                    FindMin((int)solid.corner3.x, (int)solid.corner3.y);
                    FindMin((int)solid.corner4.x, (int)solid.corner4.y);
                    break;


                case Dwg_Object_Type.DWG_TYPE_HATCH:
                    Dwg_Entity_HATCH hatch = x.tio.entity.tio.HATCH;

                    if (hatch.paths.polyline_paths != null)
                    {
                        hatchList.Add(new Polygon2d((float)hatch.paths.polyline_paths.point.x, (float)hatch.paths.polyline_paths.point.y));

                        FindMin(Convert.ToInt32(hatch.paths.polyline_paths.point.x), Convert.ToInt32(hatch.paths.polyline_paths.point.y));
                    }
                    break;

                case Dwg_Object_Type.DWG_TYPE_LWPOLYLINE:
                    Console.WriteLine("LWPOLYLINE");
                    Dwg_Entity_LWPOLYLINE pol3d = x.tio.entity.tio.LWPOLYLINE;
                    lines.Add(new Lines((float)pol3d.points.x, (float)pol3d.extrusion.y));
                    FindMin(Convert.ToInt32(pol3d.points.x), Convert.ToInt32(pol3d.points.y));
                    break;

                case Dwg_Object_Type.DWG_TYPE_VERTEX_2D:
                    Dwg_Entity_VERTEX_2D linear = x.tio.entity.tio.VERTEX_2D;
                    poly2.Add(new Polygon2d((float)linear.point.x, (float)linear.point.y));
                    FindMin((int)linear.point.x, (int)linear.point.y);
                    break;

                case Dwg_Object_Type.DWG_TYPE_ARC:
                    Dwg_Entity_ARC arc = x.tio.entity.tio.ARC;
                    arcs.Add(new Arc((float)arc.center.x, (float)arc.center.y, (float)arc.radius, (float)(Math.Round(arc.start_angle, 2)), (float)(Math.Round(arc.end_angle, 2))));

                    FindMin(Convert.ToInt32(arc.center.x), Convert.ToInt32(arc.center.y));
                    break;

                case Dwg_Object_Type.DWG_TYPE_CAMERA:

                    break;

                case Dwg_Object_Type.DWG_TYPE_CIRCLE:
                    Dwg_Entity_CIRCLE dwg_Entity_CIRCLE = x.tio.entity.tio.CIRCLE;


                    circles.Add(new CirclePoints((float)dwg_Entity_CIRCLE.center.x, (float)dwg_Entity_CIRCLE.center.y, (float)dwg_Entity_CIRCLE.radius));
                    FindMin(Convert.ToInt32(dwg_Entity_CIRCLE.center.x), Convert.ToInt32(dwg_Entity_CIRCLE.center.y));
                    break;

                case Dwg_Object_Type.DWG_TYPE_ELLIPSE:
                    Dwg_Entity_ELLIPSE el = x.tio.entity.tio.ELLIPSE;

                    ellipse.Add(new Ellipse((float)el.sm_axis.x, (float)el.sm_axis.y, (float)(Math.Round(el.axis_ratio))));
                    FindMin(Convert.ToInt32(el.center.x), Convert.ToInt32(el.sm_axis.y));

                    break;

                case Dwg_Object_Type.DWG_TYPE_LINE:
                    Console.WriteLine("Line");
                    Dwg_Entity_LINE dwg_Entity_LINE = x.tio.entity.tio.LINE;



                    var Px1 = Math.Round(dwg_Entity_LINE.start.x, 2);
                    var Py1 = Math.Round(dwg_Entity_LINE.start.y, 2);
                    var Px2 = Math.Round(dwg_Entity_LINE.end.x, 2);
                    var Py2 = Math.Round(dwg_Entity_LINE.end.y, 2);
                    Punkty.Add(new Points(Px1, Py1, Px2, Py2));
                    FindMin(Convert.ToInt32(Px1), Convert.ToInt32(Py1));
                    FindMax(Convert.ToInt32(Px2), Convert.ToInt32(Py2));

                    break;

                default:
                    break;
                }
            }
        }
Beispiel #31
0
 public virtual void get_string(SWIGTYPE_p_long_double vector, SWIGTYPE_p_int len) {
   modshogunPINVOKE.StreamingFile_get_string__SWIG_12(swigCPtr, SWIGTYPE_p_long_double.getCPtr(vector), SWIGTYPE_p_int.getCPtr(len));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #32
0
    public SWIGTYPE_p_int safePixel(uint x, uint y)
    {
        SWIGTYPE_p_int ret = new SWIGTYPE_p_int(yarpPINVOKE.ImageInt_safePixel__SWIG_0(swigCPtr, x, y), false);

        return(ret);
    }
Beispiel #33
0
 public virtual void get_sparse_vector(SWIGTYPE_p_SGSparseVectorEntryT_unsigned_long_long_t vector, SWIGTYPE_p_int len) {
   modshogunPINVOKE.StreamingFile_get_sparse_vector__SWIG_11(swigCPtr, SWIGTYPE_p_SGSparseVectorEntryT_unsigned_long_long_t.getCPtr(vector), SWIGTYPE_p_int.getCPtr(len));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #34
0
        public int select(int mstimeout, SWIGTYPE_p_int canRead, SWIGTYPE_p_int canWrite)
        {
            int ret = xsensdeviceapiPINVOKE.XsSocket_select(swigCPtr, mstimeout, SWIGTYPE_p_int.getCPtr(canRead), SWIGTYPE_p_int.getCPtr(canWrite));

            return(ret);
        }
Beispiel #35
0
 public virtual void get_vector_and_label(SWIGTYPE_p_VwExample ex, SWIGTYPE_p_int len, SWIGTYPE_p_double label) {
   modshogunPINVOKE.StreamingFile_get_vector_and_label__SWIG_13(swigCPtr, SWIGTYPE_p_VwExample.getCPtr(ex), SWIGTYPE_p_int.getCPtr(len), SWIGTYPE_p_double.getCPtr(label));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #36
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_int obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #37
0
 public virtual bool getAxes(SWIGTYPE_p_int ax)
 {
     bool ret = yarpPINVOKE.IEncoders_getAxes__SWIG_0(swigCPtr, SWIGTYPE_p_int.getCPtr(ax));
     return ret;
 }
Beispiel #38
0
        public SWIGTYPE_p_int y()
        {
            SWIGTYPE_p_int ret = new SWIGTYPE_p_int(bwapiPINVOKE.Position_y(swigCPtr), false);

            return(ret);
        }
Beispiel #39
0
 public SWIGTYPE_p_double get_cum_derivative(SWIGTYPE_p_int p_len) {
   IntPtr cPtr = modshogunPINVOKE.Plif_get_cum_derivative(swigCPtr, SWIGTYPE_p_int.getCPtr(p_len));
   SWIGTYPE_p_double ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_double(cPtr, false);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #40
0
 public override void expand_if_required(SWIGTYPE_p_float vec, SWIGTYPE_p_int len)
 {
     modshogunPINVOKE.StreamingSparseLongFeatures_expand_if_required__SWIG_0(swigCPtr, SWIGTYPE_p_float.getCPtr(vec), SWIGTYPE_p_int.getCPtr(len));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #41
0
 public void set_plif_state_signal_matrix(SWIGTYPE_p_int plif_id_matrix, int m, int n) {
   modshogunPINVOKE.PlifMatrix_set_plif_state_signal_matrix(swigCPtr, SWIGTYPE_p_int.getCPtr(plif_id_matrix), m, n);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #42
0
        public SWIGTYPE_p_int at(int pIndex)
        {
            SWIGTYPE_p_int ret = new SWIGTYPE_p_int(FbxWrapperNativePINVOKE.FbxArrayInt_at(swigCPtr, pIndex), false);

            return(ret);
        }
Beispiel #43
0
 public SWIGTYPE_p_double get_normal(SWIGTYPE_p_int len) {
   IntPtr cPtr = modshogunPINVOKE.LinearKernel_get_normal(swigCPtr, SWIGTYPE_p_int.getCPtr(len));
   SWIGTYPE_p_double ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_double(cPtr, false);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #44
0
    public virtual bool getFormat7WindowDC1394(SWIGTYPE_p_unsigned_int xdim, SWIGTYPE_p_unsigned_int ydim, SWIGTYPE_p_int x0, SWIGTYPE_p_int y0)
    {
        bool ret = yarpPINVOKE.IFrameGrabberControlsDC1394_getFormat7WindowDC1394(swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(xdim), SWIGTYPE_p_unsigned_int.getCPtr(ydim), SWIGTYPE_p_int.getCPtr(x0), SWIGTYPE_p_int.getCPtr(y0));

        if (yarpPINVOKE.SWIGPendingException.Pending)
        {
            throw yarpPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #45
0
 public virtual void get_used_svms(SWIGTYPE_p_int num_svms, SWIGTYPE_p_int svm_ids) {
   modshogunPINVOKE.PlifBase_get_used_svms(swigCPtr, SWIGTYPE_p_int.getCPtr(num_svms), SWIGTYPE_p_int.getCPtr(svm_ids));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #46
0
 public virtual void get_vector(SWIGTYPE_p_unsigned_short vector, SWIGTYPE_p_int len)
 {
     modshogunPINVOKE.File_get_vector__SWIG_7(swigCPtr, SWIGTYPE_p_unsigned_short.getCPtr(vector), SWIGTYPE_p_int.getCPtr(len));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_int obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Beispiel #48
0
 public virtual void get_matrix(SWIGTYPE_p_unsigned_short matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.File_get_matrix__SWIG_7(swigCPtr, SWIGTYPE_p_unsigned_short.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual string apply_to_string(string f, SWIGTYPE_p_int len) {
   string ret = modshogunPINVOKE.StringCharPreprocessor_apply_to_string(swigCPtr, f, SWIGTYPE_p_int.getCPtr(len));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #50
0
 public virtual void get_ndarray(SWIGTYPE_p_unsigned_short array, SWIGTYPE_p_int dims, SWIGTYPE_p_int num_dims)
 {
     modshogunPINVOKE.File_get_ndarray__SWIG_6(swigCPtr, SWIGTYPE_p_unsigned_short.getCPtr(array), SWIGTYPE_p_int.getCPtr(dims), SWIGTYPE_p_int.getCPtr(num_dims));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public static void CalcHistogram0(Int32Image image, int hisSize, SWIGTYPE_p_int his) {
   VisionLabPINVOKE.CalcHistogram0__SWIG_4(Int32Image.getCPtr(image), hisSize, SWIGTYPE_p_int.getCPtr(his));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #52
0
 public virtual void get_sparse_matrix(RealSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.File_get_sparse_matrix__SWIG_7(swigCPtr, RealSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public override void expand_if_required(SWIGTYPE_p_double vec, SWIGTYPE_p_int len) {
   modshogunPINVOKE.StreamingSparseCharFeatures_expand_if_required__SWIG_1(swigCPtr, SWIGTYPE_p_double.getCPtr(vec), SWIGTYPE_p_int.getCPtr(len));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #54
0
 public virtual void get_longreal_sparsematrix(SWIGTYPE_p_shogun__SGSparseVectorT_long_double_t matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.File_get_longreal_sparsematrix(swigCPtr, SWIGTYPE_p_shogun__SGSparseVectorT_long_double_t.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #55
0
 public bool get_model_params(SWIGTYPE_p_double pos_params, SWIGTYPE_p_double neg_params, SWIGTYPE_p_int seq_length, SWIGTYPE_p_int num_symbols) {
   bool ret = modshogunPINVOKE.PluginEstimate_get_model_params(swigCPtr, SWIGTYPE_p_double.getCPtr(pos_params), SWIGTYPE_p_double.getCPtr(neg_params), SWIGTYPE_p_int.getCPtr(seq_length), SWIGTYPE_p_int.getCPtr(num_symbols));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #56
0
 public virtual void get_string_list(SWIGTYPE_p_shogun__SGStringT_double_t strings, SWIGTYPE_p_int num_str, SWIGTYPE_p_int max_string_len)
 {
     modshogunPINVOKE.File_get_string_list__SWIG_7(swigCPtr, SWIGTYPE_p_shogun__SGStringT_double_t.getCPtr(strings), SWIGTYPE_p_int.getCPtr(num_str), SWIGTYPE_p_int.getCPtr(max_string_len));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual bool getAmpStatus(SWIGTYPE_p_int st)
 {
     bool ret = yarpPINVOKE.IAmplifierControl_getAmpStatus__SWIG_0(swigCPtr, SWIGTYPE_p_int.getCPtr(st));
     return ret;
 }
Beispiel #58
0
  public static void GribGetDoubleElements(GribHandle h, string key, SWIGTYPE_p_int i, int size, out double value) {
    int ret = GribApiProxyPINVOKE.GribGetDoubleElements(h.Reference, key, SWIGTYPE_p_int.getCPtr(i), size, out value);
	
	if (ret != 0)
	{
		throw Grib.Api.Interop.GribApiException.Create(ret);
	}
  }
 public virtual bool getAmpStatusRaw(int j, SWIGTYPE_p_int st)
 {
     bool ret = yarpPINVOKE.IAmplifierControlRaw_getAmpStatusRaw__SWIG_1(swigCPtr, j, SWIGTYPE_p_int.getCPtr(st));
     return ret;
 }
        public bool CompareAndSet(InputMethod.CategoryType type, InputMethodOptions options, SWIGTYPE_p_int index)
        {
            bool ret = Interop.InputMethodOptions.InputMethodOptions_CompareAndSet(swigCPtr, (int)type, InputMethodOptions.getCPtr(options), SWIGTYPE_p_int.getCPtr(index));

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }