コード例 #1
0
 public vector_short(vector_short other) : this(VisionLabPINVOKE.new_vector_short__SWIG_1(vector_short.getCPtr(other)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public vector_shortEnumerator(vector_short collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #3
0
 public void SetRange(int index, vector_short values)
 {
     VisionLabPINVOKE.vector_short_SetRange(swigCPtr, index, vector_short.getCPtr(values));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
    public static vector_short Repeat(short value, int count)
    {
        IntPtr       cPtr = VisionLabPINVOKE.vector_short_Repeat(value, count);
        vector_short ret  = (cPtr == IntPtr.Zero) ? null : new vector_short(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #5
0
    public vector_short GetRange(int index, int count)
    {
        IntPtr       cPtr = VisionLabPINVOKE.vector_short_GetRange(swigCPtr, index, count);
        vector_short ret  = (cPtr == IntPtr.Zero) ? null : new vector_short(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #6
0
 public static void LUT(Int16Image image, short minPixel, vector_short tab) {
   VisionLabPINVOKE.LUT__SWIG_7(Int16Image.getCPtr(image), minPixel, vector_short.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #7
0
 public static SWIGTYPE_p_std__setT_short_t VectorToSet_short(vector_short v) {
   SWIGTYPE_p_std__setT_short_t ret = new SWIGTYPE_p_std__setT_short_t(VisionLabPINVOKE.VectorToSet_short(vector_short.getCPtr(v)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #8
0
 public static void ResampleLine(Int16Image image, Coord2D start, Coord2D end, int nrPixels, vector_Coord2D cTab, vector_short pTab) {
   VisionLabPINVOKE.ResampleLine__SWIG_4(Int16Image.getCPtr(image), Coord2D.getCPtr(start), Coord2D.getCPtr(end), nrPixels, vector_Coord2D.getCPtr(cTab), vector_short.getCPtr(pTab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #9
0
 internal static HandleRef getCPtr(vector_short obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #10
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vector_short obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }