Ejemplo n.º 1
0
 public Shape(sShape shape) : this(rysyPINVOKE.new_Shape__SWIG_3(sShape.getCPtr(shape)), true)
 {
     if (rysyPINVOKE.SWIGPendingException.Pending)
     {
         throw rysyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public void set(sShape shape)
 {
     rysyPINVOKE.Shape_set__SWIG_0(swigCPtr, sShape.getCPtr(shape));
     if (rysyPINVOKE.SWIGPendingException.Pending)
     {
         throw rysyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 3
0
        public static IShape MakeShape(string shapeType)
        {
            IShape shape = null;

            switch (shapeType.ToLower())
            {
            case "i":
                shape = new iShape();
                break;

            case "j":
                shape = new jShape();
                break;

            case "l":
                shape = new lShape();
                break;

            case "o":
                shape = new oShape();
                break;

            case "s":
                shape = new sShape();
                break;

            case "t":
                shape = new tShape();
                break;

            case "z":
                shape = new zShape();
                break;

            case "test":
                shape = new testShape();
                break;

            default:
                throw new ArgumentException("Invalid shape name");
            }

            return(shape);
        }
Ejemplo n.º 4
0
    public sShape shape_struct()
    {
        sShape ret = new sShape(rysyPINVOKE.Tensor_shape_struct(swigCPtr), true);

        return(ret);
    }
Ejemplo n.º 5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(sShape obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Ejemplo n.º 6
0
    public sShape get()
    {
        sShape ret = new sShape(rysyPINVOKE.Shape_get(swigCPtr), true);

        return(ret);
    }